Improve some models types (using scuffedtime more often just to be safe), extra fields, set them as omitempty when optional
parent
bffc697b97
commit
bef26fa57d
3 changed files with 20 additions and 27 deletions
@ -1,15 +1,11 @@ |
||||
package models |
||||
|
||||
import ( |
||||
"time" |
||||
) |
||||
|
||||
type CustomPage struct { |
||||
Board string `json:"board"` |
||||
Page string `json:"page"` |
||||
Title string `json:"title"` |
||||
Message RawAndMarkdownMessage `json:"message"` |
||||
Date time.Time `json:"date"` |
||||
Date ScuffedTime `json:"date"` |
||||
Edited interface{} `json:"edited"` |
||||
ID string `json:"_id"` |
||||
} |
||||
|
Loading…
Reference in new issue