zs hace 8 meses
padre
commit
e3a4032a04

+ 2 - 0
src/entity/platform/match.entity.ts

@@ -13,6 +13,8 @@ export class Match extends BaseModel {
   type: string;
   @Column({ type: 'character varying', nullable: true, comment: '组织单位' })
   work: string;
+  @Column({ type: 'character varying', nullable: true, comment: '地点' })
+  address: string;
   @Column({ type: 'character varying', nullable: true, comment: '所属产业' })
   industry: string;
   @Column({ type: 'character varying', nullable: true, comment: '类别' })

+ 2 - 0
src/entity/system/user.entity.ts

@@ -4,6 +4,8 @@ import * as bcrypt from 'bcryptjs';
 // 用户表
 @Entity('user')
 export class User extends BaseModel {
+  @Column({ type: 'character varying', comment: 'openid', nullable: true })
+  openid: string;
   @Column({ type: 'character varying', nullable: true, comment: '昵称' })
   nick_name: string;
   @Column({ type: 'character varying', comment: '账号', unique: true })

+ 5 - 0
src/interface/platform/match.interface.ts

@@ -22,6 +22,8 @@ export class FVO_match {
   'industry': string = undefined;
   @ApiProperty({ description: '类别' })
   'form': string = undefined;
+  @ApiProperty({ description: '地点' })
+  'address': string = undefined;
   @ApiProperty({ description: '开始时间' })
   'start_time': string = undefined;
   @ApiProperty({ description: '结束时间' })
@@ -96,6 +98,9 @@ export class CDTO_match {
   @ApiProperty({ description: '类别' })
   @Rule(RuleType['string']().empty(''))
   'form': string = undefined;
+  @ApiProperty({ description: '地点' })
+  @Rule(RuleType['string']().empty(''))
+  'address': string = undefined;
   @ApiProperty({ description: '开始时间' })
   @Rule(RuleType['string']().empty(''))
   'start_time': string = undefined;

+ 7 - 0
src/interface/system/user.interface.ts

@@ -9,6 +9,8 @@ export class FVO_user {
   id: number = undefined;
   @ApiProperty({ description: '账号' })
   'account': string = undefined;
+  @ApiProperty({ description: 'openid' })
+  'openid': string = undefined;
   @ApiProperty({ description: '密码' })
   'password': string = undefined;
   @ApiProperty({ description: '所属产业' })
@@ -32,6 +34,8 @@ export class FVO_user {
 export class QDTO_user {
   @ApiProperty({ description: '账号' })
   'account': string = undefined;
+  @ApiProperty({ description: 'openid' })
+  'openid': string = undefined;
   @ApiProperty({ description: '昵称' })
   'nick_name': string = undefined;
   @ApiProperty({ description: '所属产业' })
@@ -52,6 +56,9 @@ export class QVO_user extends FVO_user {
 }
 
 export class CDTO_user {
+  @ApiProperty({ description: 'openid' })
+  @Rule(RuleType['string']().empty(''))
+  'openid': string = undefined;
   @ApiProperty({ description: '账号' })
   @Rule(RuleType['string']().empty(''))
   'account': string = undefined;