Documentation ¶
Index ¶
- func BatchAddQuerySQL(sID int64, data []*SearchWebQuery) string
- func BatchEditQuerySQL(querys []*SearchWebQuery) string
- type AiValue
- type AppActive
- type ChannelTab
- type ChannelTabAP
- type ChannelTabLP
- type ChannelTabPager
- type ChannelTabUP
- type EventTopic
- type EventTopicAP
- type EventTopicLP
- type EventTopicPager
- type EventTopicUP
- type PopularStars
- type PopularStarsAIAP
- type PopularStarsAP
- type PopularStarsLP
- type PopularStarsPager
- type PopularStarsUP
- type SWTimeValid
- type SearchWeb
- type SearchWebAP
- type SearchWebCard
- type SearchWebCardAP
- type SearchWebCardLP
- type SearchWebCardPager
- type SearchWebCardUP
- type SearchWebLP
- type SearchWebOption
- type SearchWebPager
- type SearchWebQuery
- type SearchWebUP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchAddQuerySQL ¶
func BatchAddQuerySQL(sID int64, data []*SearchWebQuery) string
BatchAddQuerySQL .
func BatchEditQuerySQL ¶
func BatchEditQuerySQL(querys []*SearchWebQuery) string
BatchEditQuerySQL .
Types ¶
type AppActive ¶
type AppActive struct {
Name string `json:"name,omitempty"`
}
AppActive db show app_active table
type ChannelTab ¶
type ChannelTab struct { ID int64 `json:"id" form:"id"` TagID int64 `json:"tag_id" form:"tag_id" validate:"required"` TabID int64 `json:"tab_id" form:"tab_id" validate:"required"` Title string `json:"title" form:"title" validate:"required"` Stime int64 `json:"stime" form:"stime" validate:"required"` Etime int64 `json:"etime" form:"etime" validate:"required"` Check int `json:"check" form:"check"` Priority int `json:"priority" form:"priority" validate:"required"` UID int64 `json:"uid" form:"uid"` Person string `json:"person" form:"person"` IsDelete int `json:"is_delete" form:"is_delete"` Status int `json:"status" form:"status"` }
ChannelTab channel tab
type ChannelTabAP ¶
type ChannelTabAP struct { TagID int64 `form:"tag_id" validate:"required"` TabID int64 `form:"tab_id" validate:"required"` Title string `form:"title" validate:"required"` Stime int64 `form:"stime" validate:"required"` Etime int64 `form:"etime" validate:"required"` Priority int `form:"priority" validate:"required"` UID int64 `form:"uid" gorm:"column:uid"` Person string `form:"person"` }
ChannelTabAP channel tab add param
type ChannelTabLP ¶
type ChannelTabLP struct { TagID int `form:"tag_id"` TabID int `form:"tab_id"` Stime int64 `form:"stime"` Etime int64 `form:"etime"` Status int `form:"status"` Person string `form:"person"` Order int `form:"order" default:"2"` Ps int `form:"ps" default:"20"` // 分页大小 Pn int `form:"pn" default:"1"` // 第几个分页 }
ChannelTabLP channel tab list param
type ChannelTabPager ¶
type ChannelTabPager struct { Item []*ChannelTab `json:"item"` Page common.Page `json:"page"` }
ChannelTabPager .
type ChannelTabUP ¶
type ChannelTabUP struct { ID int64 `form:"id" validate:"required"` TagID int64 `form:"tag_id" validate:"required"` TabID int64 `form:"tab_id" validate:"required"` Title string `form:"title" validate:"required"` Stime int64 `form:"stime" validate:"required"` Etime int64 `form:"etime" validate:"required"` Priority int `form:"priority" validate:"required"` UID int64 `form:"uid" gorm:"column:uid"` Person string `form:"person"` }
ChannelTabUP channel tab update param
type EventTopic ¶
type EventTopic struct { ID int64 `json:"id" form:"id"` Title string `json:"title" form:"title"` Desc string `json:"desc" form:"desc"` Cover string `json:"cover" form:"cover"` Retype int `json:"re_type" gorm:"column:re_type" form:"re_type"` Revalue string `json:"re_value" gorm:"column:re_value" form:"string"` Corner string `json:"corner" form:"corner"` Person string `json:"person" form:"person"` Deleted int `json:"deleted" form:"deleted"` }
EventTopic event topic
type EventTopicAP ¶
type EventTopicAP struct { Title string `json:"title" form:"title" validate:"required"` Desc string `json:"desc" form:"desc" validate:"required"` Cover string `json:"cover" form:"cover" validate:"required"` Retype int `json:"re_type" form:"re_type" gorm:"column:re_type" validate:"required"` Revalue string `json:"re_value" form:"re_value" gorm:"column:re_value" validate:"required"` Corner string `json:"corner" form:"corner"` Person string `json:"person" form:"person"` }
EventTopicAP event topic add param
type EventTopicLP ¶
type EventTopicLP struct { ID int `form:"id"` Person string `form:"person"` Title string `form:"title"` Ps int `form:"ps" default:"20"` // 分页大小 Pn int `form:"pn" default:"1"` // 第几个分页 }
EventTopicLP event topic list param
type EventTopicPager ¶
type EventTopicPager struct { Item []*EventTopic `json:"item"` Page common.Page `json:"page"` }
EventTopicPager .
type EventTopicUP ¶
type EventTopicUP struct { ID int64 `form:"id" validate:"required"` Title string `json:"title" form:"title" validate:"required"` Desc string `json:"desc" form:"desc" validate:"required"` Cover string `json:"cover" form:"cover" validate:"required"` Retype int `json:"re_type" form:"re_type" gorm:"column:re_type" validate:"required"` Revalue string `json:"re_value" form:"re_value" gorm:"column:re_value" validate:"required"` Corner string `json:"corner" form:"corner"` }
EventTopicUP event topic update param
type PopularStars ¶
type PopularStars struct { ID int64 `json:"id"` Type string `json:"type"` Value string `json:"value"` Title string `json:"title"` LongTitle string `json:"longtitle"` Content string `json:"content"` Deleted int `json:"deleted"` Person string `json:"person"` Source int `json:"source"` Status int `json:"status"` Mtime xtime.Time `json:"mtime"` }
PopularStars channel tab
type PopularStarsAIAP ¶
PopularStarsAIAP popular stars ai add param
type PopularStarsAP ¶
type PopularStarsAP struct { Type string `form:"type" validate:"required"` Value string `form:"value" validate:"required"` Title string `form:"title" validate:"required"` LongTitle string `form:"longtitle" validate:"required"` Content string `form:"content" validate:"required"` UID int64 `form:"person" gorm:"column:uid"` Person string `form:"person"` Source int Status int }
PopularStarsAP popular stars add param
type PopularStarsLP ¶
type PopularStarsLP struct { ID int `form:"id"` Title string `form:"title"` LongTitle string `form:"longtitle"` Person string `form:"person"` Source int `form:"source" default:"-1"` Status int `form:"status"` Ps int `form:"ps" default:"20"` // 分页大小 Pn int `form:"pn" default:"1"` // 第几个分页 }
PopularStarsLP channel tab list param
type PopularStarsPager ¶
type PopularStarsPager struct { Item []*PopularStars `json:"item"` Page common.Page `json:"page"` }
PopularStarsPager .
type PopularStarsUP ¶
type PopularStarsUP struct { ID int64 `form:"id" validate:"required"` Type string `form:"type" validate:"required"` Value string `form:"value" validate:"required"` Title string `form:"title" validate:"required"` LongTitle string `form:"longtitle"` Content string `form:"content" validate:"required"` Status int `form:"status"` }
PopularStarsUP channel tab update param
type SWTimeValid ¶
type SWTimeValid struct { ID int64 Query string Priority int STime xtime.Time ETime xtime.Time CardValue string }
SWTimeValid option web card (online,hidden,pass,reject)
type SearchWeb ¶
type SearchWeb struct { ID int64 `json:"id" form:"id"` CardType int `json:"card_type" form:"card_type"` CardValue string `json:"card_value" form:"card_value"` Stime xtime.Time `json:"stime" form:"stime"` Etime xtime.Time `json:"etime" form:"etime"` Check int `json:"check" form:"check"` Status int `json:"status" form:"status"` Priority int `json:"priority" form:"priority"` Person string `json:"person" form:"person"` ApplyReason string `json:"apply_reason" form:"apply_reason"` Deleted int `json:"deleted" form:"deleted"` Query []*SearchWebQuery `json:"query" form:"query" gorm:"-"` Card interface{} `json:"card" gorm:"-"` }
SearchWeb search web
type SearchWebAP ¶
type SearchWebAP struct { ID int64 `json:"id" form:"id"` CardType int `json:"card_type" form:"card_type" validate:"required"` CardValue string `json:"card_value" form:"card_value" validate:"required"` Stime xtime.Time `json:"stime" form:"stime" validate:"required"` Etime xtime.Time `json:"etime" form:"etime" validate:"required"` Priority int `json:"priority" form:"priority" validate:"required"` Check int `form:"check" default:"1"` Person string `json:"person" form:"person"` ApplyReason string `json:"apply_reason" form:"apply_reason"` Query string `json:"query" form:"query" gorm:"-" validate:"required"` }
SearchWebAP add param
type SearchWebCard ¶
type SearchWebCard struct { ID int64 `form:"id" gorm:"column:id" json:"id"` Type int64 `form:"type" gorm:"column:type" json:"type"` Title string `form:"title" gorm:"column:title" json:"title"` Desc string `form:"desc" gorm:"column:desc" json:"desc"` Cover string `form:"cover" gorm:"column:cover" json:"cover"` ReType int64 `form:"re_type" gorm:"column:re_type" json:"re_type"` ReValue string `form:"re_value" gorm:"column:re_value" json:"re_value"` Corner string `form:"corner" gorm:"column:corner" json:"corner"` Person string `form:"person" gorm:"column:person" json:"person"` Deleted int64 `form:"deleted" gorm:"column:deleted" json:"deleted"` Ctime time.Time `form:"string" gorm:"column:ctime" json:"ctime"` Mtime time.Time `form:"string" gorm:"column:mtime" json:"mtime"` }
SearchWebCard web card
type SearchWebCardAP ¶
type SearchWebCardAP struct { Type int64 `form:"type" gorm:"column:type" json:"type"` Title string `form:"title" gorm:"column:title" json:"title"` Desc string `form:"desc" gorm:"column:desc" json:"desc"` Cover string `form:"cover" gorm:"column:cover" json:"cover"` ReType int64 `form:"re_type" gorm:"column:re_type" json:"re_type"` ReValue string `form:"re_value" gorm:"column:re_value" json:"re_value"` Corner string `form:"corner" gorm:"column:corner" json:"corner"` Person string `form:"person" gorm:"column:person" json:"person"` }
SearchWebCardAP web card add param
type SearchWebCardLP ¶
type SearchWebCardLP struct { ID int `form:"id"` Person string `form:"person"` Title string `form:"title"` Ps int `form:"ps" default:"20"` // 分页大小 Pn int `form:"pn" default:"1"` // 第几个分页 STime string `form:"stime"` ETime string `form:"etime"` }
SearchWebCardLP search web card list param
type SearchWebCardPager ¶
type SearchWebCardPager struct { Item []*SearchWebCard `json:"item"` Page common.Page `json:"page"` }
SearchWebCardPager .
type SearchWebCardUP ¶
type SearchWebCardUP struct { ID int64 `form:"id" gorm:"column:id" json:"id"` Type int64 `form:"type" gorm:"column:type" json:"type"` Title string `form:"title" gorm:"column:title" json:"title"` Desc string `form:"desc" gorm:"column:desc" json:"desc"` Cover string `form:"cover" gorm:"column:cover" json:"cover"` ReType int64 `form:"re_type" gorm:"column:re_type" json:"re_type"` ReValue string `form:"re_value" gorm:"column:re_value" json:"re_value"` Corner string `form:"corner" gorm:"column:corner" json:"corner"` }
SearchWebCardUP web card update param
type SearchWebLP ¶
type SearchWebLP struct { ID int `form:"id"` Check int `form:"check"` Person string `form:"person"` STime string `form:"stime"` ETime string `form:"etime"` Ps int `form:"ps" default:"20"` Pn int `form:"pn" default:"1"` }
SearchWebLP list param
type SearchWebOption ¶
type SearchWebOption struct { ID int64 `form:"id" validate:"required"` Check int `json:"check" form:"check"` Status int `json:"status" form:"status"` }
SearchWebOption option web card (online,hidden,pass,reject)
type SearchWebPager ¶
SearchWebPager .
type SearchWebQuery ¶
type SearchWebQuery struct { ID int64 `json:"id" form:"id"` SID int64 `json:"sid" form:"sid" gorm:"column:sid"` Value string `json:"value" form:"value"` Deleted int `json:"deleted" form:"deleted"` }
SearchWebQuery search web query
type SearchWebUP ¶
type SearchWebUP struct { ID int64 `form:"id" validate:"required"` CardType int `json:"card_type" form:"card_type"` CardValue string `json:"card_value" form:"card_value"` Stime xtime.Time `json:"stime" form:"stime"` Etime xtime.Time `json:"etime" form:"etime"` Check int `json:"check" form:"check"` Status int `json:"status" form:"status"` Priority int `json:"priority" form:"priority"` Person string `json:"person" form:"person"` ApplyReason string `json:"apply_reason" form:"apply_reason"` Query string `json:"query" form:"query" gorm:"-" validate:"required"` }
SearchWebUP update param