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