29 lines
674 B
Go
29 lines
674 B
Go
package rchgamtmod
|
|
|
|
import "time"
|
|
|
|
// DelReq 删除请求
|
|
type DelReq struct {
|
|
IDs []string `form:"ids" json:"ids"`
|
|
}
|
|
|
|
// OpeResp 操作应答
|
|
type OpeResp struct {
|
|
Count int64 `json:"count"`
|
|
}
|
|
|
|
// GoldReq 金币配置添加
|
|
type GoldReq struct {
|
|
Name string `form:"name" json:"name"` //金币名称
|
|
Coins int64 `form:"coins" json:"coins"` //购买金币数
|
|
Price int64 `form:"price" json:"price"` //价格
|
|
Active bool `form:"active" json:"active"` //是否激活
|
|
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
|
|
}
|
|
|
|
// EditGoldReq 金币编辑请求
|
|
type EditGoldReq struct {
|
|
ID string `form:"id" json:"id"`
|
|
GoldReq
|
|
}
|