+ cms/SendMsg2Somebody

This commit is contained in:
gazebo
2019-07-15 11:28:36 +08:00
parent 1bc869b11d
commit 498bbe07f8
3 changed files with 48 additions and 0 deletions

View File

@@ -200,3 +200,18 @@ func (c *CmsController) FakeNewOrder() {
return retVal, "", err
})
}
// @Title 发送消息给相关人员
// @Description 发送消息给相关人员
// @Param token header string true "认证token"
// @Param msgType formData string true "消息类型"
// @Param msgContent formData string true "消息内容"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /SendMsg2Somebody [post]
func (c *CmsController) SendMsg2Somebody() {
c.callSendMsg2Somebody(func(params *tCmsSendMsg2SomebodyParams) (retVal interface{}, errCode string, err error) {
err = cms.SendMsg2Somebody(params.Ctx, params.MsgType, params.MsgContent)
return retVal, "", err
})
}