feat(emergency): 急救宣教资源管理v3 - 审批上架分离、分类标签树形重构
- approve()不再自动发布,需单独调用publish()上架 - publish()增加auditStatus=11前置校验 - batchPublish()跳过未审核通过的资源 - 分类管理支持树形结构(listRoot/listChildren/listAll) - listAll返回分类+tags嵌套树 - listChildren返回子分类+标签 - 标签parentId改为必填 - 分类删除校验标签存在 - 分页列表填充resourceCount - 审核记录按审核时间排序 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+6
@@ -1,6 +1,7 @@
|
||||
package com.renkang.emergency.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@@ -100,4 +101,9 @@ public class FirstAidResourceCategory implements Serializable {
|
||||
@TableField(exist = false)
|
||||
@Schema(title = "关联资源数量")
|
||||
private Integer resourceCount;
|
||||
|
||||
/** 分类下的标签列表(非持久字段,仅 listWithTags 接口填充) */
|
||||
@TableField(exist = false)
|
||||
@Schema(title = "分类下的标签列表")
|
||||
private List<FirstAidResourceCategory> tags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user