mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 00:15:06 +08:00
✨ MALL:清理多余的 decorate 类
This commit is contained in:
@ -1,61 +0,0 @@
|
||||
package cn.iocoder.yudao.module.promotion.enums.decorate;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 页面组件枚举
|
||||
*
|
||||
* @author jason
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
@SuppressWarnings("JavadocLinkAsPlainText")
|
||||
public enum DecorateComponentEnum {
|
||||
|
||||
/**
|
||||
* 格式:[{
|
||||
* "name": "标题"
|
||||
* "picUrl": "https://www.iocoder.cn/xxx.png",
|
||||
* "url": "/pages/users/index"
|
||||
* }]
|
||||
*
|
||||
* 最多 10 个
|
||||
*/
|
||||
MENU("menu", "菜单"),
|
||||
/**
|
||||
* 格式:[{
|
||||
* "name": "标题"
|
||||
* "url": "/pages/users/index"
|
||||
* }]
|
||||
*/
|
||||
ROLLING_NEWS("scrolling-news", "滚动新闻"),
|
||||
/**
|
||||
* 格式:[{
|
||||
* "picUrl": "https://www.iocoder.cn/xxx.png",
|
||||
* "url": "/pages/users/index"
|
||||
* }]
|
||||
*/
|
||||
SLIDE_SHOW("slide-show", "轮播图"),
|
||||
/**
|
||||
* 格式:[{
|
||||
* "name": "标题"
|
||||
* "type": "类型", // best、hot、new、benefit、good
|
||||
* "tag": "标签" // 例如说:多买多省
|
||||
* }]
|
||||
*
|
||||
* 最多 4 个
|
||||
*/
|
||||
PRODUCT_RECOMMEND("product-recommend", "商品推荐");
|
||||
|
||||
/**
|
||||
* 页面组件代码
|
||||
*/
|
||||
private final String code;
|
||||
|
||||
/**
|
||||
* 页面组件说明
|
||||
*/
|
||||
private final String desc;
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package cn.iocoder.yudao.module.promotion.enums.decorate;
|
||||
package cn.iocoder.yudao.module.promotion.enums.diy;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
|
||||
import lombok.AllArgsConstructor;
|
||||
@ -13,13 +13,13 @@ import java.util.Arrays;
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum DecoratePageEnum implements IntArrayValuable {
|
||||
public enum DiyPageEnum implements IntArrayValuable {
|
||||
|
||||
INDEX(1, "首页"),
|
||||
MY(2, "我的"),
|
||||
;
|
||||
|
||||
private static final int[] ARRAYS = Arrays.stream(values()).mapToInt(DecoratePageEnum::getPage).toArray();
|
||||
private static final int[] ARRAYS = Arrays.stream(values()).mapToInt(DiyPageEnum::getPage).toArray();
|
||||
|
||||
/**
|
||||
* 页面编号
|
Reference in New Issue
Block a user