aa
This commit is contained in:
@@ -553,14 +553,14 @@ func (c *JobController) TempJob() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// @Title 测试接口2
|
// @Title 测试接口2
|
||||||
// @Description 测试接口
|
// @Description 测试接口2
|
||||||
// @Param token header string false "认证token"
|
// @Param token header string false "认证token"
|
||||||
// @Param data formData string false "data"
|
// @Param data formData string false "data"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /TempJob2 [post]
|
// @router /TempJobTest [post]
|
||||||
func (c *JobController) TempJob2() {
|
func (c *JobController) TempJobTest() {
|
||||||
c.callTempJob2(func(params *tJobTempJob2Params) (retVal interface{}, errCode string, err error) {
|
c.callTempJobTest(func(params *tJobTempJobTestParams) (retVal interface{}, errCode string, err error) {
|
||||||
cms.TestTemp2(params.Data)
|
cms.TestTemp2(params.Data)
|
||||||
return retVal, "", err
|
return retVal, "", err
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -693,8 +693,8 @@ func init() {
|
|||||||
|
|
||||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"],
|
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"],
|
||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
Method: "TempJob2",
|
Method: "TempJobTest",
|
||||||
Router: "/TempJob2",
|
Router: "/TempJobTest",
|
||||||
AllowHTTPMethods: []string{"post"},
|
AllowHTTPMethods: []string{"post"},
|
||||||
MethodParams: param.Make(),
|
MethodParams: param.Make(),
|
||||||
Filters: nil,
|
Filters: nil,
|
||||||
|
|||||||
Reference in New Issue
Block a user