2022-06-08 18:19:45 +08:00
|
|
|
/*
|
|
|
|
* @Author: link a624669980@163.com
|
|
|
|
* @Date: 2022-05-16 17:37:08
|
2022-06-29 11:09:58 +08:00
|
|
|
* @LastEditors: LinkLeong
|
2022-07-22 11:02:11 +08:00
|
|
|
* @LastEditTime: 2022-07-13 10:46:38
|
2022-06-29 11:09:58 +08:00
|
|
|
* @FilePath: /CasaOS/model/category.go
|
2022-07-22 11:02:11 +08:00
|
|
|
* @Description:
|
2022-06-08 18:19:45 +08:00
|
|
|
*/
|
2021-09-26 10:35:02 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
type ServerCategoryList struct {
|
2022-06-29 11:09:58 +08:00
|
|
|
Version string `json:"version"`
|
|
|
|
Item []CategoryList `json:"item"`
|
|
|
|
}
|
|
|
|
type CategoryList struct {
|
2021-09-26 10:35:02 +08:00
|
|
|
Id uint `gorm:"column:id;primary_key" json:"id"`
|
|
|
|
//CreatedAt time.Time `json:"created_at"`
|
|
|
|
//
|
|
|
|
//UpdatedAt time.Time `json:"updated_at"`
|
2022-07-22 11:02:11 +08:00
|
|
|
Font string `json:"font"` // @tiger - 如果这个和前端有关,应该不属于后端的出参范围,而是前端去界定
|
2021-09-26 10:35:02 +08:00
|
|
|
Name string `json:"name"`
|
2022-07-22 11:02:11 +08:00
|
|
|
Count uint `json:"count"` // @tiger - count 属于动态信息,应该单独放在一个出参结构中(原因见另外一个关于 静态/动态 出参的注释)
|
2021-09-26 10:35:02 +08:00
|
|
|
}
|