feat: 新增书籍及书籍分类管理模块(entity/controller/service)

This commit is contained in:
Jony
2026-07-02 23:53:10 +08:00
parent 893b5316f3
commit f0fff0b113
6 changed files with 280 additions and 0 deletions
@@ -0,0 +1,18 @@
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
@Entity('knowledge_book_category')
export class KnowledgeBookCategoryEntity extends BaseEntity {
@Index()
@Column({ comment: '分类名称', length: 100 })
name: string;
@Column({ comment: '排序', default: 0 })
sort: number;
@Column({ comment: '状态', dict: ['禁用', '启用'], default: 1 })
status: number;
@Column({ comment: '备注', nullable: true })
remark: string;
}