【升级】全新V3.0发布
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>vip.xiaonuo</groupId>
|
||||
<artifactId>snowy-plugin</artifactId>
|
||||
<version>2.0.0</version>
|
||||
<version>3.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>snowy-plugin-mobile</artifactId>
|
||||
|
||||
@@ -12,20 +12,7 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.core.config;
|
||||
|
||||
import com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import springfox.documentation.builders.ApiInfoBuilder;
|
||||
import springfox.documentation.builders.PathSelectors;
|
||||
import springfox.documentation.builders.RequestHandlerSelectors;
|
||||
import springfox.documentation.service.Contact;
|
||||
import springfox.documentation.spi.DocumentationType;
|
||||
import springfox.documentation.spring.web.plugins.Docket;
|
||||
import vip.xiaonuo.common.pojo.CommonResult;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 业务相关配置
|
||||
@@ -35,33 +22,4 @@ import javax.annotation.Resource;
|
||||
**/
|
||||
@Configuration
|
||||
public class MobileConfigure {
|
||||
|
||||
@Resource
|
||||
private OpenApiExtensionResolver openApiExtensionResolver;
|
||||
|
||||
/**
|
||||
* API文档分组配置
|
||||
*
|
||||
* @author xuyuxiang yubaoshan
|
||||
* @date 2022/7/7 16:18
|
||||
**/
|
||||
@Bean(value = "mobileDocApi")
|
||||
public Docket mobileDocApi() {
|
||||
return new Docket(DocumentationType.SWAGGER_2)
|
||||
.apiInfo(new ApiInfoBuilder()
|
||||
.title("移动端功能MOBILE")
|
||||
.description("移动端功能MOBILE")
|
||||
.termsOfServiceUrl("https://www.xiaonuo.vip")
|
||||
.contact(new Contact("SNOWY_TEAM","https://www.xiaonuo.vip", "xiaonuobase@qq.com"))
|
||||
.version("2.0.0")
|
||||
.build())
|
||||
.globalResponseMessage(RequestMethod.GET, CommonResult.responseList())
|
||||
.globalResponseMessage(RequestMethod.POST, CommonResult.responseList())
|
||||
.groupName("移动端功能MOBILE")
|
||||
.select()
|
||||
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
|
||||
.apis(RequestHandlerSelectors.basePackage("vip.xiaonuo.mobile"))
|
||||
.paths(PathSelectors.any())
|
||||
.build().extensions(openApiExtensionResolver.buildExtensions("移动端功能MOBILE"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
package vip.xiaonuo.mobile.modular.resource.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.validation.Valid;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -31,8 +31,6 @@ import vip.xiaonuo.mobile.modular.resource.param.button.MobileButtonIdParam;
|
||||
import vip.xiaonuo.mobile.modular.resource.param.button.MobileButtonPageParam;
|
||||
import vip.xiaonuo.mobile.modular.resource.service.MobileButtonService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -41,8 +39,7 @@ import java.util.List;
|
||||
* @author xuyuxiang
|
||||
* @date 2022/6/27 13:56
|
||||
**/
|
||||
@Api(tags = "移动端按钮控制器")
|
||||
@ApiSupport(author = "SNOWY_TEAM", order = 3)
|
||||
@Tag(name = "移动端按钮控制器")
|
||||
@RestController
|
||||
@Validated
|
||||
public class MobileButtonController {
|
||||
@@ -56,8 +53,7 @@ public class MobileButtonController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:00
|
||||
*/
|
||||
@ApiOperationSupport(order = 1)
|
||||
@ApiOperation("获取移动端按钮分页")
|
||||
@Operation(summary = "获取移动端按钮分页")
|
||||
@GetMapping("/mobile/button/page")
|
||||
public CommonResult<Page<MobileButton>> page(MobileButtonPageParam mobileButtonPageParam) {
|
||||
return CommonResult.data(mobileButtonService.page(mobileButtonPageParam));
|
||||
@@ -69,8 +65,7 @@ public class MobileButtonController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:47
|
||||
*/
|
||||
@ApiOperationSupport(order = 2)
|
||||
@ApiOperation("添加移动端按钮")
|
||||
@Operation(summary = "添加移动端按钮")
|
||||
@CommonLog("添加移动端按钮")
|
||||
@PostMapping("/mobile/button/add")
|
||||
public CommonResult<String> add(@RequestBody @Valid MobileButtonAddParam mobileButtonAddParam) {
|
||||
@@ -84,8 +79,7 @@ public class MobileButtonController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:47
|
||||
*/
|
||||
@ApiOperationSupport(order = 3)
|
||||
@ApiOperation("编辑移动端按钮")
|
||||
@Operation(summary = "编辑移动端按钮")
|
||||
@CommonLog("编辑移动端按钮")
|
||||
@PostMapping("/mobile/button/edit")
|
||||
public CommonResult<String> edit(@RequestBody @Valid MobileButtonEditParam mobileButtonEditParam) {
|
||||
@@ -99,8 +93,7 @@ public class MobileButtonController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:00
|
||||
*/
|
||||
@ApiOperationSupport(order = 4)
|
||||
@ApiOperation("删除移动端按钮")
|
||||
@Operation(summary = "删除移动端按钮")
|
||||
@CommonLog("删除移动端按钮")
|
||||
@PostMapping("/mobile/button/delete")
|
||||
public CommonResult<String> delete(@RequestBody @Valid List<MobileButtonIdParam> mobileButtonIdParamList) {
|
||||
@@ -114,8 +107,7 @@ public class MobileButtonController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:00
|
||||
*/
|
||||
@ApiOperationSupport(order = 5)
|
||||
@ApiOperation("获取移动端按钮详情")
|
||||
@Operation(summary = "获取移动端按钮详情")
|
||||
@GetMapping("/mobile/button/detail")
|
||||
public CommonResult<MobileButton> detail(@Valid MobileButtonIdParam mobileButtonIdParam) {
|
||||
return CommonResult.data(mobileButtonService.detail(mobileButtonIdParam));
|
||||
|
||||
@@ -13,10 +13,11 @@
|
||||
package vip.xiaonuo.mobile.modular.resource.controller;
|
||||
|
||||
import cn.hutool.core.lang.tree.Tree;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -24,15 +25,11 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import vip.xiaonuo.common.annotation.CommonLog;
|
||||
import vip.xiaonuo.common.pojo.CommonResult;
|
||||
import vip.xiaonuo.common.pojo.CommonValidList;
|
||||
import vip.xiaonuo.mobile.modular.resource.entity.MobileMenu;
|
||||
import vip.xiaonuo.mobile.modular.resource.entity.MobileModule;
|
||||
import vip.xiaonuo.mobile.modular.resource.param.menu.*;
|
||||
import vip.xiaonuo.mobile.modular.resource.service.MobileMenuService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -41,8 +38,7 @@ import java.util.List;
|
||||
* @author yubaoshan
|
||||
* @date 2023/01/28 22:42
|
||||
*/
|
||||
@Api(tags = "移动端菜单控制器")
|
||||
@ApiSupport(author = "SNOWY_TEAM", order = 1)
|
||||
@Tag(name = "移动端菜单控制器")
|
||||
@RestController
|
||||
@Validated
|
||||
public class MobileMenuController {
|
||||
@@ -56,8 +52,7 @@ public class MobileMenuController {
|
||||
* @author yubaoshan
|
||||
* @date 2023/01/28 22:42
|
||||
*/
|
||||
@ApiOperationSupport(order = 1)
|
||||
@ApiOperation("获取移动端菜单tree")
|
||||
@Operation(summary = "获取移动端菜单tree")
|
||||
@GetMapping("/mobile/menu/tree")
|
||||
public CommonResult<List<Tree<String>>> tree(MobileMenuTreeParam mobileMenuTreeParam) {
|
||||
return CommonResult.data(mobileMenuService.tree(mobileMenuTreeParam));
|
||||
@@ -69,8 +64,7 @@ public class MobileMenuController {
|
||||
* @author yubaoshan
|
||||
* @date 2023/01/28 22:42
|
||||
*/
|
||||
@ApiOperationSupport(order = 2)
|
||||
@ApiOperation("添加移动端菜单")
|
||||
@Operation(summary = "添加移动端菜单")
|
||||
@CommonLog("添加移动端菜单")
|
||||
@PostMapping("/mobile/menu/add")
|
||||
public CommonResult<String> add(@RequestBody @Valid MobileMenuAddParam mobileMenuAddParam) {
|
||||
@@ -84,8 +78,7 @@ public class MobileMenuController {
|
||||
* @author yubaoshan
|
||||
* @date 2023/01/28 22:42
|
||||
*/
|
||||
@ApiOperationSupport(order = 3)
|
||||
@ApiOperation("编辑移动端菜单")
|
||||
@Operation(summary = "编辑移动端菜单")
|
||||
@CommonLog("编辑移动端菜单")
|
||||
@PostMapping("/mobile/menu/edit")
|
||||
public CommonResult<String> edit(@RequestBody @Valid MobileMenuEditParam mobileMenuEditParam) {
|
||||
@@ -99,8 +92,7 @@ public class MobileMenuController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:47
|
||||
*/
|
||||
@ApiOperationSupport(order = 5)
|
||||
@ApiOperation("更改移动端菜单所属模块")
|
||||
@Operation(summary = "更改移动端菜单所属模块")
|
||||
@CommonLog("更改移动端菜单所属模块")
|
||||
@PostMapping("/mobile/menu/changeModule")
|
||||
public CommonResult<String> changeModule(@RequestBody @Valid MobileMenuChangeModuleParam mobileMenuChangeModuleParam) {
|
||||
@@ -114,12 +106,11 @@ public class MobileMenuController {
|
||||
* @author yubaoshan
|
||||
* @date 2023/01/28 22:42
|
||||
*/
|
||||
@ApiOperationSupport(order = 4)
|
||||
@ApiOperation("删除移动端菜单")
|
||||
@Operation(summary = "删除移动端菜单")
|
||||
@CommonLog("删除移动端菜单")
|
||||
@PostMapping("/mobile/menu/delete")
|
||||
public CommonResult<String> delete(@RequestBody @Valid @NotEmpty(message = "集合不能为空")
|
||||
CommonValidList<MobileMenuIdParam> mobileMenuIdParamList) {
|
||||
List<MobileMenuIdParam> mobileMenuIdParamList) {
|
||||
mobileMenuService.delete(mobileMenuIdParamList);
|
||||
return CommonResult.ok();
|
||||
}
|
||||
@@ -130,8 +121,7 @@ public class MobileMenuController {
|
||||
* @author yubaoshan
|
||||
* @date 2023/01/28 22:42
|
||||
*/
|
||||
@ApiOperationSupport(order = 5)
|
||||
@ApiOperation("获取移动端菜单详情")
|
||||
@Operation(summary = "获取移动端菜单详情")
|
||||
@GetMapping("/mobile/menu/detail")
|
||||
public CommonResult<MobileMenu> detail(@Valid MobileMenuIdParam mobileMenuIdParam) {
|
||||
return CommonResult.data(mobileMenuService.detail(mobileMenuIdParam));
|
||||
@@ -145,8 +135,7 @@ public class MobileMenuController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:00
|
||||
*/
|
||||
@ApiOperationSupport(order = 6)
|
||||
@ApiOperation("获取模块选择器")
|
||||
@Operation(summary = "获取模块选择器")
|
||||
@GetMapping("/mobile/menu/moduleSelector")
|
||||
public CommonResult<List<MobileModule>> moduleSelector(MobileMenuSelectorModuleParam mobileMenuSelectorModuleParam) {
|
||||
return CommonResult.data(mobileMenuService.moduleSelector(mobileMenuSelectorModuleParam));
|
||||
@@ -158,8 +147,7 @@ public class MobileMenuController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:00
|
||||
*/
|
||||
@ApiOperationSupport(order = 7)
|
||||
@ApiOperation("获取菜单树选择器")
|
||||
@Operation(summary = "获取菜单树选择器")
|
||||
@GetMapping("/mobile/menu/menuTreeSelector")
|
||||
public CommonResult<List<Tree<String>>> menuTreeSelector(MobileMenuSelectorMenuParam mobileMenuSelectorMenuParam) {
|
||||
return CommonResult.data(mobileMenuService.menuTreeSelector(mobileMenuSelectorMenuParam));
|
||||
|
||||
@@ -13,10 +13,11 @@
|
||||
package vip.xiaonuo.mobile.modular.resource.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -24,7 +25,6 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import vip.xiaonuo.common.annotation.CommonLog;
|
||||
import vip.xiaonuo.common.pojo.CommonResult;
|
||||
import vip.xiaonuo.common.pojo.CommonValidList;
|
||||
import vip.xiaonuo.mobile.modular.resource.entity.MobileModule;
|
||||
import vip.xiaonuo.mobile.modular.resource.param.module.MobileModuleAddParam;
|
||||
import vip.xiaonuo.mobile.modular.resource.param.module.MobileModuleEditParam;
|
||||
@@ -32,9 +32,7 @@ import vip.xiaonuo.mobile.modular.resource.param.module.MobileModuleIdParam;
|
||||
import vip.xiaonuo.mobile.modular.resource.param.module.MobileModulePageParam;
|
||||
import vip.xiaonuo.mobile.modular.resource.service.MobileModuleService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 移动端模块控制器
|
||||
@@ -42,8 +40,7 @@ import javax.validation.constraints.NotEmpty;
|
||||
* @author xuyuxiang
|
||||
* @date 2022/6/27 14:12
|
||||
**/
|
||||
@Api(tags = "移动端模块控制器")
|
||||
@ApiSupport(author = "SNOWY_TEAM", order = 6)
|
||||
@Tag(name = "移动端模块控制器")
|
||||
@RestController
|
||||
@Validated
|
||||
public class MobileModuleController {
|
||||
@@ -57,8 +54,7 @@ public class MobileModuleController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:00
|
||||
*/
|
||||
@ApiOperationSupport(order = 1)
|
||||
@ApiOperation("获取移动端模块分页")
|
||||
@Operation(summary = "获取移动端模块分页")
|
||||
@GetMapping("/mobile/module/page")
|
||||
public CommonResult<Page<MobileModule>> page(MobileModulePageParam mobileModulePageParam) {
|
||||
return CommonResult.data(mobileModuleService.page(mobileModulePageParam));
|
||||
@@ -70,8 +66,7 @@ public class MobileModuleController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:47
|
||||
*/
|
||||
@ApiOperationSupport(order = 2)
|
||||
@ApiOperation("添加移动端模块")
|
||||
@Operation(summary = "添加移动端模块")
|
||||
@CommonLog("添加移动端模块")
|
||||
@PostMapping("/mobile/module/add")
|
||||
public CommonResult<String> add(@RequestBody @Valid MobileModuleAddParam mobileModuleAddParam) {
|
||||
@@ -85,8 +80,7 @@ public class MobileModuleController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:47
|
||||
*/
|
||||
@ApiOperationSupport(order = 3)
|
||||
@ApiOperation("编辑移动端模块")
|
||||
@Operation(summary = "编辑移动端模块")
|
||||
@CommonLog("编辑移动端模块")
|
||||
@PostMapping("/mobile/module/edit")
|
||||
public CommonResult<String> edit(@RequestBody @Valid MobileModuleEditParam mobileModuleEditParam) {
|
||||
@@ -100,12 +94,11 @@ public class MobileModuleController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:00
|
||||
*/
|
||||
@ApiOperationSupport(order = 4)
|
||||
@ApiOperation("删除移动端模块")
|
||||
@Operation(summary = "删除移动端模块")
|
||||
@CommonLog("删除移动端模块")
|
||||
@PostMapping("/mobile/module/delete")
|
||||
public CommonResult<String> delete(@RequestBody @Valid @NotEmpty(message = "集合不能为空")
|
||||
CommonValidList<MobileModuleIdParam> mobileModuleIdParamList) {
|
||||
List<MobileModuleIdParam> mobileModuleIdParamList) {
|
||||
mobileModuleService.delete(mobileModuleIdParamList);
|
||||
return CommonResult.ok();
|
||||
}
|
||||
@@ -116,8 +109,7 @@ public class MobileModuleController {
|
||||
* @author xuyuxiang
|
||||
* @date 2022/4/24 20:00
|
||||
*/
|
||||
@ApiOperationSupport(order = 5)
|
||||
@ApiOperation("获取移动端模块详情")
|
||||
@Operation(summary = "获取移动端模块详情")
|
||||
@GetMapping("/mobile/module/detail")
|
||||
public CommonResult<MobileModule> detail(@Valid MobileModuleIdParam mobileModuleIdParam) {
|
||||
return CommonResult.data(mobileModuleService.detail(mobileModuleIdParam));
|
||||
|
||||
@@ -15,7 +15,7 @@ package vip.xiaonuo.mobile.modular.resource.entity;
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import vip.xiaonuo.common.pojo.CommonEntity;
|
||||
@@ -32,31 +32,31 @@ import vip.xiaonuo.common.pojo.CommonEntity;
|
||||
public class MobileButton extends CommonEntity {
|
||||
|
||||
/** id */
|
||||
@ApiModelProperty(value = "id", position = 1)
|
||||
@Schema(description = "id")
|
||||
private String id;
|
||||
|
||||
/** 父id */
|
||||
@ApiModelProperty(value = "父id", position = 2)
|
||||
@Schema(description = "父id")
|
||||
private String parentId;
|
||||
|
||||
/** 标题 */
|
||||
@ApiModelProperty(value = "标题", position = 3)
|
||||
@Schema(description = "标题")
|
||||
private String title;
|
||||
|
||||
/** 编码 */
|
||||
@ApiModelProperty(value = "编码", position = 4)
|
||||
@Schema(description = "编码")
|
||||
private String code;
|
||||
|
||||
/** 分类 */
|
||||
@ApiModelProperty(value = "分类", position = 5)
|
||||
@Schema(description = "分类")
|
||||
private String category;
|
||||
|
||||
/** 排序码 */
|
||||
@ApiModelProperty(value = "排序码", position = 6)
|
||||
@Schema(description = "排序码")
|
||||
private Integer sortCode;
|
||||
|
||||
/** 扩展信息 */
|
||||
@ApiModelProperty(value = "扩展信息", position = 7)
|
||||
@Schema(description = "扩展信息")
|
||||
@TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
|
||||
private String extJson;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import vip.xiaonuo.common.pojo.CommonEntity;
|
||||
@@ -34,59 +34,59 @@ public class MobileMenu extends CommonEntity {
|
||||
|
||||
/** 主键 */
|
||||
@TableId
|
||||
@ApiModelProperty(value = "主键", position = 1)
|
||||
@Schema(description = "主键")
|
||||
private String id;
|
||||
|
||||
/** 父ID */
|
||||
@ApiModelProperty(value = "父ID", position = 2)
|
||||
@Schema(description = "父ID")
|
||||
private String parentId;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty(value = "名称", position = 3)
|
||||
@Schema(description = "名称")
|
||||
private String title;
|
||||
|
||||
/** 编码 */
|
||||
@ApiModelProperty(value = "编码", position = 4)
|
||||
@Schema(description = "编码")
|
||||
private String code;
|
||||
|
||||
/** 分类 */
|
||||
@ApiModelProperty(value = "分类", position = 5)
|
||||
@Schema(description = "分类")
|
||||
private String category;
|
||||
|
||||
/** 模块 */
|
||||
@ApiModelProperty(value = "模块", position = 6)
|
||||
@Schema(description = "模块")
|
||||
private String module;
|
||||
|
||||
/** 菜单类型 */
|
||||
@ApiModelProperty(value = "菜单类型", position = 7)
|
||||
@Schema(description = "菜单类型")
|
||||
private String menuType;
|
||||
|
||||
/** 路径 */
|
||||
@ApiModelProperty(value = "路径", position = 8)
|
||||
@Schema(description = "路径")
|
||||
private String path;
|
||||
|
||||
/** 图标 */
|
||||
@ApiModelProperty(value = "图标", position = 9)
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
|
||||
/** 颜色 */
|
||||
@ApiModelProperty(value = "颜色", position = 10)
|
||||
@Schema(description = "颜色")
|
||||
private String color;
|
||||
|
||||
/** 规则类型 */
|
||||
@ApiModelProperty(value = "规则类型", position = 11)
|
||||
@Schema(description = "规则类型")
|
||||
private String regType;
|
||||
|
||||
/** 可用状态 */
|
||||
@ApiModelProperty(value = "可用状态", position = 12)
|
||||
@Schema(description = "可用状态")
|
||||
private String status;
|
||||
|
||||
/** 排序码 */
|
||||
@ApiModelProperty(value = "排序码", position = 13)
|
||||
@Schema(description = "排序码")
|
||||
private Integer sortCode;
|
||||
|
||||
/** 扩展信息 */
|
||||
@ApiModelProperty(value = "扩展信息", position = 14)
|
||||
@Schema(description = "扩展信息")
|
||||
@TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
|
||||
private String extJson;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ package vip.xiaonuo.mobile.modular.resource.entity;
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import vip.xiaonuo.common.pojo.CommonEntity;
|
||||
@@ -32,35 +32,35 @@ import vip.xiaonuo.common.pojo.CommonEntity;
|
||||
public class MobileModule extends CommonEntity {
|
||||
|
||||
/** id */
|
||||
@ApiModelProperty(value = "id", position = 1)
|
||||
@Schema(description = "id")
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@ApiModelProperty(value = "标题", position = 2)
|
||||
@Schema(description = "标题")
|
||||
private String title;
|
||||
|
||||
/** 编码 */
|
||||
@ApiModelProperty(value = "编码", position = 3)
|
||||
@Schema(description = "编码")
|
||||
private String code;
|
||||
|
||||
/** 分类 */
|
||||
@ApiModelProperty(value = "分类", position = 4)
|
||||
@Schema(description = "分类")
|
||||
private String category;
|
||||
|
||||
/** 图标 */
|
||||
@ApiModelProperty(value = "图标", position = 5)
|
||||
@Schema(description = "图标")
|
||||
private String icon;
|
||||
|
||||
/** 颜色 */
|
||||
@ApiModelProperty(value = "颜色", position = 6)
|
||||
@Schema(description = "颜色")
|
||||
private String color;
|
||||
|
||||
/** 排序码 */
|
||||
@ApiModelProperty(value = "排序码", position = 7)
|
||||
@Schema(description = "排序码")
|
||||
private Integer sortCode;
|
||||
|
||||
/** 扩展信息 */
|
||||
@ApiModelProperty(value = "扩展信息", position = 8)
|
||||
@Schema(description = "扩展信息")
|
||||
@TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
|
||||
private String extJson;
|
||||
}
|
||||
|
||||
@@ -12,13 +12,12 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.button;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 移动端按钮添加参数
|
||||
*
|
||||
@@ -30,26 +29,26 @@ import javax.validation.constraints.NotNull;
|
||||
public class MobileButtonAddParam {
|
||||
|
||||
/** 父id */
|
||||
@ApiModelProperty(value = "父id", required = true, position = 1)
|
||||
@Schema(description = "父id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "parentId不能为空")
|
||||
private String parentId;
|
||||
|
||||
/** 标题 */
|
||||
@ApiModelProperty(value = "标题", required = true, position = 2)
|
||||
@Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "title不能为空")
|
||||
private String title;
|
||||
|
||||
/** 编码 */
|
||||
@ApiModelProperty(value = "编码", required = true, position = 3)
|
||||
@Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "code不能为空")
|
||||
private String code;
|
||||
|
||||
/** 排序码 */
|
||||
@ApiModelProperty(value = "排序码", required = true, position = 4)
|
||||
@Schema(description = "排序码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "sortCode不能为空")
|
||||
private Integer sortCode;
|
||||
|
||||
/** 扩展JSON */
|
||||
@ApiModelProperty(value = "扩展JSON", position = 5)
|
||||
@Schema(description = "扩展JSON")
|
||||
private String extJson;
|
||||
}
|
||||
|
||||
@@ -12,13 +12,12 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.button;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 移动端按钮编辑参数
|
||||
*
|
||||
@@ -30,31 +29,31 @@ import javax.validation.constraints.NotNull;
|
||||
public class MobileButtonEditParam {
|
||||
|
||||
/** id */
|
||||
@ApiModelProperty(value = "id", required = true, position = 1)
|
||||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "id不能为空")
|
||||
private String id;
|
||||
|
||||
/** 父id */
|
||||
@ApiModelProperty(value = "父id", required = true, position = 2)
|
||||
@Schema(description = "父id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "parentId不能为空")
|
||||
private String parentId;
|
||||
|
||||
/** 标题 */
|
||||
@ApiModelProperty(value = "标题", required = true, position = 3)
|
||||
@Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "title不能为空")
|
||||
private String title;
|
||||
|
||||
/** 编码 */
|
||||
@ApiModelProperty(value = "编码", required = true, position = 4)
|
||||
@Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "code不能为空")
|
||||
private String code;
|
||||
|
||||
/** 排序码 */
|
||||
@ApiModelProperty(value = "排序码", required = true, position = 5)
|
||||
@Schema(description = "排序码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "sortCode不能为空")
|
||||
private Integer sortCode;
|
||||
|
||||
/** 扩展JSON */
|
||||
@ApiModelProperty(value = "扩展JSON", position = 6)
|
||||
@Schema(description = "扩展JSON")
|
||||
private String extJson;
|
||||
}
|
||||
|
||||
@@ -12,12 +12,11 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.button;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* 移动端按钮Id参数
|
||||
*
|
||||
@@ -29,7 +28,7 @@ import javax.validation.constraints.NotBlank;
|
||||
public class MobileButtonIdParam {
|
||||
|
||||
/** id */
|
||||
@ApiModelProperty(value = "id", required = true)
|
||||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "id不能为空")
|
||||
private String id;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.button;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@@ -27,26 +27,26 @@ import lombok.Setter;
|
||||
public class MobileButtonPageParam {
|
||||
|
||||
/** 当前页 */
|
||||
@ApiModelProperty(value = "当前页码")
|
||||
@Schema(description = "当前页码")
|
||||
private Integer current;
|
||||
|
||||
/** 每页条数 */
|
||||
@ApiModelProperty(value = "每页条数")
|
||||
@Schema(description = "每页条数")
|
||||
private Integer size;
|
||||
|
||||
/** 排序字段 */
|
||||
@ApiModelProperty(value = "排序字段,字段驼峰名称,如:userName")
|
||||
@Schema(description = "排序字段,字段驼峰名称,如:userName")
|
||||
private String sortField;
|
||||
|
||||
/** 排序方式 */
|
||||
@ApiModelProperty(value = "排序方式,升序:ASCEND;降序:DESCEND")
|
||||
@Schema(description = "排序方式,升序:ASCEND;降序:DESCEND")
|
||||
private String sortOrder;
|
||||
|
||||
/** 父id */
|
||||
@ApiModelProperty(value = "父id")
|
||||
@Schema(description = "父id")
|
||||
private String parentId;
|
||||
|
||||
/** 名称关键词 */
|
||||
@ApiModelProperty(value = "名称关键词")
|
||||
@Schema(description = "名称关键词")
|
||||
private String searchKey;
|
||||
}
|
||||
|
||||
@@ -12,12 +12,11 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.menu;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* 移动端菜单添加参数
|
||||
*
|
||||
@@ -29,56 +28,56 @@ import javax.validation.constraints.NotBlank;
|
||||
public class MobileMenuAddParam {
|
||||
|
||||
/** 父ID */
|
||||
@ApiModelProperty(value = "父ID", required = true, position = 1)
|
||||
@Schema(description = "父ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "parentId不能为空")
|
||||
private String parentId;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty(value = "名称", required = true, position = 2)
|
||||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "title不能为空")
|
||||
private String title;
|
||||
|
||||
/** 分类 */
|
||||
@ApiModelProperty(value = "分类", required = true, position = 3)
|
||||
@Schema(description = "分类", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "category不能为空")
|
||||
private String category;
|
||||
|
||||
/** 模块 */
|
||||
@ApiModelProperty(value = "模块", required = true, position = 4)
|
||||
@Schema(description = "模块", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "module不能为空")
|
||||
private String module;
|
||||
|
||||
/** 菜单类型 */
|
||||
@ApiModelProperty(value = "菜单类型", position = 5)
|
||||
@Schema(description = "菜单类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "menuType不能为空")
|
||||
private String menuType;
|
||||
|
||||
/** 路径 */
|
||||
@ApiModelProperty(value = "路径", position = 6)
|
||||
@Schema(description = "路径", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "path不能为空")
|
||||
private String path;
|
||||
|
||||
/** 图标 */
|
||||
@ApiModelProperty(value = "图标", required = true, position = 7)
|
||||
@Schema(description = "图标", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "icon不能为空")
|
||||
private String icon;
|
||||
|
||||
/** 颜色 */
|
||||
@ApiModelProperty(value = "颜色", required = true, position = 8)
|
||||
@Schema(description = "颜色", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "color不能为空")
|
||||
private String color;
|
||||
|
||||
/** 规则类型 */
|
||||
@ApiModelProperty(value = "规则类型", required = true, position = 9)
|
||||
@Schema(description = "规则类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "regType不能为空")
|
||||
private String regType;
|
||||
|
||||
/** 可用状态 */
|
||||
@ApiModelProperty(value = "可用状态", required = true, position = 10)
|
||||
@Schema(description = "可用状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "status不能为空")
|
||||
private String status;
|
||||
|
||||
/** 排序码 */
|
||||
@ApiModelProperty(value = "排序码", position = 11)
|
||||
@Schema(description = "排序码")
|
||||
private Integer sortCode;
|
||||
}
|
||||
|
||||
@@ -12,12 +12,11 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.menu;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* 移动端菜单更改所属模块参数
|
||||
*
|
||||
@@ -29,12 +28,12 @@ import javax.validation.constraints.NotBlank;
|
||||
public class MobileMenuChangeModuleParam {
|
||||
|
||||
/** id */
|
||||
@ApiModelProperty(value = "id", required = true)
|
||||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "id不能为空")
|
||||
private String id;
|
||||
|
||||
/** 模块 */
|
||||
@ApiModelProperty(value = "module", required = true)
|
||||
@Schema(description = "module", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "module不能为空")
|
||||
private String module;
|
||||
}
|
||||
|
||||
@@ -12,12 +12,11 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.menu;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* 移动端菜单编辑参数
|
||||
*
|
||||
@@ -29,61 +28,61 @@ import javax.validation.constraints.NotBlank;
|
||||
public class MobileMenuEditParam {
|
||||
|
||||
/** 主键 */
|
||||
@ApiModelProperty(value = "主键", required = true, position = 1)
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "id不能为空")
|
||||
private String id;
|
||||
|
||||
/** 父ID */
|
||||
@ApiModelProperty(value = "父ID", required = true, position = 2)
|
||||
@Schema(description = "父ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "parentId不能为空")
|
||||
private String parentId;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty(value = "名称", required = true, position = 3)
|
||||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "title不能为空")
|
||||
private String title;
|
||||
|
||||
/** 分类 */
|
||||
@ApiModelProperty(value = "分类", required = true, position = 4)
|
||||
@Schema(description = "分类", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "category不能为空")
|
||||
private String category;
|
||||
|
||||
/** 模块 */
|
||||
@ApiModelProperty(value = "模块", required = true, position = 5)
|
||||
@Schema(description = "模块", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "module不能为空")
|
||||
private String module;
|
||||
|
||||
/** 菜单类型 */
|
||||
@ApiModelProperty(value = "菜单类型", position = 6)
|
||||
@Schema(description = "菜单类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "menuType不能为空")
|
||||
private String menuType;
|
||||
|
||||
/** 路径 */
|
||||
@ApiModelProperty(value = "路径", position = 7)
|
||||
@Schema(description = "路径", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "path不能为空")
|
||||
private String path;
|
||||
|
||||
/** 图标 */
|
||||
@ApiModelProperty(value = "图标", required = true, position = 8)
|
||||
@Schema(description = "图标", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "icon不能为空")
|
||||
private String icon;
|
||||
|
||||
/** 颜色 */
|
||||
@ApiModelProperty(value = "颜色", required = true, position = 9)
|
||||
@Schema(description = "颜色", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "color不能为空")
|
||||
private String color;
|
||||
|
||||
/** 规则类型 */
|
||||
@ApiModelProperty(value = "规则类型", required = true, position = 10)
|
||||
@Schema(description = "规则类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "regType不能为空")
|
||||
private String regType;
|
||||
|
||||
/** 可用状态 */
|
||||
@ApiModelProperty(value = "可用状态", required = true, position = 11)
|
||||
@Schema(description = "可用状态", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "status不能为空")
|
||||
private String status;
|
||||
|
||||
/** 排序码 */
|
||||
@ApiModelProperty(value = "排序码", position = 12)
|
||||
@Schema(description = "排序码")
|
||||
private Integer sortCode;
|
||||
}
|
||||
|
||||
@@ -12,12 +12,11 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.menu;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* 移动端菜单Id参数
|
||||
*
|
||||
@@ -29,7 +28,7 @@ import javax.validation.constraints.NotBlank;
|
||||
public class MobileMenuIdParam {
|
||||
|
||||
/** 主键 */
|
||||
@ApiModelProperty(value = "主键", required = true)
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "id不能为空")
|
||||
private String id;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.menu;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@@ -27,6 +27,6 @@ import lombok.Setter;
|
||||
public class MobileMenuSelectorMenuParam {
|
||||
|
||||
/** 模块 */
|
||||
@ApiModelProperty(value = "模块")
|
||||
@Schema(description = "模块")
|
||||
private String module;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.menu;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@@ -27,6 +27,6 @@ import lombok.Setter;
|
||||
public class MobileMenuSelectorModuleParam {
|
||||
|
||||
/** 名称关键词 */
|
||||
@ApiModelProperty(value = "名称关键词")
|
||||
@Schema(description = "名称关键词")
|
||||
private String searchKey;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.menu;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@@ -27,11 +27,11 @@ import lombok.Setter;
|
||||
public class MobileMenuTreeParam {
|
||||
|
||||
/** 关键词 */
|
||||
@ApiModelProperty(value = "关键词")
|
||||
@Schema(description = "关键词")
|
||||
private String searchKey;
|
||||
|
||||
/** 模块 */
|
||||
@ApiModelProperty(value = "模块")
|
||||
@Schema(description = "模块")
|
||||
private String module;
|
||||
|
||||
}
|
||||
|
||||
@@ -12,13 +12,12 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.module;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 移动端模块添加参数
|
||||
*
|
||||
@@ -30,26 +29,26 @@ import javax.validation.constraints.NotNull;
|
||||
public class MobileModuleAddParam {
|
||||
|
||||
/** 标题 */
|
||||
@ApiModelProperty(value = "标题", required = true, position = 1)
|
||||
@Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "title不能为空")
|
||||
private String title;
|
||||
|
||||
/** 图标 */
|
||||
@ApiModelProperty(value = "图标", required = true, position = 2)
|
||||
@Schema(description = "图标", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "icon不能为空")
|
||||
private String icon;
|
||||
|
||||
/** 颜色 */
|
||||
@ApiModelProperty(value = "颜色", required = true, position = 3)
|
||||
@Schema(description = "颜色", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "color不能为空")
|
||||
private String color;
|
||||
|
||||
/** 排序码 */
|
||||
@ApiModelProperty(value = "排序码", required = true, position = 4)
|
||||
@Schema(description = "排序码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "sortCode不能为空")
|
||||
private Integer sortCode;
|
||||
|
||||
/** 扩展信息 */
|
||||
@ApiModelProperty(value = "扩展信息", position = 5)
|
||||
@Schema(description = "扩展信息")
|
||||
private String extJson;
|
||||
}
|
||||
|
||||
@@ -12,13 +12,12 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.module;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 移动端模块编辑参数
|
||||
*
|
||||
@@ -30,31 +29,31 @@ import javax.validation.constraints.NotNull;
|
||||
public class MobileModuleEditParam {
|
||||
|
||||
/** id */
|
||||
@ApiModelProperty(value = "id", required = true, position = 1)
|
||||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "id不能为空")
|
||||
private String id;
|
||||
|
||||
/** 标题 */
|
||||
@ApiModelProperty(value = "标题", required = true, position = 2)
|
||||
@Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "title不能为空")
|
||||
private String title;
|
||||
|
||||
/** 图标 */
|
||||
@ApiModelProperty(value = "图标", required = true, position = 3)
|
||||
@Schema(description = "图标", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "icon不能为空")
|
||||
private String icon;
|
||||
|
||||
/** 颜色 */
|
||||
@ApiModelProperty(value = "颜色", required = true, position = 4)
|
||||
@Schema(description = "颜色", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "color不能为空")
|
||||
private String color;
|
||||
|
||||
/** 排序码 */
|
||||
@ApiModelProperty(value = "排序码", required = true, position = 5)
|
||||
@Schema(description = "排序码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "sortCode不能为空")
|
||||
private Integer sortCode;
|
||||
|
||||
/** 扩展信息 */
|
||||
@ApiModelProperty(value = "扩展信息", position = 6)
|
||||
@Schema(description = "扩展信息")
|
||||
private String extJson;
|
||||
}
|
||||
|
||||
@@ -12,12 +12,11 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.module;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* 移动端模块Id参数
|
||||
*
|
||||
@@ -29,7 +28,7 @@ import javax.validation.constraints.NotBlank;
|
||||
public class MobileModuleIdParam {
|
||||
|
||||
/** id */
|
||||
@ApiModelProperty(value = "id", required = true)
|
||||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "id不能为空")
|
||||
private String id;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.param.module;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@@ -27,22 +27,22 @@ import lombok.Setter;
|
||||
public class MobileModulePageParam {
|
||||
|
||||
/** 当前页 */
|
||||
@ApiModelProperty(value = "当前页码")
|
||||
@Schema(description = "当前页码")
|
||||
private Integer current;
|
||||
|
||||
/** 每页条数 */
|
||||
@ApiModelProperty(value = "每页条数")
|
||||
@Schema(description = "每页条数")
|
||||
private Integer size;
|
||||
|
||||
/** 排序字段 */
|
||||
@ApiModelProperty(value = "排序字段,字段驼峰名称,如:userName")
|
||||
@Schema(description = "排序字段,字段驼峰名称,如:userName")
|
||||
private String sortField;
|
||||
|
||||
/** 排序方式 */
|
||||
@ApiModelProperty(value = "排序方式,升序:ASCEND;降序:DESCEND")
|
||||
@Schema(description = "排序方式,升序:ASCEND;降序:DESCEND")
|
||||
private String sortOrder;
|
||||
|
||||
/** 名称关键词 */
|
||||
@ApiModelProperty(value = "名称关键词")
|
||||
@Schema(description = "名称关键词")
|
||||
private String searchKey;
|
||||
}
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
*/
|
||||
package vip.xiaonuo.mobile.modular.resource.provider;
|
||||
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import vip.xiaonuo.mobile.api.MobileButtonApi;
|
||||
import vip.xiaonuo.mobile.modular.resource.entity.MobileButton;
|
||||
import vip.xiaonuo.mobile.modular.resource.service.MobileButtonService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ package vip.xiaonuo.mobile.modular.resource.provider;
|
||||
|
||||
import cn.hutool.core.lang.tree.Tree;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import vip.xiaonuo.mobile.api.MobileMenuApi;
|
||||
import vip.xiaonuo.mobile.modular.resource.service.MobileMenuService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package vip.xiaonuo.mobile.modular.resource.provider;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import vip.xiaonuo.mobile.api.MobileModuleApi;
|
||||
import vip.xiaonuo.mobile.modular.resource.service.MobileModuleService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,6 +20,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import vip.xiaonuo.common.enums.CommonSortOrderEnum;
|
||||
import vip.xiaonuo.common.exception.CommonException;
|
||||
@@ -36,7 +37,6 @@ import vip.xiaonuo.mobile.modular.resource.service.MobileButtonService;
|
||||
import vip.xiaonuo.mobile.modular.resource.service.MobileMenuService;
|
||||
import vip.xiaonuo.sys.api.SysRelationApi;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import vip.xiaonuo.common.exception.CommonException;
|
||||
@@ -37,7 +38,6 @@ import vip.xiaonuo.mobile.modular.resource.service.MobileMenuService;
|
||||
import vip.xiaonuo.mobile.modular.resource.service.MobileModuleService;
|
||||
import vip.xiaonuo.sys.api.SysRelationApi;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -24,6 +24,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import vip.xiaonuo.common.enums.CommonSortOrderEnum;
|
||||
import vip.xiaonuo.common.exception.CommonException;
|
||||
@@ -40,7 +41,6 @@ import vip.xiaonuo.mobile.modular.resource.service.MobileMenuService;
|
||||
import vip.xiaonuo.mobile.modular.resource.service.MobileModuleService;
|
||||
import vip.xiaonuo.sys.api.SysRelationApi;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |