12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package model
- type ActImgNameConfBasic struct {
- Id int64 `db:"id" json:"id"`
- Name string `db:"name" json:"name"`
- AddTime int64 `db:"add_time" json:"add_time"`
- Show int64 `db:"show" json:"show"` // 是否在后台显示(1:显示,2:隐藏)
- }
- type ActImgContent struct {
- Id int64 `json:"id"`
- Name string `json:"name"`
- Type string `json:"type"`
- }
- // ActThemeConf 返回给后台的结构
- type ActThemeConf struct {
- ActImgNameConfBasic
- Content []ActImgContent `db:"content" json:"content"`
- }
- // TActiveImgNameConfigCache 缓存中存的的结构
- type TActiveImgNameConfigCache struct {
- ActImgNameConfBasic
- Content string `db:"content" json:"content"`
- }
- // TActiveImgNameConfig 数据库存的结构
- type TActiveImgNameConfig struct {
- ActImgNameConfBasic
- Content map[int64]ActImgContent `db:"content" json:"content"`
- }
- func (TActiveImgNameConfig) TableName() string {
- return "crazygod_api_config.t_active_img_name_config"
- }
- type ActImgNameInfo struct {
- Cid int64 `json:"cid"`
- ImgName string `json:"imgName"`
- }
- type TActiveImgExtraConfig struct {
- Id string `json:"id" db:"id"`
- Type string `json:"type" db:"type"`
- Skin string `json:"skin" db:"skin"`
- Key string `json:"key" db:"key"`
- Val string `json:"val" db:"val"`
- Msg string `json:"msg" db:"msg"`
- }
- func (TActiveImgExtraConfig) TableName() string {
- return "crazygod_api_config.t_active_img_extra_config"
- }
- type ImgExtraConfReq struct {
- Type string `form:"type" json:"type"`
- Skin string `form:"skin" json:"skin"`
- }
- type ImgExtraConfUpdateReq struct {
- ImgExtraConfReq
- Conf []TActiveImgExtraConfig `json:"conf"`
- }
|