This commit is contained in:
parent
84e28cb08b
commit
857679c1fc
|
@ -52,6 +52,18 @@ func ApiGetContactCustomerServiceListBySessionId(ctx *gin.Context) {
|
|||
ReplyOk(ctx, data)
|
||||
}
|
||||
|
||||
func ApiUpdateContactCustomerServiceByIds(ctx *gin.Context) {
|
||||
req := ctx.MustGet("client_req").(*contact_customer_serviceproto.ApiUpdateByIdsReq)
|
||||
ec := service.DefaultService.ApiUpdateContactCustomerServiceByIds(ctx, req)
|
||||
if ec != errcode.ErrCodeContactCustomerServiceSrvOk {
|
||||
logger.Error("ApiUpdateContactCustomerService fail, req: %v, ec: %v", util.ToJson(req), ec)
|
||||
ReplyErrCodeMsg(ctx, ec)
|
||||
return
|
||||
}
|
||||
|
||||
ReplyOk(ctx, nil)
|
||||
}
|
||||
|
||||
func ApiReadAllContactCustomerService(ctx *gin.Context) {
|
||||
req := ctx.MustGet("client_req").(*contact_customer_serviceproto.ApiReadAllReq)
|
||||
ec := service.DefaultService.ApiReadAllContactCustomerService(ctx, req)
|
||||
|
|
|
@ -200,6 +200,7 @@ func Init(r *gin.Engine) {
|
|||
apiContactCustomerServiceGroup := r.Group("/api/contact_customer_service", PrepareToC())
|
||||
apiContactCustomerServiceGroup.POST("create", middleware.JSONParamValidator(contact_customer_serviceproto.ApiCreateReq{}), middleware.JwtAuthenticator(), ApiCreateContactCustomerService)
|
||||
apiContactCustomerServiceGroup.POST("list_by_session_id", middleware.JSONParamValidator(contact_customer_serviceproto.ApiListBySessionIdReq{}), middleware.JwtAuthenticator(), ApiGetContactCustomerServiceListBySessionId)
|
||||
apiContactCustomerServiceGroup.POST("update_by_ids", middleware.JSONParamValidator(contact_customer_serviceproto.ApiUpdateByIdsReq{}), middleware.JwtAuthenticator(), ApiUpdateContactCustomerServiceByIds)
|
||||
apiContactCustomerServiceGroup.POST("read_all", middleware.JSONParamValidator(contact_customer_serviceproto.ApiReadAllReq{}), middleware.JwtAuthenticator(), ApiReadAllContactCustomerService)
|
||||
|
||||
// 联系客服对话表
|
||||
|
|
Loading…
Reference in New Issue