service/vendor/api/proto/imageaudit/proto/imageaudit_op.go

94 lines
1.3 KiB
Go
Raw Normal View History

2023-12-21 22:17:40 +08:00
package proto
import (
"service/api/base"
"service/dbstruct"
)
// op 创建
type OpCreateReq struct {
base.BaseRequest
*dbstruct.ImageAudit
}
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.ImageAudit
}
type OpUpdateData struct {
}
type OpUpdateResp struct {
base.BaseResponse
Data *OpUpdateData `json:"data"`
}
// op 列表
type OpListReq struct {
base.BaseRequest
Id *string `json:"id"`
}
type OpListData struct {
List []*dbstruct.ImageAudit `json:"list"`
}
type OpListResp struct {
base.BaseResponse
Data *OpListData `json:"data"`
}
// op 批量创建
type OpCreateBatchReq struct {
base.BaseRequest
ImageAudits []*dbstruct.ImageAudit
FragmentsNum int64
}
type OpCreateBatchData struct {
}
type OpCreateBatchResp struct {
base.BaseResponse
Data *OpCreateBatchData `json:"data"`
}
// op 批量更新
type OpUpdateByIdsReq struct {
base.BaseRequest
*dbstruct.ImageAudit
Ids []string
}
type OpUpdateByIdsData struct {
}
type OpUpdateByIdsResp struct {
base.BaseResponse
Data *OpUpdateByIdsData `json:"data"`
}