service/api/proto/zonemoment/proto/zonemoment_op.go

227 lines
5.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package proto
import (
"service/api/base"
"service/dbstruct"
)
// op 创建
type OpCreateReq struct {
base.BaseRequest
*dbstruct.ZoneMoment
}
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.ZoneMoment
}
type OpUpdateData struct {
}
type OpUpdateResp struct {
base.BaseResponse
Data *OpUpdateData `json:"data"`
}
// op 列表
type OpListReq struct {
base.BaseRequest
Status *int64 `json:"status"`
CtUpperBound *int64 `json:"ct_upper_bound"` //创建时间上界,闭区间
CtLowerBound *int64 `json:"ct_lower_bound"` //创建时间下界开区间可为0
Offset int `json:"offset"`
Limit int `json:"limit"`
}
type OpListData struct {
List []*OpZoneMomentVO `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
MType *int64 `json:"m_type"` // 媒体类型
Status *int64 `json:"status"` // 状态
CtUpperBound *int64 `json:"ct_upper_bound"` // 创建时间上界,闭区间
CtLowerBound *int64 `json:"ct_lower_bound"` // 创建时间下界开区间可为0
Offset int `json:"offset"`
Limit int `json:"limit"`
Sort []string
Uid *int64
}
type OpListByMidData struct {
List []*dbstruct.ZoneMoment `json:"list"`
Offset int `json:"offset"`
More int `json:"more"`
}
type OpListByMidResp struct {
base.BaseResponse
Data *OpListByMidData `json:"data"`
}
// op 按zids查询
type OpListByZidsOrMidReq struct {
base.BaseRequest
Uid *int64 `json:"mid"` // mid
Zids []int64 `json:"zids"` // zids
MType *int64 `json:"m_type"` // 媒体类型
CType *int64 `json:"c_type"` // 付费模式
CtUpperBound *int64 `json:"ct_upper_bound"` // 创建时间上界,闭区间
CtLowerBound *int64 `json:"ct_lower_bound"` // 创建时间下界开区间可为0
Offset int `json:"offset"`
Limit int `json:"limit"`
}
type OpListByZidsOrMidData struct {
List []*dbstruct.ZoneMoment `json:"list"`
Offset int `json:"offset"`
More int `json:"more"`
}
type OpListByZidsOrMidResp struct {
base.BaseResponse
Data *OpListByZidsOrMidData `json:"data"`
}
// op 列表-zid查询
type OpListByZidReq struct {
base.BaseRequest
Zid *int64 `json:"zid"` // 空间id
MType *int64 `json:"m_type"` // 媒体类型
CType *int64 `json:"c_type"` // 付费模式
IsIronfanVisible *int64 `json:"is_ironfan_visible"` // 是否铁粉可见
CtUpperBound *int64 `json:"ct_upper_bound"` // 创建时间上界,闭区间
CtLowerBound *int64 `json:"ct_lower_bound"` // 创建时间下界开区间可为0
Offset int `json:"offset"`
Limit int `json:"limit"`
Status *int64
}
type OpListByZidData struct {
List []*ApiZoneMomentVO `json:"list"`
Offset int `json:"offset"`
More int `json:"more"`
}
type OpListByZidResp struct {
base.BaseResponse
Data *OpListByZidData `json:"data"`
}
// op 列表-user_id直查
type OpListByUserIdReq struct {
base.BaseRequest
UserId int64 `json:"user_id"` //user_id
CtUpperBound *int64 `json:"ct_upper_bound"` //创建时间上界,闭区间
CtLowerBound *int64 `json:"ct_lower_bound"` //创建时间下界开区间可为0
Offset int `json:"offset"`
Limit int `json:"limit"`
}
type OpListByUserIdData struct {
ListByUserId []*OpZoneMomentVO `json:"list"`
Offset int `json:"offset"`
More int `json:"more"`
}
type OpListByUserIdResp struct {
base.BaseResponse
Data *OpListByUserIdData `json:"data"`
}
// op 点赞
type OpZoneMomentThumbsUpReq struct {
base.BaseRequest
ZoneMomentId *int64 `json:"zone_moment_id"`
Mid *int64 `json:"mid"`
Times *int64 `json:"times"`
}
type OpZoneMomentThumbsUpData struct {
*dbstruct.ZoneMoment
}
type OpZoneMomentThumbsUpResp struct {
base.BaseResponse
Data *OpZoneMomentThumbsUpData `json:"data"`
}
// op 复审
type OpReviewReq struct {
base.BaseRequest
ZoneMomentIds []int64 `json:"zone_moment_ids"`
OpType int64 `json:"op_type"`
ManuallyReviewOpinion string `json:"manually_review_opinion"`
}
type OpReviewData struct {
}
type OpReviewResp struct {
base.BaseResponse
Data *OpReviewData `json:"data"`
}
// op 置顶
type OpHeadReq struct {
base.BaseRequest
ZoneMomentIds []int64 `json:"zone_moment_ids"`
OpType int64 `json:"op_type"`
}
type OpHeadData struct {
}
type OpHeadResp struct {
base.BaseResponse
Data *OpHeadData `json:"data"`
}
// op 退回动态
type OpSetPrivateReq struct {
base.BaseRequest
ZoneMomentId *int64 `json:"zone_moment_id"`
ManuallyReviewOpinion string `json:"manually_review_opinion"`
}
type OpSetPrivateData struct {
}
type OpSetPrivateResp struct {
base.BaseResponse
Data *OpSetPrivateData `json:"data"`
}