- elem/msg get return ok.
This commit is contained in:
@@ -15,16 +15,16 @@ type ELMOrderController struct {
|
||||
}
|
||||
|
||||
func (c *ELMOrderController) URLMapping() {
|
||||
c.Mapping("Msg", c.Msg)
|
||||
c.Mapping("MsgPost", c.MsgPost)
|
||||
c.Mapping("MsgGet", c.MsgGet)
|
||||
}
|
||||
|
||||
// @Title all msg
|
||||
// @Description create object
|
||||
// @Param jd_param_json formData string true "应用级别输入参数"
|
||||
// @Success 200 {string} models.Object.Id
|
||||
// @Failure 403 body is empty
|
||||
// @router /msg [post]
|
||||
func (c *ELMOrderController) Msg() {
|
||||
func (c *ELMOrderController) MsgPost() {
|
||||
var obj elmapi.ELMCallbackMsg
|
||||
jdParamJSON := c.Ctx.Input.RequestBody
|
||||
|
||||
@@ -38,3 +38,12 @@ func (c *ELMOrderController) Msg() {
|
||||
}
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
// @Title all msg test
|
||||
// @Description create object
|
||||
// @Success 200 {string} models.Object.Id
|
||||
// @router /msg [get]
|
||||
func (c *ELMOrderController) MsgGet() {
|
||||
c.Data["json"] = elmapi.ELMResponseOK
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user