@@ -10,35 +10,35 @@ info(
1010
1111@server(
1212 group: admin/scrm/wechat/wecom/customer
13- prefix: /api/v1/admin/scrm/wechat/wecom
13+ prefix: /api/v1/admin/scrm/wechat/wecom/customers
1414 middleware: UserJWTAuth
1515)
1616
1717service PowerX {
1818 @doc "批量同步客户信息(根据员工ID同步/节流)"
1919 @handler SyncWeComCustomerOption
20- post /customers/ sync (WeComCustomersRequest) returns (WeComListCustomersReply)
20+ post /sync (WeComCustomersRequest) returns (WeComListCustomersReply)
2121
2222
2323 @doc "所有客户列表/page"
2424 @handler ListWeComCustomerPage
25- post /customers/ page (WeComCustomersRequest) returns (WeComListCustomersReply)
25+ post /page (WeComCustomersRequest) returns (WeComListCustomersReply)
2626
2727 @doc "查询客户详情"
2828 @handler GetWeComCustomer
29- get /customers/ :id (GetWeComCustomerRequest) returns (GetWeComCustomerReply)
29+ get /:id (GetWeComCustomerRequest) returns (GetWeComCustomerReply)
3030
3131 @doc "查询客户详情列表"
3232 @handler ListWeComCustomers
33- get /customers (ListWeComCustomersRequest) returns (ListWeComCustomersReply)
33+ get / (ListWeComCustomersRequest) returns (ListWeComCustomersReply)
3434
3535 @doc "修改客户信息"
3636 @handler PatchWeComCustomer
37- patch /customers/ :id (PatchWeComCustomerRequest) returns (PatchWeComCustomerReply)
37+ patch /:id (PatchWeComCustomerRequest) returns (PatchWeComCustomerReply)
3838
3939 @doc "同步客户"
4040 @handler SyncWeComCustomer
41- post /customers/ actions/sync returns (SyncWeComCustomerReply)
41+ post /actions/sync returns (SyncWeComCustomerReply)
4242}
4343
4444
@@ -144,7 +144,7 @@ type (
144144 CreatedTime int `json:"createtime"`
145145 Tags []WeComCustomersFollowUserWithTags `json:"tags"`
146146 TagIds []string `json:"tagIds"`
147- WeComChannels WeComCustomersFollowUserWithWeComChannels `json:"wechatChannels "`
147+ WeComChannels WeComCustomersFollowUserWithWeComChannels `json:"weComChannels "`
148148 RemarkCorpName string `json:"remarkCorpName,omitempty"`
149149 RemarkMobiles []string `json:"remarkMobiles,omitempty"`
150150 OpenUserId string `json:"openUserId"`
0 commit comments