From b82c4c558ba9a484baf2f20f57b27b9cec86a3d6 Mon Sep 17 00:00:00 2001 From: 1178634255 <1178634255@qq.com> Date: Fri, 16 Jun 2023 11:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=B3=A8=E8=A7=A3=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/ClassifyCodeController.java | 6 +++- .../controller/system/CompanyController.java | 8 +++-- .../system/ConnectTestController.java | 6 ++-- .../system/DeviceKeyController.java | 14 +++++---- .../controller/system/SMenuController.java | 12 ++++---- .../system/SysMenuHelpController.java | 12 ++++---- .../system/SysParamConfigController.java | 14 +++++---- .../system/SysPdfModuleController.java | 17 ++++++----- .../system/SysPdfTemplateController.java | 10 +++---- .../controller/system/sroleController.java | 12 ++++---- .../api/entity/auth/AuthConnectEntity.java | 6 +++- .../entity/system/ProductRemarkSetEntity.java | 29 +++++++++++++++++-- .../api/entity/system/SysMenuHelpEntity.java | 17 ++++++----- .../api/entity/system/SysPdaKeyEntity.java | 16 +++++++++- .../entity/system/SystemPDFModuleEntity.java | 18 +++++++++++- .../SystemPDFTemplateRelevanceEntity.java | 13 +++++++++ .../system/SystemParamConfigEntity.java | 15 ++++++++-- .../com/glxp/api/req/auth/sroleRequest.java | 13 +++++---- .../req/system/FilterParamConfigRequest.java | 14 +++++++-- .../req/system/FilterPdfModuleRequest.java | 15 ++++++++-- .../req/system/FilterPdfTemplateRequest.java | 18 ++++++++++-- .../api/req/system/SysMenuHelpRequest.java | 18 +++++++----- .../req/system/SysParamConfigSaveRequest.java | 14 +++++++-- .../req/system/SysPdfModuleSaveRequest.java | 18 ++++++++++-- .../req/system/SysPdfTemplateSaveRequest.java | 17 +++++++++-- .../com/glxp/api/res/auth/sroleResponse.java | 13 +++++---- .../res/system/SystemPDFModuleResponse.java | 17 +++++++++-- .../system/SystemPDFModuleSelectResponse.java | 8 +++-- .../SystemPDFTemplateSelectResponse.java | 8 +++-- .../res/system/SystemParamConfigResponse.java | 13 +++++++-- .../glxp/api/util/page/ListPageRequest.java | 2 ++ 31 files changed, 317 insertions(+), 96 deletions(-) diff --git a/src/main/java/com/glxp/api/controller/system/ClassifyCodeController.java b/src/main/java/com/glxp/api/controller/system/ClassifyCodeController.java index d8d6829..5dfd15b 100644 --- a/src/main/java/com/glxp/api/controller/system/ClassifyCodeController.java +++ b/src/main/java/com/glxp/api/controller/system/ClassifyCodeController.java @@ -1,18 +1,22 @@ package com.glxp.api.controller.system; import com.github.pagehelper.PageInfo; +import com.glxp.api.entity.auth.SysDictType; import com.glxp.api.entity.system.ClassifyCodeEntity; import com.glxp.api.req.system.FilterClassifyCodeRequest; import com.glxp.api.res.PageSimpleResponse; import com.glxp.api.service.system.ClassifyCodeService; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.util.ResultVOUtils; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import springfox.documentation.annotations.ApiIgnore; import javax.annotation.Resource; import java.util.List; +@Api(tags = "分类代码控制器") @ApiIgnore @RestController @@ -20,7 +24,7 @@ public class ClassifyCodeController { @Resource ClassifyCodeService classifyCodeService; - + @ApiOperation(value = "筛选器列表",response = ClassifyCodeEntity.class) @GetMapping("spms/classify/code/filter") public BaseResponse filterList(FilterClassifyCodeRequest filterDeviceKeyRequest) { List classifyCodeEntities = classifyCodeService.filteClassifyCode(filterDeviceKeyRequest); diff --git a/src/main/java/com/glxp/api/controller/system/CompanyController.java b/src/main/java/com/glxp/api/controller/system/CompanyController.java index 3492b9b..be7453d 100644 --- a/src/main/java/com/glxp/api/controller/system/CompanyController.java +++ b/src/main/java/com/glxp/api/controller/system/CompanyController.java @@ -1,9 +1,12 @@ package com.glxp.api.controller.system; +import com.glxp.api.entity.system.ClassifyCodeEntity; import com.glxp.api.entity.system.CompanyEntity; import com.glxp.api.service.system.CompanyService; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.util.ResultVOUtils; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -12,12 +15,13 @@ import springfox.documentation.annotations.ApiIgnore; import javax.annotation.Resource; @ApiIgnore +@Api(tags = "公司控制器") @RestController public class CompanyController { @Resource private CompanyService companyService; - + @ApiOperation(value = "获取公司信息",response = BaseResponse.class) @GetMapping("/warehouse/info/company") public BaseResponse getCompanyInfo() { CompanyEntity companyEntity = companyService.findCompany(); @@ -26,7 +30,7 @@ public class CompanyController { } return ResultVOUtils.error(500, "企业信息为空"); } - + @ApiOperation(value = "修改公司信息",response = BaseResponse.class) @PostMapping("/warehouse/info/modifyCompany") public BaseResponse modifyCompany(@RequestBody CompanyEntity companyEntity) { diff --git a/src/main/java/com/glxp/api/controller/system/ConnectTestController.java b/src/main/java/com/glxp/api/controller/system/ConnectTestController.java index 401e47f..50cddc9 100644 --- a/src/main/java/com/glxp/api/controller/system/ConnectTestController.java +++ b/src/main/java/com/glxp/api/controller/system/ConnectTestController.java @@ -6,12 +6,14 @@ import com.glxp.api.req.auth.FilterConnectRequest; import com.glxp.api.service.system.CompanyService; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.util.ResultVOUtils; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import springfox.documentation.annotations.ApiIgnore; import javax.annotation.Resource; - +@Api(tags = "连接测试控制器") @ApiIgnore @RestController public class ConnectTestController { @@ -19,7 +21,7 @@ public class ConnectTestController { @Resource CompanyService companyService; - + @ApiOperation(value = "索引",response = AuthConnectEntity.class) @GetMapping("/udiwms/auth/device/connect") public BaseResponse index(FilterConnectRequest connequest) { CompanyEntity companyEntity = companyService.findCompany(); diff --git a/src/main/java/com/glxp/api/controller/system/DeviceKeyController.java b/src/main/java/com/glxp/api/controller/system/DeviceKeyController.java index b3f73af..b377398 100644 --- a/src/main/java/com/glxp/api/controller/system/DeviceKeyController.java +++ b/src/main/java/com/glxp/api/controller/system/DeviceKeyController.java @@ -10,6 +10,8 @@ import com.glxp.api.util.DateUtil; import com.glxp.api.common.enums.ResultEnum; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.util.ResultVOUtils; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.GetMapping; @@ -22,7 +24,7 @@ import javax.annotation.Resource; import javax.validation.Valid; import java.security.MessageDigest; import java.util.List; - +@Api(tags = "设备密钥控制器") @ApiIgnore @Slf4j @RestController @@ -35,7 +37,7 @@ public class DeviceKeyController { SysPdaKeyService sysPdaKeyService; // @Resource // private JavaMailSender javaMailSender; - + @ApiOperation(value = "注册列表",response = SysPdaKeyEntity.class) @GetMapping("sale/device/registerList") public BaseResponse registerList(FilterDeviceKeyRequest filterDeviceKeyRequest) { List deviceKeyEntities = sysPdaKeyService.findDeviceKey(filterDeviceKeyRequest); @@ -47,7 +49,7 @@ public class DeviceKeyController { return ResultVOUtils.success(pageSimpleResponse); } - + @ApiOperation(value = "检查注册",response = BaseResponse.class) @PostMapping("sale/device/check") public BaseResponse checkRegister(@RequestBody @Valid SysPdaKeyEntity sysPdaKeyEntity, BindingResult bindingResult) { @@ -60,7 +62,7 @@ public class DeviceKeyController { return ResultVOUtils.success("审核成功"); } - + @ApiOperation(value = "注册密钥",response = BaseResponse.class) @PostMapping("/sale/info/registerKey") public BaseResponse registerKey(@RequestBody SysPdaKeyEntity sysPdaKeyEntity) { String key = md5("glxp2020" + sysPdaKeyEntity.getImei()); @@ -76,7 +78,7 @@ public class DeviceKeyController { } } - + @ApiOperation(value = "删除密钥",response = BaseResponse.class) @PostMapping("/sale/info/deleterKey") public BaseResponse deleterKey(@RequestBody DeleteRequest deleteRequest) { @@ -85,7 +87,7 @@ public class DeviceKeyController { } - + @ApiOperation(value = "保存注册信息",response = BaseResponse.class) @PostMapping("sale/device/register") public BaseResponse saveRegister(@RequestBody SysPdaKeyEntity sysPdaKeyEntity, BindingResult bindingResult) { diff --git a/src/main/java/com/glxp/api/controller/system/SMenuController.java b/src/main/java/com/glxp/api/controller/system/SMenuController.java index 8ba930a..9044032 100644 --- a/src/main/java/com/glxp/api/controller/system/SMenuController.java +++ b/src/main/java/com/glxp/api/controller/system/SMenuController.java @@ -8,6 +8,8 @@ import com.glxp.api.entity.auth.Smenu; import com.glxp.api.req.system.LicenseRequest; import com.glxp.api.res.PageSimpleResponse; import com.glxp.api.service.auth.SmenuService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.BeanUtils; import org.springframework.web.bind.annotation.GetMapping; @@ -18,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.Date; import java.util.List; - +@Api(tags = "菜单控制器") /** * @author : zhangsan * @date : 2023/5/24 11:46 @@ -29,7 +31,7 @@ public class SMenuController { @Resource SmenuService sysmenuService; - + @ApiOperation(value = "获取排序列表",response = LicenseRequest.class) @GetMapping("system/license/List") public BaseResponse getSortList(LicenseRequest licenseRequest){ @@ -42,7 +44,7 @@ public class SMenuController { return ResultVOUtils.success(objectPageSimpleResponse); } - + @ApiOperation(value = "插入",response = BaseResponse.class) @PostMapping("system/license/insert") public BaseResponse insert(@RequestBody LicenseRequest licenseRequest){ @@ -54,7 +56,7 @@ public class SMenuController { return ResultVOUtils.success(); } - + @ApiOperation(value = "删除",response = BaseResponse.class) @PostMapping("system/license/delete") public BaseResponse delete(@RequestBody LicenseRequest licenseRequest){ @@ -74,7 +76,7 @@ public class SMenuController { return ResultVOUtils.success(); } - + @ApiOperation(value = "修改",response = BaseResponse.class) @PostMapping("system/license/update") public BaseResponse update(@RequestBody LicenseRequest licenseRequest){ Smenu authLicense = new Smenu(); diff --git a/src/main/java/com/glxp/api/controller/system/SysMenuHelpController.java b/src/main/java/com/glxp/api/controller/system/SysMenuHelpController.java index eb09b72..a39ae74 100644 --- a/src/main/java/com/glxp/api/controller/system/SysMenuHelpController.java +++ b/src/main/java/com/glxp/api/controller/system/SysMenuHelpController.java @@ -12,6 +12,8 @@ import com.glxp.api.res.PageSimpleResponse; import com.glxp.api.service.auth.ISysMenuService; import com.glxp.api.service.system.SysMenuHelpService; import com.glxp.api.util.StringUtils; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.BeanUtils; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.GetMapping; @@ -23,7 +25,7 @@ import springfox.documentation.annotations.ApiIgnore; import javax.annotation.Resource; import javax.validation.Valid; import java.util.List; - +@Api(tags = "系统菜单帮助控制器") /** * @author : zhangsan * @date : 2023/3/20 13:58 @@ -39,7 +41,7 @@ public class SysMenuHelpController { private ISysMenuService iSysMenuService; - + @ApiOperation(value = "列表",response = SysMenuHelpEntity.class) @AuthRuleAnnotation("system/param/help/list") @GetMapping("/system/param/help/list") public BaseResponse list(@Valid SysMenuHelpRequest sysMenuHelpRequest, @@ -57,7 +59,7 @@ public class SysMenuHelpController { return ResultVOUtils.success(pageSimpleResponse); } - + @ApiOperation(value = "插入菜单帮助",response = BaseResponse.class) @AuthRuleAnnotation("system/param/help/insertMenuHelp") @PostMapping("/system/param/help/insertMenuHelp") public BaseResponse insertMenuHelp(@RequestBody SysMenuHelpRequest sysMenuHelpRequest, @@ -70,7 +72,7 @@ public class SysMenuHelpController { sysMenuHelpService.insertMenuHelp(sysMenuHelpEntity); return ResultVOUtils.success("成功"); } - + @ApiOperation(value = "更新菜单帮助",response = BaseResponse.class) @AuthRuleAnnotation("system/param/help/updateMenuHelp") @PostMapping("/system/param/help/updateMenuHelp") public BaseResponse updateMenuHelp(@RequestBody SysMenuHelpRequest sysMenuHelpRequest, @@ -83,7 +85,7 @@ public class SysMenuHelpController { sysMenuHelpService.updateMenuHelp(sysMenuHelpEntity); return ResultVOUtils.success("成功"); } - + @ApiOperation(value = "删除菜单帮助",response = BaseResponse.class) @AuthRuleAnnotation("system/param/help/deleteMenuHelp") @GetMapping("/system/param/help/deleteMenuHelp") public BaseResponse deleteMenuHelp( String id) { diff --git a/src/main/java/com/glxp/api/controller/system/SysParamConfigController.java b/src/main/java/com/glxp/api/controller/system/SysParamConfigController.java index 316994c..ebf5f2b 100644 --- a/src/main/java/com/glxp/api/controller/system/SysParamConfigController.java +++ b/src/main/java/com/glxp/api/controller/system/SysParamConfigController.java @@ -11,12 +11,15 @@ import com.glxp.api.entity.system.SystemParamConfigEntity; import com.glxp.api.req.system.FilterParamConfigRequest; import com.glxp.api.req.system.SysParamConfigSaveRequest; import com.glxp.api.res.PageSimpleResponse; +import com.glxp.api.res.auth.sroleResponse; import com.glxp.api.res.system.SystemParamConfigResponse; import com.glxp.api.service.system.SystemParamConfigService; import com.glxp.api.util.CronUtils; import com.glxp.api.common.enums.ResultEnum; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.util.ResultVOUtils; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.BeanUtils; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.GetMapping; @@ -31,6 +34,7 @@ import java.util.List; import java.util.stream.Collectors; @ApiIgnore @RestController +@Api(tags = "系统参数配置控制器") public class SysParamConfigController { @Resource @@ -38,7 +42,7 @@ public class SysParamConfigController { @Resource ScheduledDao scheduledDao; - + @ApiOperation(value = "列表",response = SystemParamConfigResponse.class) @AuthRuleAnnotation("system/param/config/list") @GetMapping("/system/param/config/list") public BaseResponse list(@Valid FilterParamConfigRequest filterParamConfigRequest, @@ -62,7 +66,7 @@ public class SysParamConfigController { pageSimpleResponse.setList(systemParamConfigResponseList); return ResultVOUtils.success(pageSimpleResponse); } - + @ApiOperation(value = "保存",response = BaseResponse.class) @AuthRuleAnnotation("system/param/config/save") @PostMapping("/system/param/config/save") public BaseResponse save(@RequestBody @Valid SysParamConfigSaveRequest sysParamConfigSaveRequest, @@ -82,7 +86,7 @@ public class SysParamConfigController { return ResultVOUtils.success(); } - + @ApiOperation(value = "更新",response = SysParamConfigSaveRequest.class) @AuthRuleAnnotation("system/param/config/update") @PostMapping("/system/param/config/update") public BaseResponse update(@RequestBody SysParamConfigSaveRequest sysParamConfigSaveRequest) { @@ -164,7 +168,7 @@ public class SysParamConfigController { return ResultVOUtils.success("修改成功"); } - + @ApiOperation(value = "key搜索",response = SystemParamConfigEntity.class) //key搜索 @AuthRuleAnnotation("") @GetMapping("/udiwms/sys/config/selectByKey") @@ -178,7 +182,7 @@ public class SysParamConfigController { return ResultVOUtils.success(systemParamConfigEntity); } - + @ApiOperation(value = "获取耗材字典备用字段设置",response = ProductRemarkSetEntity.class) //获取耗材字典备用字段设置 @AuthRuleAnnotation("") @GetMapping("/udiwms/sys/config/selectByBasic") diff --git a/src/main/java/com/glxp/api/controller/system/SysPdfModuleController.java b/src/main/java/com/glxp/api/controller/system/SysPdfModuleController.java index b52196d..76ea683 100644 --- a/src/main/java/com/glxp/api/controller/system/SysPdfModuleController.java +++ b/src/main/java/com/glxp/api/controller/system/SysPdfModuleController.java @@ -11,11 +11,14 @@ import com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity; import com.glxp.api.req.system.FilterPdfModuleRequest; import com.glxp.api.req.system.SysPdfModuleSaveRequest; import com.glxp.api.res.PageSimpleResponse; +import com.glxp.api.res.auth.sroleResponse; import com.glxp.api.res.system.SystemPDFModuleResponse; import com.glxp.api.res.system.SystemPDFModuleSelectResponse; import com.glxp.api.service.system.SystemPDFModuleService; import com.glxp.api.service.system.SystemPDFTemplateRelevanceService; import com.glxp.api.service.system.SystemPDFTemplateService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.BeanUtils; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.*; @@ -26,7 +29,7 @@ import javax.validation.Valid; import java.util.Date; import java.util.List; import java.util.stream.Collectors; - +@Api(tags = "系统PDF模块控制器") @ApiIgnore @RestController public class SysPdfModuleController { @@ -39,7 +42,7 @@ public class SysPdfModuleController { private SystemPDFTemplateService systemPDFTemplateService; // @Resource // BussinessLocalTypeService bussinessLocalTypeService; - + @ApiOperation(value = "模板列表",response = SystemPDFModuleResponse.class) @AuthRuleAnnotation("system/pdf/module/list") @GetMapping("/system/pdf/module/list") public BaseResponse list(@Valid FilterPdfModuleRequest filterPDFModuleRequest, @@ -70,7 +73,7 @@ public class SysPdfModuleController { return ResultVOUtils.success(pageSimpleResponse); } - + @ApiOperation(value = "更新规则",response = BaseResponse.class) @AuthRuleAnnotation("system/pdf/module/updateRl") @PostMapping("/system/pdf/module/updateRl") public BaseResponse updateRl(@RequestBody SystemPDFTemplateRelevanceEntity systemPDFModuleSaveRequest) { @@ -78,7 +81,7 @@ public class SysPdfModuleController { return ResultVOUtils.success("修改成功"); } - + @ApiOperation(value = "PDF模块",response = SystemPDFModuleSelectResponse.class) @AuthRuleAnnotation("system/pdf/module/list") @GetMapping("/system/pdf/module/pdfModules") public BaseResponse pdfModules(@RequestParam(value = "page", defaultValue = "1") Integer page, @@ -99,7 +102,7 @@ public class SysPdfModuleController { return ResultVOUtils.success(pageSimpleResponse); } - + @ApiOperation(value = "保存模块",response = BaseResponse.class) @AuthRuleAnnotation("system/pdf/module/save") @PostMapping("/system/pdf/module/save") public BaseResponse save(@RequestBody @Valid SysPdfModuleSaveRequest sysPdfModuleSaveRequest, @@ -122,7 +125,7 @@ public class SysPdfModuleController { return ResultVOUtils.success(); } - + @ApiOperation(value = "更新模块",response = BaseResponse.class) @AuthRuleAnnotation("system/pdf/module/update") @PostMapping("/system/pdf/module/update") public BaseResponse update(@RequestBody SysPdfModuleSaveRequest sysPdfModuleSaveRequest) { @@ -131,7 +134,7 @@ public class SysPdfModuleController { return ResultVOUtils.success("修改成功"); } - + @ApiOperation(value = "删除模块",response = BaseResponse.class) @AuthRuleAnnotation("system/pdf/module/delete") @GetMapping("/system/pdf/module/delete") public BaseResponse deleteById(@RequestParam("id") Integer id) { diff --git a/src/main/java/com/glxp/api/controller/system/SysPdfTemplateController.java b/src/main/java/com/glxp/api/controller/system/SysPdfTemplateController.java index f1de575..2372be8 100644 --- a/src/main/java/com/glxp/api/controller/system/SysPdfTemplateController.java +++ b/src/main/java/com/glxp/api/controller/system/SysPdfTemplateController.java @@ -65,7 +65,7 @@ public class SysPdfTemplateController { return ResultVOUtils.success(pageSimpleResponse); } - + @ApiOperation(value = "演示打印") @AuthRuleAnnotation("") @PostMapping("/system/pdf/template/demoPrint") public void demoPrint( @@ -88,7 +88,7 @@ public class SysPdfTemplateController { JasperUtils.jasperReport(request, response, data, filePath + "/pdf/template/"+systemPDFTemplateEntity.getPath(), "pdf"); } - + @ApiOperation(value = "PDF模板列表",response = SystemPDFTemplateSelectResponse.class) @AuthRuleAnnotation("system/pdf/template/list") @GetMapping("/system/pdf/template/pdfTemplates") public BaseResponse pdfTemplates(@RequestParam(value = "page", defaultValue = "1") Integer page, @@ -108,7 +108,7 @@ public class SysPdfTemplateController { return ResultVOUtils.success(pageSimpleResponse); } - + @ApiOperation(value = "保存列表",response = BaseResponse.class) @AuthRuleAnnotation("system/pdf/template/save") @PostMapping("/system/pdf/template/save") public BaseResponse save(@RequestBody @Valid SysPdfTemplateSaveRequest sysPdfTemplateSaveRequest, @@ -131,7 +131,7 @@ public class SysPdfTemplateController { return ResultVOUtils.success(); } - + @ApiOperation(value = "更新",response = BaseResponse.class) @AuthRuleAnnotation("system/pdf/template/update") @PostMapping("/system/pdf/template/update") public BaseResponse update(@RequestBody SysPdfTemplateSaveRequest sysPdfTemplateSaveRequest) { @@ -141,7 +141,7 @@ public class SysPdfTemplateController { return ResultVOUtils.success("修改成功"); } - + @ApiOperation(value = "根据id删除",response = BaseResponse.class) @AuthRuleAnnotation("system/pdf/template/delete") @PostMapping("/system/pdf/template/delete") public BaseResponse deleteById(@RequestBody SysPdfTemplateSaveRequest sysPdfTemplateSaveRequest) { diff --git a/src/main/java/com/glxp/api/controller/system/sroleController.java b/src/main/java/com/glxp/api/controller/system/sroleController.java index a702685..b1433fb 100644 --- a/src/main/java/com/glxp/api/controller/system/sroleController.java +++ b/src/main/java/com/glxp/api/controller/system/sroleController.java @@ -16,6 +16,8 @@ import com.glxp.api.res.auth.sroleResponse; import com.glxp.api.service.auth.SmenuService; import com.glxp.api.service.auth.sroleMenuService; import com.glxp.api.service.auth.sroleService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.BeanUtils; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; @@ -25,7 +27,7 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.Date; import java.util.List; - +@Api(tags = "角色控制器") /** * @author : zhangsan * @date : 2023/5/25 14:38 @@ -41,7 +43,7 @@ public class sroleController { @Resource sroleMenuService sroleMenuService; - + @ApiOperation(value = "获取角色列表",response = sroleResponse.class) @GetMapping("system/srole/list") public BaseResponse getRoleList(sroleRequest sroleRequest){ @@ -56,7 +58,7 @@ public class sroleController { } - + @ApiOperation(value = "插入角色",response = BaseResponse.class) @PostMapping("system/srole/insert") public BaseResponse insertRole(@RequestBody sroleRequest sroleRequest){ @@ -67,7 +69,7 @@ public class sroleController { boolean insert = sroleService.insert(syrole); return ResultVOUtils.success(); } - + @ApiOperation(value = "修改角色",response = BaseResponse.class) @PostMapping("system/srole/update") public BaseResponse updateRole(@RequestBody sroleRequest sroleRequest){ Syrole syrole = new Syrole(); @@ -77,7 +79,7 @@ public class sroleController { return ResultVOUtils.success(); } - + @ApiOperation(value = "删除角色",response = BaseResponse.class) @PostMapping("system/srole/delete") public BaseResponse deleteRole(@RequestBody sroleRequest sroleRequest){ Syrole syrole = new Syrole(); diff --git a/src/main/java/com/glxp/api/entity/auth/AuthConnectEntity.java b/src/main/java/com/glxp/api/entity/auth/AuthConnectEntity.java index 63d7fd4..95bad84 100644 --- a/src/main/java/com/glxp/api/entity/auth/AuthConnectEntity.java +++ b/src/main/java/com/glxp/api/entity/auth/AuthConnectEntity.java @@ -1,9 +1,13 @@ package com.glxp.api.entity.auth; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; - +@ApiModel(value = "认证连接实体") @Data public class AuthConnectEntity { + @ApiModelProperty(value = "公司名称") private String companyName; + @ApiModelProperty(value = "系统名称") private String sysName; } diff --git a/src/main/java/com/glxp/api/entity/system/ProductRemarkSetEntity.java b/src/main/java/com/glxp/api/entity/system/ProductRemarkSetEntity.java index 09d7bac..3fc715d 100644 --- a/src/main/java/com/glxp/api/entity/system/ProductRemarkSetEntity.java +++ b/src/main/java/com/glxp/api/entity/system/ProductRemarkSetEntity.java @@ -1,34 +1,59 @@ package com.glxp.api.entity.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; - +@ApiModel(value = "产品备注设置实体") @Data public class ProductRemarkSetEntity { - + @ApiModelProperty(value = "备注键1") private String remarkKey1; + @ApiModelProperty(value = "备注键2") private String remarkKey2; + @ApiModelProperty(value = "备注键3") private String remarkKey3; + @ApiModelProperty(value = "备注键4") private String remarkKey4; + @ApiModelProperty(value = "备注键6") private String remarkKey6; + @ApiModelProperty(value = "备注键5") private String remarkKey5; + @ApiModelProperty(value = "备注键7") private String remarkKey7; + @ApiModelProperty(value = "备注键8") private String remarkKey8; + @ApiModelProperty(value = "备注标题1") private String remarkTitle1; + @ApiModelProperty(value = "备注标题2") private String remarkTitle2; + @ApiModelProperty(value = "备注标题3") private String remarkTitle3; + @ApiModelProperty(value = "备注标题4") private String remarkTitle4; + @ApiModelProperty(value = "备注标题5") private String remarkTitle5; + @ApiModelProperty(value = "备注标题6") private String remarkTitle6; + @ApiModelProperty(value = "备注标题7") private String remarkTitle7; + @ApiModelProperty(value = "备注标题8") private String remarkTitle8; + @ApiModelProperty(value = "备注启用1") private boolean remarkEnable1; + @ApiModelProperty(value = "备注启用2") private boolean remarkEnable2; + @ApiModelProperty(value = "备注启用4") private boolean remarkEnable4; + @ApiModelProperty(value = "备注启用3") private boolean remarkEnable3; + @ApiModelProperty(value = "备注启用5") private boolean remarkEnable5; + @ApiModelProperty(value = "备注启用6") private boolean remarkEnable6; + @ApiModelProperty(value = "备注启用7") private boolean remarkEnable7; + @ApiModelProperty(value = "备注启用8") private boolean remarkEnable8; } diff --git a/src/main/java/com/glxp/api/entity/system/SysMenuHelpEntity.java b/src/main/java/com/glxp/api/entity/system/SysMenuHelpEntity.java index 26f9b24..bdddddf 100644 --- a/src/main/java/com/glxp/api/entity/system/SysMenuHelpEntity.java +++ b/src/main/java/com/glxp/api/entity/system/SysMenuHelpEntity.java @@ -4,29 +4,32 @@ import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; - +@ApiModel(value = "系统菜单帮助实体") @Data @TableName(value = "sys_menu_help") public class SysMenuHelpEntity { + @ApiModelProperty(value = "主键") @TableId(value = "id", type = IdType.AUTO) private Integer id; - + @ApiModelProperty(value = "菜单键") @TableField(value = "menuKey") private String menuKey; - + @ApiModelProperty(value = "菜单名称") @TableField(value = "menuName") private String menuName; - + @ApiModelProperty(value = "状态") @TableField(value = "`status`") private Integer status; - + @ApiModelProperty(value = "文件路径") @TableField(value = "filePath") private String filePath; - + @ApiModelProperty(value = "备注") @TableField(value = "remark") private String remark; - + @ApiModelProperty(value = "更新时间") @TableField(value = "updateTime") private String updateTime; diff --git a/src/main/java/com/glxp/api/entity/system/SysPdaKeyEntity.java b/src/main/java/com/glxp/api/entity/system/SysPdaKeyEntity.java index 25c83c8..63ecc96 100644 --- a/src/main/java/com/glxp/api/entity/system/SysPdaKeyEntity.java +++ b/src/main/java/com/glxp/api/entity/system/SysPdaKeyEntity.java @@ -1,19 +1,33 @@ package com.glxp.api.entity.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; - +@ApiModel(value = "系统PDA密钥实体") @Data public class SysPdaKeyEntity { + @ApiModelProperty(value = "主键") private String id; + @ApiModelProperty(value = "IMEI(国际移动设备身份码)") private String imei; + @ApiModelProperty(value = "是否检查") private int isCheck; + @ApiModelProperty(value = "公司名称") private String companyName; + @ApiModelProperty(value = "手机") private String phone; + @ApiModelProperty(value = "联系方式") private String contact; + @ApiModelProperty(value = "IMEI密钥") private String imeiKey; + @ApiModelProperty(value = "日期") private String date; + @ApiModelProperty(value = "信用卡号码") private String creditNum; + @ApiModelProperty(value = "验证码") private int checkCode; + @ApiModelProperty(value = "注册类型") private String rgType; + @ApiModelProperty(value = "备注") private String remark; } diff --git a/src/main/java/com/glxp/api/entity/system/SystemPDFModuleEntity.java b/src/main/java/com/glxp/api/entity/system/SystemPDFModuleEntity.java index 105b652..fdd2a06 100644 --- a/src/main/java/com/glxp/api/entity/system/SystemPDFModuleEntity.java +++ b/src/main/java/com/glxp/api/entity/system/SystemPDFModuleEntity.java @@ -1,6 +1,8 @@ package com.glxp.api.entity.system; import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; @@ -8,22 +10,36 @@ import java.util.Date; /** * 打印模块 */ +@ApiModel(value = "打印模块") @Data @TableName("sys_pdf_module") public class SystemPDFModuleEntity { - + @ApiModelProperty(value = "主键") private Integer id; + @ApiModelProperty(value = "名称") private String name; + @ApiModelProperty(value = "参数") private String param; + @ApiModelProperty(value = "字段说明") private String fieldExplain; + @ApiModelProperty(value = "模板ID") private int templateId; + @ApiModelProperty(value = "备注") private String remark; + @ApiModelProperty(value = "创建时间") private Date create_time; + @ApiModelProperty(value = "更新时间") private Date update_time; + @ApiModelProperty(value = "模板下载链接") private String templateDlUrl; + @ApiModelProperty(value = "模板类型") private Integer templateType; + @ApiModelProperty(value = "备注1") private String remark1; + @ApiModelProperty(value = "备注2") private String remark2; + @ApiModelProperty(value = "备注3") private String remark3; + @ApiModelProperty(value = "模型键") private String modelKey; } diff --git a/src/main/java/com/glxp/api/entity/system/SystemPDFTemplateRelevanceEntity.java b/src/main/java/com/glxp/api/entity/system/SystemPDFTemplateRelevanceEntity.java index 2465f7d..f50f1c4 100644 --- a/src/main/java/com/glxp/api/entity/system/SystemPDFTemplateRelevanceEntity.java +++ b/src/main/java/com/glxp/api/entity/system/SystemPDFTemplateRelevanceEntity.java @@ -1,20 +1,33 @@ package com.glxp.api.entity.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** * 用户角色对应表 */ +@ApiModel(value = "用户角色对应表") @Data public class SystemPDFTemplateRelevanceEntity { + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "模板ID") private Integer templateId; + @ApiModelProperty(value = "客户ID") private Long customerId; + @ApiModelProperty(value = "管理员ID") private Integer adminId; + @ApiModelProperty(value = "模块ID") private Integer moduleId; + @ApiModelProperty(value = "本地操作") private String localAction; + @ApiModelProperty(value = "备注1") private String remark1; + @ApiModelProperty(value = "备注2") private String remark2; + @ApiModelProperty(value = "备注3") private String remark3; + @ApiModelProperty(value = "打印类型") private int printType; } diff --git a/src/main/java/com/glxp/api/entity/system/SystemParamConfigEntity.java b/src/main/java/com/glxp/api/entity/system/SystemParamConfigEntity.java index ef7633d..e3f68be 100644 --- a/src/main/java/com/glxp/api/entity/system/SystemParamConfigEntity.java +++ b/src/main/java/com/glxp/api/entity/system/SystemParamConfigEntity.java @@ -3,23 +3,32 @@ package com.glxp.api.entity.system; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; - +@ApiModel(value = "系统PDA密钥实体") @Data @TableName("sys_param_config") public class SystemParamConfigEntity { - + @ApiModelProperty(value = "主键") @TableId(value = "id", type = IdType.AUTO) private int id; + @ApiModelProperty(value = "父级ID") private int parentId; + @ApiModelProperty(value = "参数名称") private String paramName; + @ApiModelProperty(value = "参数键") private String paramKey; + @ApiModelProperty(value = "参数值") private String paramValue; + @ApiModelProperty(value = "参数状态") private int paramStatus; + @ApiModelProperty(value = "参数类型") private int paramType; + @ApiModelProperty(value = "参数说明") private String paramExplain; - + @ApiModelProperty(value = "更新时间") private Date updateTime; } diff --git a/src/main/java/com/glxp/api/req/auth/sroleRequest.java b/src/main/java/com/glxp/api/req/auth/sroleRequest.java index adb595a..75660dd 100644 --- a/src/main/java/com/glxp/api/req/auth/sroleRequest.java +++ b/src/main/java/com/glxp/api/req/auth/sroleRequest.java @@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.glxp.api.util.page.ListPageRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; @@ -13,19 +15,20 @@ import java.util.Date; * @date : 2023/5/25 14:25 * @modyified By : */ +@ApiModel(value = "角色请求") @Data public class sroleRequest extends ListPageRequest { - + @ApiModelProperty(value = "主键") private Long id; - + @ApiModelProperty(value = "名称") private String name; - + @ApiModelProperty(value = "编码") private String code; - + @ApiModelProperty(value = " 0正常 1停用") // 0正常 1停用 private String status; - + @ApiModelProperty(value = "创建时间") // 创建时间 private Date createTime; diff --git a/src/main/java/com/glxp/api/req/system/FilterParamConfigRequest.java b/src/main/java/com/glxp/api/req/system/FilterParamConfigRequest.java index 4417669..991aa68 100644 --- a/src/main/java/com/glxp/api/req/system/FilterParamConfigRequest.java +++ b/src/main/java/com/glxp/api/req/system/FilterParamConfigRequest.java @@ -1,20 +1,30 @@ package com.glxp.api.req.system; import com.glxp.api.util.page.ListPageRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; - +@ApiModel(value = "过滤参数配置请求") @EqualsAndHashCode(callSuper = true) @Data public class FilterParamConfigRequest extends ListPageRequest { - + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "父级ID") private int parentId; + @ApiModelProperty(value = "参数名称") private String paramName; + @ApiModelProperty(value = "参数键") private String paramKey; + @ApiModelProperty(value = "参数值") private String paramValue; + @ApiModelProperty(value = "参数状态") private int paramStatus; + @ApiModelProperty(value = "参数类型") private Integer paramType; + @ApiModelProperty(value = "参数说明") private String paramExplain; + @ApiModelProperty(value = "密钥") private String key; } diff --git a/src/main/java/com/glxp/api/req/system/FilterPdfModuleRequest.java b/src/main/java/com/glxp/api/req/system/FilterPdfModuleRequest.java index ac1fd1f..ce53e66 100644 --- a/src/main/java/com/glxp/api/req/system/FilterPdfModuleRequest.java +++ b/src/main/java/com/glxp/api/req/system/FilterPdfModuleRequest.java @@ -1,23 +1,34 @@ package com.glxp.api.req.system; import com.glxp.api.util.page.ListPageRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.Date; - +@ApiModel(value = "过滤PDF模块请求") @EqualsAndHashCode(callSuper = true) @Data public class FilterPdfModuleRequest extends ListPageRequest { - + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "名称") private String name; + @ApiModelProperty(value = "参数") private String param; + @ApiModelProperty(value = "字段说明") private String fieldExplain; + @ApiModelProperty(value = "模板ID") private int templateId; + @ApiModelProperty(value = "备注") private String remark; + @ApiModelProperty(value = "创建时间") private Date create_time; + @ApiModelProperty(value = "模板类型") private Integer templateType; + @ApiModelProperty(value = "更新时间") private Date update_time; + @ApiModelProperty(value = "主键") private String modelKey; } diff --git a/src/main/java/com/glxp/api/req/system/FilterPdfTemplateRequest.java b/src/main/java/com/glxp/api/req/system/FilterPdfTemplateRequest.java index 1b1e365..037495f 100644 --- a/src/main/java/com/glxp/api/req/system/FilterPdfTemplateRequest.java +++ b/src/main/java/com/glxp/api/req/system/FilterPdfTemplateRequest.java @@ -1,25 +1,39 @@ package com.glxp.api.req.system; import com.glxp.api.util.page.ListPageRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.Date; - +@ApiModel(value = "过滤PDF模板请求") @EqualsAndHashCode(callSuper = true) @Data public class FilterPdfTemplateRequest extends ListPageRequest { - + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "名称") private String name; + @ApiModelProperty(value = "类型") private Integer type; + @ApiModelProperty(value = "模型") private Integer module; + @ApiModelProperty(value = "参数") private String param; + @ApiModelProperty(value = "路径") private String path; + @ApiModelProperty(value = "行数") private int rowCount; + @ApiModelProperty(value = "二维码数量") private int qrcodeCount; + @ApiModelProperty(value = "备注") private String remark; + @ApiModelProperty(value = "创建时间") private Date create_time; + @ApiModelProperty(value = "更新时间") private Date update_time; + @ApiModelProperty(value = "JRXML路径") private String jrxmlPath; + } diff --git a/src/main/java/com/glxp/api/req/system/SysMenuHelpRequest.java b/src/main/java/com/glxp/api/req/system/SysMenuHelpRequest.java index ce651c5..f4ffa32 100644 --- a/src/main/java/com/glxp/api/req/system/SysMenuHelpRequest.java +++ b/src/main/java/com/glxp/api/req/system/SysMenuHelpRequest.java @@ -1,6 +1,8 @@ package com.glxp.api.req.system; import com.glxp.api.util.page.ListPageRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** @@ -8,23 +10,23 @@ import lombok.Data; * @date : 2023/3/20 14:03 * @modyified By : */ - +@ApiModel(value = "系统菜单帮助请求") @Data public class SysMenuHelpRequest extends ListPageRequest { - + @ApiModelProperty(value = "主键") private Integer id; - + @ApiModelProperty(value = "菜单键") private String menuKey; - + @ApiModelProperty(value = "菜单名称") private String menuName; - + @ApiModelProperty(value = "状态") private Integer status; - + @ApiModelProperty(value = "文件路径") private String filePath; - + @ApiModelProperty(value = "备注") private String remark; - + @ApiModelProperty(value = "更新时间") private String updateTime; public static final String COL_ID = "id"; diff --git a/src/main/java/com/glxp/api/req/system/SysParamConfigSaveRequest.java b/src/main/java/com/glxp/api/req/system/SysParamConfigSaveRequest.java index dbc4cf8..69da094 100644 --- a/src/main/java/com/glxp/api/req/system/SysParamConfigSaveRequest.java +++ b/src/main/java/com/glxp/api/req/system/SysParamConfigSaveRequest.java @@ -1,19 +1,29 @@ package com.glxp.api.req.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; - +@ApiModel(value = "系统参数配置保存请求") @Data public class SysParamConfigSaveRequest { - + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "父级ID") private int parentId; + @ApiModelProperty(value = "参数名称") private String paramName; + @ApiModelProperty(value = "参数键") private String paramKey; + @ApiModelProperty(value = "参数值") private String paramValue; + @ApiModelProperty(value = "参数状态") private int paramStatus; + @ApiModelProperty(value = "参数类型") private int paramType; + @ApiModelProperty(value = "参数说明") private String paramExplain; + @ApiModelProperty(value = "更新时间") private Date updateTime; } \ No newline at end of file diff --git a/src/main/java/com/glxp/api/req/system/SysPdfModuleSaveRequest.java b/src/main/java/com/glxp/api/req/system/SysPdfModuleSaveRequest.java index 0b9fc01..d2431f2 100644 --- a/src/main/java/com/glxp/api/req/system/SysPdfModuleSaveRequest.java +++ b/src/main/java/com/glxp/api/req/system/SysPdfModuleSaveRequest.java @@ -1,24 +1,38 @@ package com.glxp.api.req.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; @Data +@ApiModel(value = "系统PDF模块保存请求") public class SysPdfModuleSaveRequest { - + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "名称") private String name; + @ApiModelProperty(value = "参数") private String param; + @ApiModelProperty(value = "字段说明") private String fieldExplain; + @ApiModelProperty(value = "模板ID") private int templateId; + @ApiModelProperty(value = "备注") private String remark; + @ApiModelProperty(value = "创建时间") private Date create_time; + @ApiModelProperty(value = "更新时间") private Date update_time; + @ApiModelProperty(value = "模板下载链接") private String templateDlUrl; + @ApiModelProperty(value = "模板类型") private Integer templateType; - + @ApiModelProperty(value = "备注1") private String remark1; + @ApiModelProperty(value = "备注2") private String remark2; + @ApiModelProperty(value = "备注3") private String remark3; } \ No newline at end of file diff --git a/src/main/java/com/glxp/api/req/system/SysPdfTemplateSaveRequest.java b/src/main/java/com/glxp/api/req/system/SysPdfTemplateSaveRequest.java index b59edb3..6f7f904 100644 --- a/src/main/java/com/glxp/api/req/system/SysPdfTemplateSaveRequest.java +++ b/src/main/java/com/glxp/api/req/system/SysPdfTemplateSaveRequest.java @@ -1,22 +1,35 @@ package com.glxp.api.req.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; - +@ApiModel(value = "系统PDF模板保存请求") @Data public class SysPdfTemplateSaveRequest { - + @ApiModelProperty(value = "主键") private Integer id; + @ApiModelProperty(value = "名称") private String name; + @ApiModelProperty(value = "类型") private int type; + @ApiModelProperty(value = "模型") private int module; + @ApiModelProperty(value = "参数") private String param; + @ApiModelProperty(value = "地址") private String path; + @ApiModelProperty(value = "行数") private int rowCount; + @ApiModelProperty(value = "二维码数量") private int qrcodeCount; + @ApiModelProperty(value = "备注") private String remark; + @ApiModelProperty(value = "创建时间") private Date create_time; + @ApiModelProperty(value = "更新时间") private Date update_time; + @ApiModelProperty(value = "JRXML路径") private String jrxmlPath; } diff --git a/src/main/java/com/glxp/api/res/auth/sroleResponse.java b/src/main/java/com/glxp/api/res/auth/sroleResponse.java index c75438d..304af8c 100644 --- a/src/main/java/com/glxp/api/res/auth/sroleResponse.java +++ b/src/main/java/com/glxp/api/res/auth/sroleResponse.java @@ -1,5 +1,7 @@ package com.glxp.api.res.auth; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; @@ -9,18 +11,19 @@ import java.util.Date; * @date : 2023/5/25 14:26 * @modyified By : */ +@ApiModel(value = "角色响应") @Data public class sroleResponse { - + @ApiModelProperty(value = "主键") private Long id; - + @ApiModelProperty(value = "名称") private String name; - + @ApiModelProperty(value = "编码") private String code; - + @ApiModelProperty(value = " 0正常 1停用") // 0正常 1停用 private String status; - + @ApiModelProperty(value = "创建时间") // 创建时间 private Date createTime; } diff --git a/src/main/java/com/glxp/api/res/system/SystemPDFModuleResponse.java b/src/main/java/com/glxp/api/res/system/SystemPDFModuleResponse.java index e3f657e..2fc0e69 100644 --- a/src/main/java/com/glxp/api/res/system/SystemPDFModuleResponse.java +++ b/src/main/java/com/glxp/api/res/system/SystemPDFModuleResponse.java @@ -1,22 +1,35 @@ package com.glxp.api.res.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; - +@ApiModel(value = "系统PDF模块响应") @Data public class SystemPDFModuleResponse { - + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "名称") private String name; + @ApiModelProperty(value = "参数") private String param; + @ApiModelProperty(value = "字段说明") private String fieldExplain; + @ApiModelProperty(value = "模板ID") private int templateId; + @ApiModelProperty(value = "备注") private String remark; + @ApiModelProperty(value = "创建时间") private Date create_time; + @ApiModelProperty(value = "更新时间") private Date update_time; + @ApiModelProperty(value = "模板下载链接") private String templateDlUrl; + @ApiModelProperty(value = "模板名称") private String templateName; + @ApiModelProperty(value = "模板类型") private Integer templateType; + @ApiModelProperty(value = "模型关键字") private String modelKey; } \ No newline at end of file diff --git a/src/main/java/com/glxp/api/res/system/SystemPDFModuleSelectResponse.java b/src/main/java/com/glxp/api/res/system/SystemPDFModuleSelectResponse.java index c327eb5..e7b66c7 100644 --- a/src/main/java/com/glxp/api/res/system/SystemPDFModuleSelectResponse.java +++ b/src/main/java/com/glxp/api/res/system/SystemPDFModuleSelectResponse.java @@ -1,12 +1,16 @@ package com.glxp.api.res.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; - +@ApiModel(value = "系统PDF模块选择响应") @Data public class SystemPDFModuleSelectResponse { - + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "ID字符串") private String idStr; + @ApiModelProperty(value = "名称") private String name; } diff --git a/src/main/java/com/glxp/api/res/system/SystemPDFTemplateSelectResponse.java b/src/main/java/com/glxp/api/res/system/SystemPDFTemplateSelectResponse.java index 24afac8..bcb50f7 100644 --- a/src/main/java/com/glxp/api/res/system/SystemPDFTemplateSelectResponse.java +++ b/src/main/java/com/glxp/api/res/system/SystemPDFTemplateSelectResponse.java @@ -1,12 +1,16 @@ package com.glxp.api.res.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; - +@ApiModel(value = "系统PDF模板选择响应") @Data public class SystemPDFTemplateSelectResponse { - + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "ID字符串") private String idStr; + @ApiModelProperty(value = "名称") private String name; } diff --git a/src/main/java/com/glxp/api/res/system/SystemParamConfigResponse.java b/src/main/java/com/glxp/api/res/system/SystemParamConfigResponse.java index 07646ba..25bd19a 100644 --- a/src/main/java/com/glxp/api/res/system/SystemParamConfigResponse.java +++ b/src/main/java/com/glxp/api/res/system/SystemParamConfigResponse.java @@ -1,16 +1,25 @@ package com.glxp.api.res.system; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; - +@ApiModel(value = "系统参数配置响应") @Data public class SystemParamConfigResponse { - + @ApiModelProperty(value = "主键") private int id; + @ApiModelProperty(value = "父级ID") private int parentId; + @ApiModelProperty(value = "参数名称") private String paramName; + @ApiModelProperty(value = "参数键") private String paramKey; + @ApiModelProperty(value = "参数值") private String paramValue; + @ApiModelProperty(value = "参数状态") private int paramStatus; + @ApiModelProperty(value = "参数类型") private int paramType; + @ApiModelProperty(value = "参数说明") private String paramExplain; } \ No newline at end of file diff --git a/src/main/java/com/glxp/api/util/page/ListPageRequest.java b/src/main/java/com/glxp/api/util/page/ListPageRequest.java index 75f1f39..15cd33c 100644 --- a/src/main/java/com/glxp/api/util/page/ListPageRequest.java +++ b/src/main/java/com/glxp/api/util/page/ListPageRequest.java @@ -1,5 +1,6 @@ package com.glxp.api.util.page; +import io.swagger.annotations.ApiModel; import lombok.Data; import javax.validation.constraints.Max; @@ -8,6 +9,7 @@ import javax.validation.constraints.Min; /** * 分页的表单 */ +@ApiModel(value = "分页的表单") @Data public class ListPageRequest {