105 lines
2.0 KiB
Go
105 lines
2.0 KiB
Go
package proto
|
|
|
|
import (
|
|
"service/api/base"
|
|
"service/dbstruct"
|
|
)
|
|
|
|
// op 创建
|
|
type OpCreateReq struct {
|
|
base.BaseRequest
|
|
*dbstruct.TextAuditTask
|
|
}
|
|
|
|
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.TextAuditTask
|
|
}
|
|
|
|
type OpUpdateData struct {
|
|
}
|
|
|
|
type OpUpdateResp struct {
|
|
base.BaseResponse
|
|
Data *OpUpdateData `json:"data"`
|
|
}
|
|
|
|
// op 列表
|
|
type OpListReq struct {
|
|
base.BaseRequest
|
|
RouteUrl *string `json:"route_url"`
|
|
AssociativeDatabase *string `json:"associative_data_base"`
|
|
AssociativeTableName *string `json:"associative_table_name"`
|
|
AssociativeTableId *int64 `json:"associative_table_id"`
|
|
AssociativeTableColumn *string `json:"associative_table_column"`
|
|
BatchId *string `json:"batch_id"`
|
|
Status *int64 `json:"status"`
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
Sort string
|
|
NotAlignedOpt int64
|
|
}
|
|
|
|
type OpListData struct {
|
|
List []*TextAuditTaskVO `json:"list"`
|
|
Offset int `json:"offset"`
|
|
More int `json:"more"`
|
|
}
|
|
|
|
type OpListResp struct {
|
|
base.BaseResponse
|
|
Data *OpListData `json:"data"`
|
|
}
|
|
|
|
// op 批量更新
|
|
type OpUpdateByIdsReq struct {
|
|
base.BaseRequest
|
|
*dbstruct.TextAuditTask
|
|
Ids []string
|
|
}
|
|
|
|
type OpUpdateByIdsData struct {
|
|
}
|
|
|
|
type OpUpdateByIdsResp struct {
|
|
base.BaseResponse
|
|
Data *OpUpdateByIdsData `json:"data"`
|
|
}
|
|
|
|
// op 批量把状态翻转到成功
|
|
type OpPassBatchReq struct {
|
|
base.BaseRequest
|
|
TextAuditTasks []*dbstruct.TextAuditTask `json:"tasks"`
|
|
}
|
|
|
|
type OpPassBatchData struct {
|
|
}
|
|
|
|
type OpPassBatchResp struct {
|
|
base.BaseResponse
|
|
Data *OpPassBatchData `json:"data"`
|
|
}
|