|
|
@@ -34,11 +34,13 @@ type PartnerHTTPServer interface {
|
|
|
CreateScrip(context.Context, *CreateScripRequest) (*common.ScripID, error)
|
|
|
CreateUserPartnerRoom(context.Context, *common.CreateChatRoomParam) (*chat.RoomReply, error)
|
|
|
DeleteScrip(context.Context, *common.ScripIdRequest) (*emptypb.Empty, error)
|
|
|
+ ExaminePartner(context.Context, *ExaminePartnerRequest) (*emptypb.Empty, error)
|
|
|
FindChatCollectList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
|
|
|
FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
|
|
|
FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
|
|
|
FindChatTopic(context.Context, *common.FindChatTopicRequest) (*common.ChatTopicList, error)
|
|
|
FindChatTopicTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
|
|
|
+ FindExamineList(context.Context, *common.ListPage2Request) (*FindExamineListReply, error)
|
|
|
FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
|
|
|
FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error)
|
|
|
FindMemeTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
|
|
|
@@ -68,6 +70,7 @@ type PartnerHTTPServer interface {
|
|
|
PartnerGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
|
|
|
PartnerGetRoomBalanceAndTodayBalance(context.Context, *common.RoomIDRequest) (*PartnerGetRoomBalanceAndTodayBalanceReply, error)
|
|
|
PartnerLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
|
+ PartnerRegister(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
|
|
|
PartnerUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
|
|
|
PartnerUpdateWorkingStatus(context.Context, *PartnerUpdateWorkingStatusRequest) (*emptypb.Empty, error)
|
|
|
PartnerWithdrawRecordList(context.Context, *common.ListPageRequest) (*PartnerWithdrawRecordListReply, error)
|
|
|
@@ -138,6 +141,9 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
|
|
|
r.POST("/api/partner/withdraw/template/list", _Partner_PartnerWithdrawTemplateList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/withdraw/record/list", _Partner_PartnerWithdrawRecordList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/balance/room", _Partner_PartnerGetRoomBalanceAndTodayBalance0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/partner/register", _Partner_PartnerRegister0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/partner/register/examine/list", _Partner_FindExamineList0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/partner/register/examine", _Partner_ExaminePartner0_HTTP_Handler(srv))
|
|
|
}
|
|
|
|
|
|
func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
@@ -1544,16 +1550,99 @@ func _Partner_PartnerGetRoomBalanceAndTodayBalance0_HTTP_Handler(srv PartnerHTTP
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+func _Partner_PartnerRegister0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in common.UpdateInformationRequest
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/PartnerRegister")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.PartnerRegister(ctx, req.(*common.UpdateInformationRequest))
|
|
|
+ })
|
|
|
+ out, err := h(ctx, &in)
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ success := &reply.SuccessReply{
|
|
|
+ Code: 0,
|
|
|
+ }
|
|
|
+ if out != nil {
|
|
|
+ success.Data = out
|
|
|
+ }
|
|
|
+ return ctx.Result(200, success)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func _Partner_FindExamineList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in common.ListPage2Request
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/FindExamineList")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.FindExamineList(ctx, req.(*common.ListPage2Request))
|
|
|
+ })
|
|
|
+ out, err := h(ctx, &in)
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ success := &reply.SuccessReply{
|
|
|
+ Code: 0,
|
|
|
+ }
|
|
|
+ if out != nil {
|
|
|
+ success.Data = out
|
|
|
+ }
|
|
|
+ return ctx.Result(200, success)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func _Partner_ExaminePartner0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in ExaminePartnerRequest
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/ExaminePartner")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.ExaminePartner(ctx, req.(*ExaminePartnerRequest))
|
|
|
+ })
|
|
|
+ out, err := h(ctx, &in)
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ success := &reply.SuccessReply{
|
|
|
+ Code: 0,
|
|
|
+ }
|
|
|
+ if out != nil {
|
|
|
+ success.Data = out
|
|
|
+ }
|
|
|
+ return ctx.Result(200, success)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
type PartnerHTTPClient interface {
|
|
|
CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
CreateScrip(ctx context.Context, req *CreateScripRequest, opts ...http.CallOption) (rsp *common.ScripID, err error)
|
|
|
CreateUserPartnerRoom(ctx context.Context, req *common.CreateChatRoomParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
|
|
|
DeleteScrip(ctx context.Context, req *common.ScripIdRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
+ ExaminePartner(ctx context.Context, req *ExaminePartnerRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
FindChatCollectList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
|
|
|
FindChatRecordList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
|
|
|
FindChatRoomMsg(ctx context.Context, req *common.FindChatRoomMsgRequest, opts ...http.CallOption) (rsp *common.ChatRoomMsg, err error)
|
|
|
FindChatTopic(ctx context.Context, req *common.FindChatTopicRequest, opts ...http.CallOption) (rsp *common.ChatTopicList, err error)
|
|
|
FindChatTopicTitle(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.MemeTitleList, err error)
|
|
|
+ FindExamineList(ctx context.Context, req *common.ListPage2Request, opts ...http.CallOption) (rsp *FindExamineListReply, err error)
|
|
|
FindLookList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *statistics.LookAndLikeListReply, err error)
|
|
|
FindMemeByType(ctx context.Context, req *common.MemeRequest, opts ...http.CallOption) (rsp *common.MemeList, err error)
|
|
|
FindMemeTitle(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.MemeTitleList, err error)
|
|
|
@@ -1583,6 +1672,7 @@ type PartnerHTTPClient interface {
|
|
|
PartnerGetPersonLikedAndLooked(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.LookedAndLikedNum, err error)
|
|
|
PartnerGetRoomBalanceAndTodayBalance(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *PartnerGetRoomBalanceAndTodayBalanceReply, err error)
|
|
|
PartnerLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
+ PartnerRegister(ctx context.Context, req *common.UpdateInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerUnLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerUpdateWorkingStatus(ctx context.Context, req *PartnerUpdateWorkingStatusRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerWithdrawRecordList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *PartnerWithdrawRecordListReply, err error)
|
|
|
@@ -1659,6 +1749,19 @@ func (c *PartnerHTTPClientImpl) DeleteScrip(ctx context.Context, in *common.Scri
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *PartnerHTTPClientImpl) ExaminePartner(ctx context.Context, in *ExaminePartnerRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
+ var out emptypb.Empty
|
|
|
+ pattern := "/api/partner/register/examine"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/ExaminePartner"))
|
|
|
+ opts = append(opts, http.PathTemplate(pattern))
|
|
|
+ err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return &out, err
|
|
|
+}
|
|
|
+
|
|
|
func (c *PartnerHTTPClientImpl) FindChatCollectList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...http.CallOption) (*common.ChatRecordListReply, error) {
|
|
|
var out common.ChatRecordListReply
|
|
|
pattern := "/api/partner/collect/list"
|
|
|
@@ -1724,6 +1827,19 @@ func (c *PartnerHTTPClientImpl) FindChatTopicTitle(ctx context.Context, in *empt
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *PartnerHTTPClientImpl) FindExamineList(ctx context.Context, in *common.ListPage2Request, opts ...http.CallOption) (*FindExamineListReply, error) {
|
|
|
+ var out FindExamineListReply
|
|
|
+ pattern := "/api/partner/register/examine/list"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/FindExamineList"))
|
|
|
+ opts = append(opts, http.PathTemplate(pattern))
|
|
|
+ err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return &out, err
|
|
|
+}
|
|
|
+
|
|
|
func (c *PartnerHTTPClientImpl) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*statistics.LookAndLikeListReply, error) {
|
|
|
var out statistics.LookAndLikeListReply
|
|
|
pattern := "/api/partner/list/look"
|
|
|
@@ -2101,6 +2217,19 @@ func (c *PartnerHTTPClientImpl) PartnerLike(ctx context.Context, in *common.Pers
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *PartnerHTTPClientImpl) PartnerRegister(ctx context.Context, in *common.UpdateInformationRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
+ var out emptypb.Empty
|
|
|
+ pattern := "/api/partner/register"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/PartnerRegister"))
|
|
|
+ opts = append(opts, http.PathTemplate(pattern))
|
|
|
+ err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return &out, err
|
|
|
+}
|
|
|
+
|
|
|
func (c *PartnerHTTPClientImpl) PartnerUnLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
var out emptypb.Empty
|
|
|
pattern := "/api/partner/unlike"
|