1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| import { BaseEntity } from '@cool-midway/core';
| import { Column, Entity } from 'typeorm';
|
| /**
| * 轮播图
| */
| @Entity('info_banner')
| export class InfoBannerEntity extends BaseEntity {
| @Column({ comment: '描述', nullable: true })
| description: string;
|
| @Column({ comment: '跳转路径', nullable: true })
| path: string;
|
| @Column({ comment: '图片' })
| pic: string;
|
| @Column({ comment: '排序', default: 0, nullable: true })
| sortNum: number;
|
| @Column({ comment: '状态 1:启用 2:禁用', default: 1 })
| status: number;
| }
|
|