Add some new api of preference.

This commit is contained in:
zicla
2017-12-25 14:32:18 +08:00
parent 00472c6b4d
commit a7e502ba9c
9 changed files with 199 additions and 11 deletions

15
rest/preference_model.go Normal file
View File

@ -0,0 +1,15 @@
package rest
type Preference struct {
Base
Name string `json:"name"`
LogoUrl string `json:"logoUrl"`
FaviconUrl string `json:"faviconUrl"`
FooterLine1 string `json:"footerLine1"`
FooterLine2 string `json:"footerLine2"`
}
// set File's table name to be `profiles`
func (Preference) TableName() string {
return TABLE_PREFIX + "preference"
}