120 lines
2.2 KiB
Go
120 lines
2.2 KiB
Go
package proto
|
|
|
|
import (
|
|
"service/api/base"
|
|
"service/dbstruct"
|
|
)
|
|
|
|
// op 创建
|
|
type OpCreateReq struct {
|
|
base.BaseRequest
|
|
*dbstruct.StreamerAuthApprovalDetails
|
|
}
|
|
|
|
type OpCreateData struct {
|
|
}
|
|
|
|
type OpCreateResp struct {
|
|
base.BaseResponse
|
|
Data *OpCreateData `json:"data"`
|
|
}
|
|
|
|
// op 删除
|
|
type OpDeleteReq struct {
|
|
base.BaseRequest
|
|
Uid *int64 `json:"mid"`
|
|
}
|
|
|
|
type OpDeleteData struct {
|
|
}
|
|
|
|
type OpDeleteResp struct {
|
|
base.BaseResponse
|
|
Data *OpDeleteData `json:"data"`
|
|
}
|
|
|
|
// op 更新
|
|
type OpUpdateReq struct {
|
|
base.BaseRequest
|
|
*dbstruct.StreamerAuthApprovalDetails
|
|
}
|
|
|
|
type OpUpdateData struct {
|
|
}
|
|
|
|
type OpUpdateResp struct {
|
|
base.BaseResponse
|
|
Data *OpUpdateData `json:"data"`
|
|
}
|
|
|
|
// op 列表
|
|
type OpListReq struct {
|
|
base.BaseRequest
|
|
Status *int64 `json:"status"`
|
|
ApproveStatus *int64 `json:"approve_status"`
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
}
|
|
|
|
type OpListData struct {
|
|
List []*StreamerAuthApprovalDetailsOpVO `json:"list"`
|
|
Offset int `json:"offset"`
|
|
More int `json:"more"`
|
|
}
|
|
|
|
type OpListResp struct {
|
|
base.BaseResponse
|
|
Data *OpListData `json:"data"`
|
|
}
|
|
|
|
// op 列表
|
|
type OpListByMidReq struct {
|
|
base.BaseRequest
|
|
Uid *int64 `json:"mid"`
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
}
|
|
|
|
type OpListByMidData struct {
|
|
StreamerAuthApprovalDetails *StreamerAuthApprovalDetailsOpVO `json:"streamer_auth_approval"`
|
|
Offset int `json:"offset"`
|
|
More int `json:"more"`
|
|
}
|
|
|
|
type OpListByMidResp struct {
|
|
base.BaseResponse
|
|
Data *OpListByMidData `json:"data"`
|
|
}
|
|
|
|
// op 按id更新
|
|
type OpUpdateByIdsReq struct {
|
|
base.BaseRequest
|
|
*dbstruct.StreamerAuthApprovalDetails
|
|
Ids []int64 `json:"ids"`
|
|
ApproveStatus int64
|
|
}
|
|
|
|
type OpUpdateByIdsData struct {
|
|
}
|
|
|
|
type OpUpdateByIdsResp struct {
|
|
base.BaseResponse
|
|
Data *OpUpdateByIdsData `json:"data"`
|
|
}
|
|
|
|
// op 审批
|
|
type OpApproveReq struct {
|
|
base.BaseRequest
|
|
Ids []int64 `json:"ids"`
|
|
ApproveStatus *int64 `json:"approve_status"`
|
|
Remarks *string `json:"remarks"`
|
|
}
|
|
|
|
type OpApproveData struct {
|
|
}
|
|
|
|
type OpApproveResp struct {
|
|
base.BaseResponse
|
|
Data *OpApproveResp `json:"data"`
|
|
}
|