ソースを参照

新增赛事和报名的字段

zs 7 ヶ月 前
コミット
45c97bd0c5

+ 2 - 1
src/controller/platform/sign.controller.ts

@@ -46,8 +46,9 @@ export class SignController implements BaseController {
   @ApiTags('创建数据')
   @Validate()
   @ApiResponse({ type: CVO_sign })
-  async create(@Body() data: object) {
+  async create(@Body() data: any) {
     await this.service.createExamine(data);
+    if (data.type && data.type === '0') data.status = '1';
     const dbData = await this.service.create(data);
     const result = new CVO_sign(dbData);
     return result;

+ 3 - 1
src/entity/platform/match.entity.ts

@@ -35,6 +35,8 @@ export class Match extends BaseModel {
   rules: object;
   @Column({ type: 'text', nullable: true, comment: '简介' })
   brief: string;
+  @Column({ type: 'text', nullable: true, comment: '备注' })
+  remark: string;
   @Column({ type: 'jsonb', nullable: true, comment: '封面', default: [] })
   file: Array<any>;
   @Column({ type: 'jsonb', nullable: true, comment: '视频', default: [] })
@@ -43,7 +45,7 @@ export class Match extends BaseModel {
   match_status: string;
   @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
   is_use: string;
-  @Column({ type: 'character varying', nullable: true, comment: '是否在首页显示', default: '1' })
+  @Column({ type: 'character varying', nullable: true, comment: '是否公开路演人信息', default: '1' })
   is_show: string;
   @Column({ type: 'integer', nullable: true, comment: '显示顺序' })
   order_num: number;

+ 10 - 0
src/entity/platform/sign.entity.ts

@@ -9,6 +9,16 @@ export class Sign extends BaseModel {
   match: number;
   @Column({ type: 'character varying', nullable: true, comment: '姓名' })
   name: string;
+  @Column({ type: 'character varying', nullable: true, comment: '类型', default: '0' })
+  type: string;
+  @Column({ type: 'character varying', nullable: true, comment: '公司' })
+  company: string;
+  @Column({ type: 'character varying', nullable: true, comment: '项目名称' })
+  project_name: string;
+  @Column({ type: 'character varying', nullable: true, comment: '项目介绍' })
+  project_brief: string;
+  @Column({ type: 'jsonb', nullable: true, comment: '项目附件', default: [] })
+  project_file: string;
   @Column({ type: 'character varying', nullable: true, comment: '电话号' })
   phone: string;
   @Column({ type: 'character varying', nullable: true, comment: '证件类型' })

+ 8 - 3
src/interface/platform/match.interface.ts

@@ -40,6 +40,8 @@ export class FVO_match {
   'rules': object = undefined;
   @ApiProperty({ description: '简介' })
   'brief': string = undefined;
+  @ApiProperty({ description: '备注' })
+  'remark': string = undefined;
   @ApiProperty({ description: '封面' })
   'file': Array<any> = undefined;
   @ApiProperty({ description: '视频' })
@@ -48,7 +50,7 @@ export class FVO_match {
   'match_status': string = undefined;
   @ApiProperty({ description: '是否公开' })
   'is_use': string = undefined;
-  @ApiProperty({ description: '是否在首页显示' })
+  @ApiProperty({ description: '是否公开路演人信息' })
   'is_show': string = undefined;
   @ApiProperty({ description: '显示顺序' })
   'order_num': number = undefined;
@@ -83,7 +85,7 @@ export class QDTO_match extends SearchBase {
   'match_status': string = undefined;
   @ApiProperty({ description: '是否公开' })
   'is_use': string = undefined;
-  @ApiProperty({ description: '是否在首页显示' })
+  @ApiProperty({ description: '是否公开路演人信息' })
   'is_show': string = undefined;
   @ApiProperty({ description: '显示顺序' })
   'order_num': number = undefined;
@@ -147,6 +149,9 @@ export class CDTO_match {
   @ApiProperty({ description: '简介' })
   @Rule(RuleType['string']().empty(''))
   'brief': string = undefined;
+  @ApiProperty({ description: '备注' })
+  @Rule(RuleType['string']().empty(''))
+  'remark': string = undefined;
   @ApiProperty({ description: '封面' })
   @Rule(RuleType['array']().empty(''))
   'file': Array<any> = undefined;
@@ -159,7 +164,7 @@ export class CDTO_match {
   @ApiProperty({ description: '是否公开' })
   @Rule(RuleType['string']().empty(''))
   'is_use': string = undefined;
-  @ApiProperty({ description: '是否在首页显示' })
+  @ApiProperty({ description: '是否公开路演人信息' })
   @Rule(RuleType['string']().empty(''))
   'is_show': string = undefined;
   @ApiProperty({ description: '显示顺序' })

+ 25 - 0
src/interface/platform/sign.interface.ts

@@ -14,6 +14,16 @@ export class FVO_sign {
   'match': number = undefined;
   @ApiProperty({ description: '姓名' })
   'name': string = undefined;
+  @ApiProperty({ description: '类型' })
+  'type': string = undefined;
+  @ApiProperty({ description: '公司' })
+  'company': string = undefined;
+  @ApiProperty({ description: '项目名称' })
+  'project_name': string = undefined;
+  @ApiProperty({ description: '项目介绍' })
+  'project_brief': string = undefined;
+  @ApiProperty({ description: '项目附件' })
+  'project_file': Array<any> = undefined;
   @ApiProperty({ description: '电话号' })
   'phone': string = undefined;
   @ApiProperty({ description: '证件类型' })
@@ -69,6 +79,21 @@ export class CDTO_sign {
   @ApiProperty({ description: '电话号' })
   @Rule(RuleType['string']().empty(''))
   'phone': string = undefined;
+  @ApiProperty({ description: '类型' })
+  @Rule(RuleType['string']().empty(''))
+  'type': string = undefined;
+  @ApiProperty({ description: '公司' })
+  @Rule(RuleType['string']().empty(''))
+  'company': string = undefined;
+  @ApiProperty({ description: '项目名称' })
+  @Rule(RuleType['string']().empty(''))
+  'project_name': string = undefined;
+  @ApiProperty({ description: '项目简介' })
+  @Rule(RuleType['string']().empty(''))
+  'project_brief': string = undefined;
+  @ApiProperty({ description: '项目附件' })
+  @Rule(RuleType['array']().empty(''))
+  'project_file': Array<any> = undefined;
   @ApiProperty({ description: '证件类型' })
   @Rule(RuleType['string']().empty(''))
   'cardType': string = undefined;