From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期三, 16 十月 2024 15:59:38 +0800 Subject: [PATCH] 代码初始化 --- server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/Category.java | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/Category.java b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/Category.java index c5a601f..b2f5efa 100644 --- a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/Category.java +++ b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/Category.java @@ -1,6 +1,8 @@ package com.doumee.dao.business.model; +import com.baomidou.mybatisplus.annotation.TableField; import com.doumee.core.annotation.excel.ExcelColumn; +import com.doumee.core.model.LoginUserModel; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.baomidou.mybatisplus.annotation.IdType; @@ -9,6 +11,7 @@ import lombok.Data; import com.fasterxml.jackson.annotation.JsonFormat; import java.util.Date; +import java.util.List; /** * 鍒嗙被淇℃伅琛� @@ -18,7 +21,7 @@ @Data @ApiModel("鍒嗙被淇℃伅琛�") @TableName("`category`") -public class Category { +public class Category extends LoginUserModel { @TableId(type = IdType.AUTO) @ApiModelProperty(value = "涓婚敭") @@ -65,12 +68,17 @@ @ExcelColumn(name="鍥炬爣") private String imgurl; - @ApiModelProperty(value = "绫诲瀷 0鍏徃绫诲瀷") - @ExcelColumn(name="绫诲瀷 0鍏徃绫诲瀷") + @ApiModelProperty(value = "绫诲瀷 0鍏徃绫诲瀷 1杞﹁締绫诲瀷") + @ExcelColumn(name="绫诲瀷 0鍏徃绫诲瀷 1杞﹁締绫诲瀷") private Integer type; @ApiModelProperty(value = "鐖剁骇缂栫爜锛堣嚜鍏宠仈锛�") @ExcelColumn(name="鐖剁骇缂栫爜锛堣嚜鍏宠仈锛�") private Integer parentId; + @ApiModelProperty(value = "瀛愰泦鍒嗙被") + @TableField(exist = false) + private List<Category> childCategoryList; + + } -- Gitblit v1.9.3