From ea85e762ace85abac71a19c089628d54496ac15e Mon Sep 17 00:00:00 2001 From: anthonywj Date: Fri, 19 May 2023 11:38:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eknife4j=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/glxp/api/common/res/BaseResponse.java | 10 +++++++--- .../com/glxp/api/config/Knife4jConfiguration.java | 2 +- .../com/glxp/api/controller/BaseController.java | 2 ++ .../api/controller/auth/AuthCheckController.java | 2 ++ .../api/controller/auth/AuthUserController.java | 2 ++ .../glxp/api/controller/auth/DeptController.java | 10 +++++----- .../api/controller/auth/DeptUserController.java | 6 +++--- .../glxp/api/controller/auth/LoginController.java | 5 +++-- .../api/controller/auth/SysDictDataController.java | 1 + .../api/controller/auth/SysDictTypeController.java | 1 + .../glxp/api/controller/auth/SysMenuController.java | 1 + .../glxp/api/controller/auth/SysRoleController.java | 2 +- .../glxp/api/controller/auth/SysUserController.java | 1 + .../api/controller/basic/UdiSyncController.java | 13 +++++++++++-- .../controller/monitor/SysLogininforController.java | 2 ++ .../controller/monitor/SysOperlogController.java | 2 ++ .../api/controller/purchase/SupCertController.java | 1 + .../api/controller/sup/UserComanyController.java | 1 + .../api/controller/sup/UserRegisterController.java | 6 ++++-- .../controller/system/ClassifyCodeController.java | 2 +- .../api/controller/system/CompanyController.java | 2 +- .../controller/system/ConnectTestController.java | 1 + .../api/controller/system/DeviceKeyController.java | 1 + .../controller/system/SysMenuHelpController.java | 1 + .../controller/system/SysParamConfigController.java | 2 +- .../controller/system/SysPdfModuleController.java | 2 +- .../controller/system/SysPdfTemplateController.java | 2 +- .../controller/system/SysRemindMsgController.java | 2 +- .../com/glxp/api/req/basic/BasicUdiReRequest.java | 4 ++++ 29 files changed, 64 insertions(+), 25 deletions(-) diff --git a/src/main/java/com/glxp/api/common/res/BaseResponse.java b/src/main/java/com/glxp/api/common/res/BaseResponse.java index 12e3217..cb51efd 100644 --- a/src/main/java/com/glxp/api/common/res/BaseResponse.java +++ b/src/main/java/com/glxp/api/common/res/BaseResponse.java @@ -1,17 +1,21 @@ package com.glxp.api.common.res; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** * 返回结果类 + * * @param */ @Data +@ApiModel(value = "返回结果类") public class BaseResponse { - + @ApiModelProperty(value = "状态码 成功:20000") private Integer code; - + @ApiModelProperty(value = "响应信息") private String message; - + @ApiModelProperty(value = "响应数据") private T data; } diff --git a/src/main/java/com/glxp/api/config/Knife4jConfiguration.java b/src/main/java/com/glxp/api/config/Knife4jConfiguration.java index 3b7d48c..2a56cec 100644 --- a/src/main/java/com/glxp/api/config/Knife4jConfiguration.java +++ b/src/main/java/com/glxp/api/config/Knife4jConfiguration.java @@ -15,7 +15,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc; @EnableSwagger2WebMvc public class Knife4jConfiguration { - @Value("${knife4j.enable:false}") + @Value("${knife4j.enable:true}") private boolean enable; @Bean(value = "defaultApi2") diff --git a/src/main/java/com/glxp/api/controller/BaseController.java b/src/main/java/com/glxp/api/controller/BaseController.java index ca5e714..a66433a 100644 --- a/src/main/java/com/glxp/api/controller/BaseController.java +++ b/src/main/java/com/glxp/api/controller/BaseController.java @@ -5,12 +5,14 @@ import cn.hutool.core.util.StrUtil; import com.glxp.api.constant.Constant; import com.glxp.api.entity.auth.AuthAdmin; import com.glxp.api.service.auth.CustomerService; +import springfox.documentation.annotations.ApiIgnore; import javax.annotation.Resource; /** * */ +@ApiIgnore public class BaseController { @Resource diff --git a/src/main/java/com/glxp/api/controller/auth/AuthCheckController.java b/src/main/java/com/glxp/api/controller/auth/AuthCheckController.java index cb76052..7736735 100644 --- a/src/main/java/com/glxp/api/controller/auth/AuthCheckController.java +++ b/src/main/java/com/glxp/api/controller/auth/AuthCheckController.java @@ -14,11 +14,13 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; +import springfox.documentation.annotations.ApiIgnore; import javax.annotation.Resource; import javax.validation.Valid; import java.util.List; +@ApiIgnore @RestController public class AuthCheckController { diff --git a/src/main/java/com/glxp/api/controller/auth/AuthUserController.java b/src/main/java/com/glxp/api/controller/auth/AuthUserController.java index b160cbd..9a34983 100644 --- a/src/main/java/com/glxp/api/controller/auth/AuthUserController.java +++ b/src/main/java/com/glxp/api/controller/auth/AuthUserController.java @@ -26,6 +26,8 @@ import java.util.*; /** * 管理员相关 */ + +@ApiIgnore @RestController public class AuthUserController extends BaseController { diff --git a/src/main/java/com/glxp/api/controller/auth/DeptController.java b/src/main/java/com/glxp/api/controller/auth/DeptController.java index 68bbd78..27afbd2 100644 --- a/src/main/java/com/glxp/api/controller/auth/DeptController.java +++ b/src/main/java/com/glxp/api/controller/auth/DeptController.java @@ -36,7 +36,7 @@ import com.glxp.api.service.system.SystemParamConfigService; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.StrUtil; - +@ApiIgnore @RestController public class DeptController { @@ -47,7 +47,7 @@ public class DeptController { @Resource SystemParamConfigService systemParamConfigService; - + @AuthRuleAnnotation("") @@ -276,7 +276,7 @@ public class DeptController { return ResultVOUtils.error(500, "删除失败,一级部门不允许删除!"); } - + FilterDeptUserReqeust filterDeptUserReqeust = new FilterDeptUserReqeust(); filterDeptUserReqeust.setDeptId(deptEntity.getId().longValue()); List deptUserEntities = deptUserService.selectDeptUser(filterDeptUserReqeust); @@ -312,9 +312,9 @@ public class DeptController { return ResultVOUtils.success("禁用成功!"); } - - + + public String isCheckStatus(Integer status, DeptEntity deptEntity) { //启用的时候需要判断上级是不是被禁用 diff --git a/src/main/java/com/glxp/api/controller/auth/DeptUserController.java b/src/main/java/com/glxp/api/controller/auth/DeptUserController.java index 56d0dd4..91b81ae 100644 --- a/src/main/java/com/glxp/api/controller/auth/DeptUserController.java +++ b/src/main/java/com/glxp/api/controller/auth/DeptUserController.java @@ -22,7 +22,7 @@ import com.glxp.api.service.auth.DeptService; import com.glxp.api.service.auth.DeptUserService; import com.glxp.api.service.auth.WarehouseUserService; - +@ApiIgnore @RestController public class DeptUserController { @@ -32,7 +32,7 @@ public class DeptUserController { @Resource DeptService deptService; - + @Resource WarehouseUserService warehouseUserService; @@ -61,7 +61,7 @@ public class DeptUserController { @PostMapping("udi/auth/dept/user/delete") public BaseResponse delete(@RequestBody DeptUserEntity deptUserEntity) { - + //判断此用户是否与除一级部门 还绑定其他部门 FilterDeptUserReqeust filterDeptUserReqeust = new FilterDeptUserReqeust(); diff --git a/src/main/java/com/glxp/api/controller/auth/LoginController.java b/src/main/java/com/glxp/api/controller/auth/LoginController.java index b6c12e7..1bdbdfd 100644 --- a/src/main/java/com/glxp/api/controller/auth/LoginController.java +++ b/src/main/java/com/glxp/api/controller/auth/LoginController.java @@ -57,6 +57,7 @@ import lombok.extern.slf4j.Slf4j; /** * 登录相关 */ +@ApiIgnore @RestController @Slf4j public class LoginController extends BaseController { @@ -209,8 +210,8 @@ public class LoginController extends BaseController { @Resource DeptService deptService; - - + + @Resource ISysRoleService sysRoleService; diff --git a/src/main/java/com/glxp/api/controller/auth/SysDictDataController.java b/src/main/java/com/glxp/api/controller/auth/SysDictDataController.java index f3181d6..d0f4a3b 100644 --- a/src/main/java/com/glxp/api/controller/auth/SysDictDataController.java +++ b/src/main/java/com/glxp/api/controller/auth/SysDictDataController.java @@ -19,6 +19,7 @@ import java.util.List; /** * 数据字典信息 */ +@ApiIgnore @Validated @RequiredArgsConstructor @RestController diff --git a/src/main/java/com/glxp/api/controller/auth/SysDictTypeController.java b/src/main/java/com/glxp/api/controller/auth/SysDictTypeController.java index dc4d54b..3ca38cd 100644 --- a/src/main/java/com/glxp/api/controller/auth/SysDictTypeController.java +++ b/src/main/java/com/glxp/api/controller/auth/SysDictTypeController.java @@ -20,6 +20,7 @@ import java.util.List; /** * 数据字典信息 */ +@ApiIgnore @RestController @RequestMapping("/system/dict/type") public class SysDictTypeController extends BaseController { diff --git a/src/main/java/com/glxp/api/controller/auth/SysMenuController.java b/src/main/java/com/glxp/api/controller/auth/SysMenuController.java index 6fbe78d..bc9d8aa 100644 --- a/src/main/java/com/glxp/api/controller/auth/SysMenuController.java +++ b/src/main/java/com/glxp/api/controller/auth/SysMenuController.java @@ -24,6 +24,7 @@ import java.util.Map; * * @author Lion Li */ +@ApiIgnore @RestController @RequestMapping("/system/menu") public class SysMenuController extends BaseController { diff --git a/src/main/java/com/glxp/api/controller/auth/SysRoleController.java b/src/main/java/com/glxp/api/controller/auth/SysRoleController.java index a87b5a9..a14f1aa 100644 --- a/src/main/java/com/glxp/api/controller/auth/SysRoleController.java +++ b/src/main/java/com/glxp/api/controller/auth/SysRoleController.java @@ -22,7 +22,7 @@ import javax.annotation.Resource; import java.util.Date; import java.util.List; import java.util.UUID; - +@ApiIgnore @Validated @RequiredArgsConstructor @RestController diff --git a/src/main/java/com/glxp/api/controller/auth/SysUserController.java b/src/main/java/com/glxp/api/controller/auth/SysUserController.java index d1116b9..3ff7a6a 100644 --- a/src/main/java/com/glxp/api/controller/auth/SysUserController.java +++ b/src/main/java/com/glxp/api/controller/auth/SysUserController.java @@ -45,6 +45,7 @@ import java.util.stream.Collectors; * * @author Lion Li */ +@ApiIgnore @Validated @RequiredArgsConstructor @RestController diff --git a/src/main/java/com/glxp/api/controller/basic/UdiSyncController.java b/src/main/java/com/glxp/api/controller/basic/UdiSyncController.java index 7262fef..364e0e6 100644 --- a/src/main/java/com/glxp/api/controller/basic/UdiSyncController.java +++ b/src/main/java/com/glxp/api/controller/basic/UdiSyncController.java @@ -19,6 +19,8 @@ import com.glxp.api.res.basic.BasicUdiRelResponse; import com.glxp.api.res.basic.UdiRelevanceResponse; import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.basic.BasicUdiRelService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import lombok.Data; import org.springframework.beans.BeanUtils; import org.springframework.web.bind.annotation.GetMapping; @@ -39,10 +41,12 @@ import com.glxp.api.util.udi.FilterUdiUtils; import cn.hutool.core.util.StrUtil; import lombok.extern.slf4j.Slf4j; +import springfox.documentation.annotations.ApiIgnore; /** * 国家库产品信息相关接口 */ +@Api(tags = "注册企业医疗器械信息绑定接口") @Slf4j @RestController public class UdiSyncController extends BaseController { @@ -58,8 +62,8 @@ public class UdiSyncController extends BaseController { @Resource CustomerService customerService; - //获取同步库UDI信息 + @ApiIgnore @AuthRuleAnnotation("") @GetMapping("udiwms/udiinfo/filterUdi") public BaseResponse filterUdi(FilterUdiRelRequest filterUdiRelRequest) { @@ -106,6 +110,7 @@ public class UdiSyncController extends BaseController { //获取同步库医疗器械注册人信息 + @ApiIgnore @AuthRuleAnnotation("") @GetMapping("udiwms/udiinfo/filterCompany") public BaseResponse filterCompany(UdiCompanyRequest udiCompanyRequest) { @@ -122,6 +127,7 @@ public class UdiSyncController extends BaseController { //获取同步库UDI信息 @AuthRuleAnnotation("") + @ApiIgnore @GetMapping("udi/basic/rel/filter") public BaseResponse filterRel(FilterUdiRelRequest filterUdiRelRequest) { String nameCode; @@ -149,6 +155,7 @@ public class UdiSyncController extends BaseController { //产品信息关联新增 @AuthRuleAnnotation("") + @ApiOperation(value = "注册企业新增医疗器械信息", response = BaseResponse.class) @PostMapping("udi/basic/rel/save") public BaseResponse saveRel(@RequestBody BasicUdiReRequest basicUdiReRequest) { BasicUdiRelEntity basicUdiRelEntity = new BasicUdiRelEntity(); @@ -163,6 +170,7 @@ public class UdiSyncController extends BaseController { //产品信息关联新增 @AuthRuleAnnotation("") + @ApiOperation(value = "注册企业批量新增医疗器械信息", response = BaseResponse.class) @PostMapping("udi/basic/rel/batch/save") public BaseResponse batchSaveRel(@RequestBody UdiSelectRequest udiSelectRequest) { String userId = customerService.getUserId() + ""; @@ -182,7 +190,7 @@ public class UdiSyncController extends BaseController { @AuthRuleAnnotation("") @PostMapping("udi/basic/rel/delete") - public BaseResponse saveRel(@RequestBody DeleteRequest deleteRequest) { + public BaseResponse deletRel(@RequestBody DeleteRequest deleteRequest) { basicUdiRelService.removeById(deleteRequest.getId()); return ResultVOUtils.success("删除成功!"); } @@ -217,6 +225,7 @@ public class UdiSyncController extends BaseController { /** * 耗材字典信息获取同一产品对应DI信息 */ + @ApiIgnore @AuthRuleAnnotation("") @GetMapping("udiwms/udiinfo/local/filterByUuid") public BaseResponse filterLocalByUuid(FilterUdiRelRequest filterUdiRelRequest) { diff --git a/src/main/java/com/glxp/api/controller/monitor/SysLogininforController.java b/src/main/java/com/glxp/api/controller/monitor/SysLogininforController.java index d594581..03bed62 100644 --- a/src/main/java/com/glxp/api/controller/monitor/SysLogininforController.java +++ b/src/main/java/com/glxp/api/controller/monitor/SysLogininforController.java @@ -14,6 +14,7 @@ import com.glxp.api.service.monitor.ISysLogininforService; import lombok.RequiredArgsConstructor; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; import java.util.Arrays; import java.util.List; @@ -21,6 +22,7 @@ import java.util.List; /** * 系统访问记录 */ +@ApiIgnore @Validated @RequiredArgsConstructor @RestController diff --git a/src/main/java/com/glxp/api/controller/monitor/SysOperlogController.java b/src/main/java/com/glxp/api/controller/monitor/SysOperlogController.java index ab71b1e..a7b7951 100644 --- a/src/main/java/com/glxp/api/controller/monitor/SysOperlogController.java +++ b/src/main/java/com/glxp/api/controller/monitor/SysOperlogController.java @@ -14,12 +14,14 @@ import com.glxp.api.service.monitor.ISysOperLogService; import lombok.RequiredArgsConstructor; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; import java.util.List; /** * 操作日志记录 */ +@ApiIgnore @Validated @RequiredArgsConstructor @RestController diff --git a/src/main/java/com/glxp/api/controller/purchase/SupCertController.java b/src/main/java/com/glxp/api/controller/purchase/SupCertController.java index 04d4b5c..3c60074 100644 --- a/src/main/java/com/glxp/api/controller/purchase/SupCertController.java +++ b/src/main/java/com/glxp/api/controller/purchase/SupCertController.java @@ -32,6 +32,7 @@ import java.util.List; * @date : 2023/5/18 9:38 * @modyified By : */ +@ApiIgnore @RestController public class SupCertController { @Resource diff --git a/src/main/java/com/glxp/api/controller/sup/UserComanyController.java b/src/main/java/com/glxp/api/controller/sup/UserComanyController.java index f1b19d5..be002a4 100644 --- a/src/main/java/com/glxp/api/controller/sup/UserComanyController.java +++ b/src/main/java/com/glxp/api/controller/sup/UserComanyController.java @@ -18,6 +18,7 @@ import java.util.List; /** * 客户端企业信息 */ +@ApiIgnore @RestController @Slf4j public class UserComanyController extends BaseController { diff --git a/src/main/java/com/glxp/api/controller/sup/UserRegisterController.java b/src/main/java/com/glxp/api/controller/sup/UserRegisterController.java index 33f2554..098b5e6 100644 --- a/src/main/java/com/glxp/api/controller/sup/UserRegisterController.java +++ b/src/main/java/com/glxp/api/controller/sup/UserRegisterController.java @@ -39,7 +39,9 @@ import com.glxp.api.util.CaptchaUtils; import cn.hutool.core.util.ReUtil; import cn.hutool.core.util.StrUtil; import lombok.extern.slf4j.Slf4j; +import springfox.documentation.annotations.ApiIgnore; +@ApiIgnore @RestController @Slf4j public class UserRegisterController extends BaseController { @@ -79,10 +81,10 @@ public class UserRegisterController extends BaseController { userRegisterEntity.setMobile(mobile); userRegisterService.saveOrUpdate(userRegisterEntity); userRegisterEntity = userRegisterService.getOne(new QueryWrapper().eq("mobile", mobile)); - } + } userPersons = userPersonService.list(new QueryWrapper().eq("registerId", userRegisterEntity.getId())); userCerts = userCertService.selectByRegisterId(userRegisterEntity.getId().toString()); - + map.put("registerInfo", userRegisterEntity); map.put("userPersons", userPersons); map.put("userCerts", userCerts); 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 44cac19..c151150 100644 --- a/src/main/java/com/glxp/api/controller/system/ClassifyCodeController.java +++ b/src/main/java/com/glxp/api/controller/system/ClassifyCodeController.java @@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.List; - +@ApiIgnore @RestController public class ClassifyCodeController { 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 cb1d34d..d692766 100644 --- a/src/main/java/com/glxp/api/controller/system/CompanyController.java +++ b/src/main/java/com/glxp/api/controller/system/CompanyController.java @@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; - +@ApiIgnore @RestController public class CompanyController { 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 248419e..581b6d2 100644 --- a/src/main/java/com/glxp/api/controller/system/ConnectTestController.java +++ b/src/main/java/com/glxp/api/controller/system/ConnectTestController.java @@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; +@ApiIgnore @RestController public class ConnectTestController { 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 29c2077..8d434bb 100644 --- a/src/main/java/com/glxp/api/controller/system/DeviceKeyController.java +++ b/src/main/java/com/glxp/api/controller/system/DeviceKeyController.java @@ -22,6 +22,7 @@ import javax.validation.Valid; import java.security.MessageDigest; import java.util.List; +@ApiIgnore @Slf4j @RestController public class DeviceKeyController { 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 66816c7..c8db80a 100644 --- a/src/main/java/com/glxp/api/controller/system/SysMenuHelpController.java +++ b/src/main/java/com/glxp/api/controller/system/SysMenuHelpController.java @@ -28,6 +28,7 @@ import java.util.List; * @date : 2023/3/20 13:58 * @modyified By : */ +@ApiIgnore @RestController public class SysMenuHelpController { 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 8b298d5..11b7c21 100644 --- a/src/main/java/com/glxp/api/controller/system/SysParamConfigController.java +++ b/src/main/java/com/glxp/api/controller/system/SysParamConfigController.java @@ -28,7 +28,7 @@ import javax.annotation.Resource; import javax.validation.Valid; import java.util.List; import java.util.stream.Collectors; - +@ApiIgnore @RestController public class SysParamConfigController { 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 d73e9ad..e6af2a3 100644 --- a/src/main/java/com/glxp/api/controller/system/SysPdfModuleController.java +++ b/src/main/java/com/glxp/api/controller/system/SysPdfModuleController.java @@ -30,7 +30,7 @@ import javax.validation.Valid; import java.util.Date; import java.util.List; import java.util.stream.Collectors; - +@ApiIgnore @RestController public class SysPdfModuleController { 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 e217d73..23800f8 100644 --- a/src/main/java/com/glxp/api/controller/system/SysPdfTemplateController.java +++ b/src/main/java/com/glxp/api/controller/system/SysPdfTemplateController.java @@ -27,7 +27,7 @@ import java.io.File; import java.util.Date; import java.util.List; import java.util.stream.Collectors; - +@ApiIgnore @RestController public class SysPdfTemplateController { diff --git a/src/main/java/com/glxp/api/controller/system/SysRemindMsgController.java b/src/main/java/com/glxp/api/controller/system/SysRemindMsgController.java index c585343..b48e1ce 100644 --- a/src/main/java/com/glxp/api/controller/system/SysRemindMsgController.java +++ b/src/main/java/com/glxp/api/controller/system/SysRemindMsgController.java @@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.List; - +@ApiIgnore @RestController public class SysRemindMsgController { diff --git a/src/main/java/com/glxp/api/req/basic/BasicUdiReRequest.java b/src/main/java/com/glxp/api/req/basic/BasicUdiReRequest.java index 4b5da4c..b14ff48 100644 --- a/src/main/java/com/glxp/api/req/basic/BasicUdiReRequest.java +++ b/src/main/java/com/glxp/api/req/basic/BasicUdiReRequest.java @@ -3,6 +3,7 @@ package com.glxp.api.req.basic; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; @@ -14,11 +15,13 @@ public class BasicUdiReRequest { /** * 国家库uuid */ + @ApiModelProperty(value = "国家库uuid", required = true) private String uuid; /** * 企业信息ID外键 */ + @ApiModelProperty(value = "企业信息ID外键", required = true) private Long companyIdFk; /** @@ -29,6 +32,7 @@ public class BasicUdiReRequest { /** * 备注 */ + @ApiModelProperty(value = "备注信息", required = false) private String remark; /**