56 lines
1.1 KiB
Go
56 lines
1.1 KiB
Go
package model
|
||
|
||
import "github.com/gogf/gf/v2/frame/g"
|
||
|
||
type RewardType struct {
|
||
g.Meta `orm:"table:reward_type"`
|
||
Id int64 `json:"id" dc:"ID" orm:"id,primary"`
|
||
Name string `json:"name" dc:"名称" orm:"name"`
|
||
Sort int `json:"sort" dc:"排序" orm:"sort"`
|
||
Status int `json:"status" dc:"状态:1=启用,2=禁用" orm:"status"`
|
||
}
|
||
type RewardTypeIn struct {
|
||
Page int
|
||
Size int
|
||
}
|
||
|
||
type RewardTypeOut struct {
|
||
List []RewardType
|
||
Total int
|
||
}
|
||
|
||
type CreateRewardTypeIn struct {
|
||
Name string
|
||
Code string
|
||
Description string
|
||
Status int
|
||
}
|
||
|
||
type CreateRewardTypeOut struct {
|
||
Id int64
|
||
}
|
||
|
||
// UpdateRewardTypeIn 更新奖励类型传入参数
|
||
type UpdateRewardTypeIn struct {
|
||
Id int64
|
||
Name string
|
||
Code string
|
||
Description string
|
||
Status int
|
||
}
|
||
|
||
// UpdateRewardTypeOut 更新奖励类型返回参数
|
||
type UpdateRewardTypeOut struct {
|
||
Success bool
|
||
}
|
||
|
||
// DeleteRewardTypeIn 删除奖励类型传入参数
|
||
type DeleteRewardTypeIn struct {
|
||
Id int64
|
||
}
|
||
|
||
// DeleteRewardTypeOut 删除奖励类型返回参数
|
||
type DeleteRewardTypeOut struct {
|
||
Success bool
|
||
}
|