221 lines
5.1 KiB
Go
221 lines
5.1 KiB
Go
package proto
|
|
|
|
import (
|
|
"service/api/base"
|
|
"service/bizcommon/util"
|
|
"service/dbstruct"
|
|
)
|
|
|
|
// api 更新
|
|
type ApiUpdateReq struct {
|
|
base.BaseRequest
|
|
*dbstruct.Streamer
|
|
}
|
|
|
|
type ApiUpdateData struct {
|
|
}
|
|
|
|
type ApiUpdateResp struct {
|
|
base.BaseResponse
|
|
Data *ApiUpdateData `json:"data"`
|
|
}
|
|
|
|
// api 列表
|
|
type ApiListReq struct {
|
|
base.BaseRequest
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
Sort []string
|
|
}
|
|
|
|
type ApiListData struct {
|
|
List []*dbstruct.Streamer
|
|
Offset int `json:"offset"`
|
|
More int `json:"more"`
|
|
}
|
|
|
|
type ApiListResp struct {
|
|
base.BaseResponse
|
|
Data *ApiListData `json:"data"`
|
|
}
|
|
|
|
// api 单个mid查询
|
|
type ApiListByMidReq struct {
|
|
base.BaseRequest
|
|
Mid *int64 `json:"mid"`
|
|
}
|
|
|
|
type ApiListByMidData struct {
|
|
Streamer *dbstruct.Streamer `json:"streamer"`
|
|
}
|
|
|
|
type ApiListByMidResp struct {
|
|
base.BaseResponse
|
|
Data *ApiListByMidData `json:"data"`
|
|
}
|
|
|
|
// api 多个mid查询
|
|
type ApiListByMidsReq struct {
|
|
base.BaseRequest
|
|
Mids []int64 `json:"mids"`
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
Sort []string
|
|
}
|
|
|
|
type ApiListByMidsData struct {
|
|
List []*dbstruct.Streamer `json:"list"`
|
|
}
|
|
|
|
type ApiListByMidsResp struct {
|
|
base.BaseResponse
|
|
Data *ApiListByMidData `json:"data"`
|
|
}
|
|
|
|
// api 高级查询-单个mid
|
|
type ApiListExtByMidReq struct {
|
|
base.BaseRequest
|
|
Uid *int64 `json:"mid"` // 单个mid查询
|
|
}
|
|
|
|
type ApiListExtByMidData struct {
|
|
StreamerExt *ApiListExtVO `json:"streamer_ext"`
|
|
WechatLockType int32 `json:"wechat_lock_type"` // 微信解锁类型
|
|
IsUnlockWechat int32 `json:"is_unlock_wechat"` // 是否解锁微信
|
|
WechatOrderId string `json:"wechat_order_id"` // 微信订单id
|
|
WechatOrderStatus int32 `json:"wechat_order_status"` // 微信订单状态
|
|
}
|
|
|
|
type ApiListExtByMidResp struct {
|
|
base.BaseResponse
|
|
Data *ApiListExtByMidData `json:"data"`
|
|
}
|
|
|
|
// api 高级查询-多个mid
|
|
type ApiListExtByMidsReq struct {
|
|
base.BaseRequest
|
|
Mids []int64 `json:"mids"` // 多个mid查询
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
}
|
|
|
|
type ApiListExtByMidsData struct {
|
|
List []*ApiListExtVO `json:"list"`
|
|
Offset int `json:"offset"`
|
|
More int `json:"more"`
|
|
}
|
|
|
|
type ApiListExtByMidsResp struct {
|
|
base.BaseResponse
|
|
Data *ApiListExtByMidsData `json:"data"`
|
|
}
|
|
|
|
// api 高级查询-user_id精确查询
|
|
type ApiListExtByUserIdReq struct {
|
|
base.BaseRequest
|
|
UserId *int64 `json:"user_id"` // 单个mid查询
|
|
}
|
|
|
|
type ApiListExtByUserIdData struct {
|
|
StreamerExt *ApiListExtVO `json:"streamer_ext"`
|
|
WechatLockType int32 `json:"wechat_lock_type"` // 微信解锁类型
|
|
IsUnlockWechat int32 `json:"is_unlock_wechat"` // 是否解锁微信
|
|
}
|
|
|
|
type ApiListExtByUserIdResp struct {
|
|
base.BaseResponse
|
|
Data *ApiListExtByUserIdData `json:"data"`
|
|
}
|
|
|
|
// api 高级查询-user_id模糊查询
|
|
type ApiListExtFuzzilyByUserIdReq struct {
|
|
base.BaseRequest
|
|
UserId *int64 `json:"user_id"` // user_id模糊查询
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
}
|
|
|
|
type ApiListExtFuzzilyByUserIdData struct {
|
|
List []*ApiListExtVO `json:"list"`
|
|
Offset int `json:"offset"`
|
|
More int `json:"more"`
|
|
}
|
|
|
|
type ApiListExtFuzzilyByUserIdResp struct {
|
|
base.BaseResponse
|
|
Data *ApiListExtFuzzilyByUserIdData `json:"data"`
|
|
}
|
|
|
|
// api 高级查询-name模糊查询
|
|
type ApiListExtFuzzilyByNameReq struct {
|
|
base.BaseRequest
|
|
Name string `json:"name"` // name模糊查询
|
|
Offset int `json:"offset"`
|
|
Limit int `json:"limit"`
|
|
}
|
|
|
|
type ApiListExtFuzzilyByNameData struct {
|
|
List []*ApiListExtVO `json:"list"`
|
|
Offset int `json:"offset"`
|
|
More int `json:"more"`
|
|
}
|
|
|
|
type ApiListExtFuzzilyByNameResp struct {
|
|
base.BaseResponse
|
|
Data *ApiListExtFuzzilyByNameData `json:"data"`
|
|
}
|
|
|
|
// api 查询微信
|
|
type ApiListStreamerWxIdReq struct {
|
|
base.BaseRequest
|
|
Mid *int64 `json:"mid"`
|
|
}
|
|
|
|
type ApiListStreamerWxIdData struct {
|
|
WxIdVO *ApiListWxIdVO `json:"wx_id_vo"`
|
|
}
|
|
|
|
type ApiListStreamerWxIdResp struct {
|
|
base.BaseResponse
|
|
Data *ApiListStreamerWxIdData `json:"data"`
|
|
}
|
|
|
|
// api 推荐
|
|
type ApiRecommListReq struct {
|
|
base.BaseRequest
|
|
OpType int64 `json:"op_type"`
|
|
}
|
|
|
|
type ApiRecommListData struct {
|
|
RecommList []*ApiListExtVO `json:"recomm_list"`
|
|
}
|
|
|
|
type ApiRecommListResp struct {
|
|
base.BaseResponse
|
|
Data *ApiRecommListData `json:"data"`
|
|
}
|
|
|
|
// api 推荐
|
|
type ApiFilterReq struct {
|
|
base.BaseRequest
|
|
Age *util.Int64Filter `json:"age"`
|
|
Fans *util.Int64Filter `json:"fans"`
|
|
Height *util.Int64Filter `json:"height"`
|
|
Weight *util.Int64Filter `json:"weight"`
|
|
WechatCoinPrice *util.Int64Filter `json:"wechat_coin_price"`
|
|
ZoneAdmissionPrice *util.Int64Filter `json:"zone_admission_price"`
|
|
City *string `json:"city"`
|
|
Constellation *string `json:"constellation"`
|
|
IsActiveWithinAWeek *int64 `json:"is_active_within_a_week"`
|
|
}
|
|
|
|
type ApiFilterData struct {
|
|
StreamerList []*ApiListExtVO `json:"streamer_list"`
|
|
RecommList []*ApiListExtVO `json:"recomm_list"`
|
|
}
|
|
|
|
type ApiFilterResp struct {
|
|
base.BaseResponse
|
|
Data *ApiFilterData `json:"data"`
|
|
}
|