99 lines
1.6 KiB
Go
99 lines
1.6 KiB
Go
package proto
|
|
|
|
import (
|
|
"service/api/base"
|
|
"service/dbstruct"
|
|
)
|
|
|
|
// op 创建
|
|
type OpCreateReq struct {
|
|
base.BaseRequest
|
|
*dbstruct.AccountPunishment
|
|
}
|
|
|
|
type OpCreateData struct {
|
|
}
|
|
|
|
type OpCreateResp struct {
|
|
base.BaseResponse
|
|
Data *OpCreateData `json:"data"`
|
|
}
|
|
|
|
// op 删除
|
|
type OpDeleteReq struct {
|
|
base.BaseRequest
|
|
Id int64 `json:"id"`
|
|
}
|
|
|
|
type OpDeleteData struct {
|
|
}
|
|
|
|
type OpDeleteResp struct {
|
|
base.BaseResponse
|
|
Data *OpDeleteData `json:"data"`
|
|
}
|
|
|
|
// op 更新
|
|
type OpUpdateReq struct {
|
|
base.BaseRequest
|
|
*dbstruct.AccountPunishment
|
|
}
|
|
|
|
type OpUpdateData struct {
|
|
}
|
|
|
|
type OpUpdateResp struct {
|
|
base.BaseResponse
|
|
Data *OpUpdateData `json:"data"`
|
|
}
|
|
|
|
// op 列表
|
|
type OpListReq struct {
|
|
base.BaseRequest
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
}
|
|
|
|
type OpListData struct {
|
|
List []*OpAccountPunishmentVO `json:"list"`
|
|
Offset int `json:"offset"`
|
|
More int `json:"more"`
|
|
}
|
|
|
|
type OpListResp struct {
|
|
base.BaseResponse
|
|
Data *OpListData `json:"data"`
|
|
}
|
|
|
|
// op 解封
|
|
type OpUnblockReq struct {
|
|
base.BaseRequest
|
|
Id *int64 `json:"id"`
|
|
}
|
|
|
|
type OpUnblockData struct {
|
|
}
|
|
|
|
type OpUnblockResp struct {
|
|
base.BaseResponse
|
|
Data *OpUnblockData `json:"data"`
|
|
}
|
|
|
|
// op 查询已结束的封禁
|
|
type OpListTerminatedReq struct {
|
|
base.BaseRequest
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
}
|
|
|
|
type OpListTerminatedData struct {
|
|
List []*OpAccountPunishmentVO `json:"list"`
|
|
Offset int `json:"offset"`
|
|
More int `json:"more"`
|
|
}
|
|
|
|
type OpListTerminatedResp struct {
|
|
base.BaseResponse
|
|
Data *OpListTerminatedData `json:"data"`
|
|
}
|