wangzhibo
4 天以前 c19f1f7e21c93d1f13b4f44a8a615f65af577559
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 微信用户
 */
@Entity('user_wx')
export class UserWxEntity extends BaseEntity {
  @Index()
  @Column({ comment: '微信unionid', nullable: true })
  unionid: string;
 
  @Index()
  @Column({ comment: '微信openid' })
  openid: string;
 
  @Column({ comment: '头像', nullable: true })
  avatarUrl: string;
 
  @Column({ comment: '昵称', nullable: true })
  nickName: string;
 
  @Column({ comment: '性别 0-未知 1-男 2-女', default: 0 })
  gender: number;
 
  @Column({ comment: '语言', nullable: true })
  language: string;
 
  @Column({ comment: '城市', nullable: true })
  city: string;
 
  @Column({ comment: '省份', nullable: true })
  province: string;
 
  @Column({ comment: '国家', nullable: true })
  country: string;
 
  @Column({ comment: '类型 0-小程序 1-公众号 2-H5 3-APP', default: 0 })
  type: number;
}