39 lines
611 B
Go
39 lines
611 B
Go
package model
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
type Category struct {
|
|
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
|
|
Channel int
|
|
}
|
|
type CategoryListOut struct {
|
|
Total int
|
|
List []Category
|
|
}
|
|
|
|
type CategoryAddIn struct {
|
|
Name string
|
|
Channel int
|
|
}
|
|
type CategoryEditIn struct {
|
|
Id int64
|
|
Name string
|
|
Channel int
|
|
}
|
|
type CategoryDelIn struct {
|
|
Id int64
|
|
}
|
|
|
|
type CategoryCRUDOut struct {
|
|
Success bool
|
|
}
|