Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
fc666f75
Commit
fc666f75
authored
Jul 12, 2017
by
huangpu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swagger 发送参数bug
parent
fc72457a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
src/main/java/com/stylefeng/guns/modular/system/controller/CodeController.java
+6
-9
No files found.
src/main/java/com/stylefeng/guns/modular/system/controller/CodeController.java
View file @
fc666f75
...
...
@@ -9,12 +9,12 @@ import com.stylefeng.guns.core.template.config.ContextConfig;
import
com.stylefeng.guns.core.template.engine.SimpleTemplateEngine
;
import
com.stylefeng.guns.core.template.engine.base.GunsTemplateEngine
;
import
com.stylefeng.guns.core.util.ToolUtil
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
/**
...
...
@@ -41,16 +41,13 @@ public class CodeController extends BaseController {
* 代码生成
*/
@ApiOperation
(
"生成代码"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"moduleName"
,
value
=
"模块名称"
,
required
=
true
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"bizChName"
,
value
=
"业务名称"
,
required
=
true
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"bizEnName"
,
value
=
"业务英文名称"
,
required
=
true
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"path"
,
value
=
"项目生成类路径"
,
required
=
true
,
dataType
=
"String"
)
})
@RequestMapping
(
value
=
"/generate"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@Permission
(
Const
.
ADMIN_NAME
)
public
Object
add
(
String
moduleName
,
String
bizChName
,
String
bizEnName
,
String
path
)
{
public
Object
add
(
@ApiParam
(
value
=
"模块名称"
,
required
=
true
)
@RequestParam
String
moduleName
,
@RequestParam
String
bizChName
,
@RequestParam
String
bizEnName
,
@RequestParam
String
path
)
{
if
(
ToolUtil
.
isOneEmpty
(
bizChName
,
bizEnName
))
{
throw
new
BussinessException
(
BizExceptionEnum
.
REQUEST_NULL
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment