完善功能
This commit is contained in:
@ -3,17 +3,17 @@ package model
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type Category struct {
|
||||
g.Meta `orm:"table:categories"`
|
||||
Id int64 `json:"id" orm:"id"` // 分类ID
|
||||
Name string `json:"name" orm:"name"` // 分类名称
|
||||
Type int `json:type orm:"type"` // 类型,1 男频,2 女频
|
||||
g.Meta `orm:"table:categories"`
|
||||
Id int64 `json:"id" orm:"id"`
|
||||
Name string `json:"name" orm:"name"`
|
||||
Channel int `json:"channel" orm:"channel"`
|
||||
}
|
||||
|
||||
type CategoryListIn struct {
|
||||
Page int
|
||||
Size int
|
||||
Name string
|
||||
Type int
|
||||
Page int
|
||||
Size int
|
||||
Name string
|
||||
Channel int
|
||||
}
|
||||
type CategoryListOut struct {
|
||||
Total int
|
||||
@ -21,16 +21,16 @@ type CategoryListOut struct {
|
||||
}
|
||||
|
||||
type CategoryAddIn struct {
|
||||
Name string
|
||||
Type int // 类型,1 男频,2 女频
|
||||
Name string
|
||||
Channel int
|
||||
}
|
||||
type CategoryEditIn struct {
|
||||
Id int
|
||||
Name string
|
||||
Type int // 类型,1 男频,2 女频
|
||||
Id int64
|
||||
Name string
|
||||
Channel int
|
||||
}
|
||||
type CategoryDelIn struct {
|
||||
Id int
|
||||
Id int64
|
||||
}
|
||||
|
||||
type CategoryCRUDOut struct {
|
||||
|
||||
Reference in New Issue
Block a user