| | |
| | | // @Tags CustomerServiceSheet |
| | | // @Summary 更新客服单 |
| | | // @Produce application/json |
| | | // @Param object body request.UpdateCustomerServiceSheet true "查询参数" |
| | | // @Success 200 {object} contextx.Response{} |
| | | // @Param object body request.UpdateCustomerServiceSheet true "查询参数" |
| | | // @Success 200 {object} contextx.Response{} |
| | | // @Router /api/customerServiceSheet/update/{id} [put] |
| | | func (s *CustomerServiceSheetApi) Update(c *gin.Context) { |
| | | var params request.UpdateCustomerServiceSheet |
| | |
| | | |
| | | // checkCustomerServiceSheetParams |
| | | func checkCustomerServiceSheetParams(customerServiceSheet request.CustomerServiceSheet) (errCode int, newCustomerServiceSheet model.CustomerServiceSheet) { |
| | | if customerServiceSheet.Number == "" { |
| | | return ecode.InvalidParams, model.CustomerServiceSheet{} |
| | | } |
| | | //if customerServiceSheet.Number == "" { |
| | | // return ecode.InvalidParams, model.CustomerServiceSheet{} |
| | | //} |
| | | |
| | | if customerServiceSheet.MemberId == 0 { |
| | | return ecode.InvalidParams, model.CustomerServiceSheet{} |
| | | } |
| | | //if customerServiceSheet.MemberId == 0 { |
| | | // return ecode.InvalidParams, model.CustomerServiceSheet{} |
| | | //} |
| | | |
| | | newCustomerServiceSheet = model.CustomerServiceSheet{ |
| | | Number: customerServiceSheet.Number, |