Files
novel_server/internal/model/category.go

39 lines
711 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 女频
}
type CategoryListIn struct {
Page int
Size int
Name string
Type int
}
type CategoryListOut struct {
Total int
List []Category
}
type CategoryAddIn struct {
Name string
Type int // 类型1 男频2 女频
}
type CategoryEditIn struct {
Id int
Name string
Type int // 类型1 男频2 女频
}
type CategoryDelIn struct {
Id int
}
type CategoryCRUDOut struct {
Success bool
}