Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Carousel ¶
type DataList ¶
type DataList struct { Item interface{} `json:"item"` Total uint `json:"total"` }
DataList 带有总数的Data结构
type Money ¶
type Product ¶
type Product struct { ID uint `json:"id"` Name string `json:"name"` CategoryID uint `json:"category_id"` Title string `json:"title"` Info string `json:"info"` ImgPath string `json:"img_path"` Price string `json:"price"` DiscountPrice string `json:"discount_price"` View int64 `json:"view"` CreatedAt int64 `json:"created_at"` Num int `json:"num"` OnSale bool `json:"on_sale"` BossID uint `json:"boss_id"` BossName string `json:"boss_name"` BossAvatar string `json:"boss_avatar"` }
type Response ¶
type Response struct { Status e.CustomError `json:"status"` Msg string `json:"msg"` Data interface{} `json:"data"` }
Response 基础序列化器
func GetListResponse ¶
func GetResponse ¶
func GetResponse(status e.CustomError, data interface{}) *Response
type TokenData ¶
type TokenData struct { User interface{} `json:"user"` Token string `json:"token"` }
Click to show internal directories.
Click to hide internal directories.