mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
【修复】codegen 生成代码时,delete 接口补充 dataTypeClass 属性,避免 Swagger 打印 WARN 日志
This commit is contained in:
parent
9b26c3e98a
commit
a3d8e8726a
@ -45,7 +45,7 @@ public class BpmFormController {
|
|||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除动态表单")
|
@ApiOperation("删除动态表单")
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = Long.class)
|
||||||
@PreAuthorize("@ss.hasPermission('bpm:form:delete')")
|
@PreAuthorize("@ss.hasPermission('bpm:form:delete')")
|
||||||
public CommonResult<Boolean> deleteForm(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteForm(@RequestParam("id") Long id) {
|
||||||
formService.deleteForm(id);
|
formService.deleteForm(id);
|
||||||
|
@ -53,7 +53,7 @@ public class BpmUserGroupController {
|
|||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除用户组")
|
@ApiOperation("删除用户组")
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = Long.class)
|
||||||
@PreAuthorize("@ss.hasPermission('bpm:user-group:delete')")
|
@PreAuthorize("@ss.hasPermission('bpm:user-group:delete')")
|
||||||
public CommonResult<Boolean> deleteUserGroup(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteUserGroup(@RequestParam("id") Long id) {
|
||||||
userGroupService.deleteUserGroup(id);
|
userGroupService.deleteUserGroup(id);
|
||||||
|
@ -61,7 +61,7 @@ public class OALeaveController {
|
|||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除请假申请")
|
@ApiOperation("删除请假申请")
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = Long.class)
|
||||||
@PreAuthorize("@ss.hasPermission('oa:leave:delete')")
|
@PreAuthorize("@ss.hasPermission('oa:leave:delete')")
|
||||||
public CommonResult<Boolean> deleteLeave(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteLeave(@RequestParam("id") Long id) {
|
||||||
leaveService.deleteLeave(id);
|
leaveService.deleteLeave(id);
|
||||||
|
@ -54,7 +54,7 @@ public class InfFileController {
|
|||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除文件")
|
@ApiOperation("删除文件")
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = String.class)
|
||||||
@PreAuthorize("@ss.hasPermission('infra:file:delete')")
|
@PreAuthorize("@ss.hasPermission('infra:file:delete')")
|
||||||
public CommonResult<Boolean> deleteFile(@RequestParam("id") String id) {
|
public CommonResult<Boolean> deleteFile(@RequestParam("id") String id) {
|
||||||
fileCoreService.deleteFile(id);
|
fileCoreService.deleteFile(id);
|
||||||
|
@ -50,7 +50,7 @@ public class SysErrorCodeController {
|
|||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除错误码")
|
@ApiOperation("删除错误码")
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = Long.class)
|
||||||
@PreAuthorize("@ss.hasPermission('system:error-code:delete')")
|
@PreAuthorize("@ss.hasPermission('system:error-code:delete')")
|
||||||
public CommonResult<Boolean> deleteErrorCode(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteErrorCode(@RequestParam("id") Long id) {
|
||||||
errorCodeService.deleteErrorCode(id);
|
errorCodeService.deleteErrorCode(id);
|
||||||
|
@ -44,7 +44,7 @@ public class SysSmsChannelController {
|
|||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除短信渠道")
|
@ApiOperation("删除短信渠道")
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = Long.class)
|
||||||
@PreAuthorize("@ss.hasPermission('system:sms-channel:delete')")
|
@PreAuthorize("@ss.hasPermission('system:sms-channel:delete')")
|
||||||
public CommonResult<Boolean> deleteSmsChannel(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteSmsChannel(@RequestParam("id") Long id) {
|
||||||
smsChannelService.deleteSmsChannel(id);
|
smsChannelService.deleteSmsChannel(id);
|
||||||
|
@ -51,7 +51,7 @@ public class SysSmsTemplateController {
|
|||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除短信模板")
|
@ApiOperation("删除短信模板")
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = Long.class)
|
||||||
@PreAuthorize("@ss.hasPermission('system:sms-template:delete')")
|
@PreAuthorize("@ss.hasPermission('system:sms-template:delete')")
|
||||||
public CommonResult<Boolean> deleteSmsTemplate(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteSmsTemplate(@RequestParam("id") Long id) {
|
||||||
smsTemplateService.deleteSmsTemplate(id);
|
smsTemplateService.deleteSmsTemplate(id);
|
||||||
|
@ -57,7 +57,7 @@ public class SysTenantController {
|
|||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除租户")
|
@ApiOperation("删除租户")
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = Long.class)
|
||||||
@PreAuthorize("@ss.hasPermission('system:tenant:delete')")
|
@PreAuthorize("@ss.hasPermission('system:tenant:delete')")
|
||||||
public CommonResult<Boolean> deleteTenant(@RequestParam("id") Long id) {
|
public CommonResult<Boolean> deleteTenant(@RequestParam("id") Long id) {
|
||||||
tenantService.deleteTenant(id);
|
tenantService.deleteTenant(id);
|
||||||
|
@ -54,7 +54,7 @@ public class ${table.className}Controller {
|
|||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除${table.classComment}")
|
@ApiOperation("删除${table.classComment}")
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = ${primaryColumn.javaType}.class)
|
||||||
@PreAuthorize("@ss.hasPermission('${permissionPrefix}:delete')")
|
@PreAuthorize("@ss.hasPermission('${permissionPrefix}:delete')")
|
||||||
public CommonResult<Boolean> delete${simpleClassName}(@RequestParam("id") ${primaryColumn.javaType} id) {
|
public CommonResult<Boolean> delete${simpleClassName}(@RequestParam("id") ${primaryColumn.javaType} id) {
|
||||||
${classNameVar}Service.delete${simpleClassName}(id);
|
${classNameVar}Service.delete${simpleClassName}(id);
|
||||||
|
Loading…
Reference in New Issue
Block a user