107 lines
2.1 KiB
Go
107 lines
2.1 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_database"`
|
|
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 OpReviewBatchReq struct {
|
|
base.BaseRequest
|
|
Ids []string `json:"ids"`
|
|
OpType int64 `json:"op_type"`
|
|
ManuallyReviewOpinion string `json:"manually_review_opinion"`
|
|
}
|
|
|
|
type OpReviewBatchData struct {
|
|
}
|
|
|
|
type OpReviewBatchResp struct {
|
|
base.BaseResponse
|
|
Data *OpReviewBatchData `json:"data"`
|
|
}
|