浏览代码

陪玩者

wfz 3 年之前
父节点
当前提交
b729c940f2
共有 4 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      api/partner/partner.pb.go
  2. 1 1
      api/partner/partner.proto
  3. 2 2
      api/partner/partner_http.pb.go
  4. 1 1
      js/api/partner/partner_http_pb.ts

+ 1 - 1
api/partner/partner.pb.go

@@ -404,7 +404,7 @@ var file_partner_proto_rawDesc = []byte{
 	0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x4c,
 	0x6f, 0x6f, 0x6b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
 	0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61,
-	0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x6c, 0x6f, 0x6f, 0x6b, 0x2f, 0x6e, 0x75, 0x6d, 0x3a, 0x01,
+	0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x6e, 0x75, 0x6d, 0x2f, 0x6c, 0x6f, 0x6f, 0x6b, 0x3a, 0x01,
 	0x2a, 0x12, 0x6c, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f,
 	0x64, 0x65, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
 	0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71,

+ 1 - 1
api/partner/partner.proto

@@ -23,7 +23,7 @@ service Partner {
   // 获取接待员访问数详情
   rpc GetPartnerLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){
     option (google.api.http) = {
-      post: "/api/partner/look/num",
+      post: "/api/partner/num/look",
       body:"*"
     };
   };

+ 2 - 2
api/partner/partner_http.pb.go

@@ -41,7 +41,7 @@ type PartnerHTTPServer interface {
 func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
 	r := s.Route("/")
 	r.POST("/api/partner/info", _Partner_GetPartnerInfo0_HTTP_Handler(srv))
-	r.POST("/api/partner/look/num", _Partner_GetPartnerLookNum0_HTTP_Handler(srv))
+	r.POST("/api/partner/num/look", _Partner_GetPartnerLookNum0_HTTP_Handler(srv))
 	r.POST("/api/partner/code/send", _Partner_SendPhoneCode0_HTTP_Handler(srv))
 	r.POST("/api/partner/code/check", _Partner_CheckPhoneCode0_HTTP_Handler(srv))
 	r.POST("/api/partner/update/information", _Partner_UpdatePartnerInformation0_HTTP_Handler(srv))
@@ -297,7 +297,7 @@ func (c *PartnerHTTPClientImpl) GetPartnerInfo(ctx context.Context, in *emptypb.
 
 func (c *PartnerHTTPClientImpl) GetPartnerLookNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*statistics.LookMessageReply, error) {
 	var out statistics.LookMessageReply
-	pattern := "/api/partner/look/num"
+	pattern := "/api/partner/num/look"
 	path := binding.EncodeURL(pattern, in, false)
 	opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerLookNum"))
 	opts = append(opts, http.PathTemplate(pattern))

+ 1 - 1
js/api/partner/partner_http_pb.ts

@@ -12,7 +12,7 @@ const PartnerService = {
   },
   /**  获取接待员访问数详情 */
   GetPartnerLookNum: async (req?: undefined) => {
-	const res = await request.post<{ data: LookMessageReply, code: string, message: string }>('/api/partner/look/num', req);
+	const res = await request.post<{ data: LookMessageReply, code: string, message: string }>('/api/partner/num/look', req);
     return res.data;
   },
   /**  接待员发送验证码 */