Pre Merge pull request !267 from 稚屿/N/A
This commit is contained in:
commit
e6c16d2254
@ -88,6 +88,7 @@ public class ${ClassName}Controller extends BaseController
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ${ClassName} ${className})
|
||||
{
|
||||
${className}.setCreateBy(SecurityUtils.getUsername());
|
||||
return toAjax(${className}Service.insert${ClassName}(${className}));
|
||||
}
|
||||
|
||||
@ -99,6 +100,7 @@ public class ${ClassName}Controller extends BaseController
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ${ClassName} ${className})
|
||||
{
|
||||
${className}.setUpdateBy(SecurityUtils.getUsername());
|
||||
return toAjax(${className}Service.update${ClassName}(${className}));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user