| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import 'package:chicken_farm/modes/user/org_model.dart';
- import 'package:chicken_farm/modes/user/role_model.dart';
- import 'package:json_annotation/json_annotation.dart';
- part 'user_model.g.dart';
- @JsonSerializable()
- class UserModel {
- int? userId;
- String? tenantId;
- int? orgId;
- String? userName;
- String? nickName;
- String? userType;
- String? email;
- String? phonenumber;
- String? sex;
- String? avatar;
- String? status;
- String? leaderName;
- String? loginIp;
- String? loginDate;
- String? remark;
- String? createTime;
- OrgModel? org;
- String? orgName;
- List<RoleModel>? roles;
- List<int>? roleIds;
- List<int>? postIds;
- UserModel({
- this.userId,
- this.tenantId,
- this.orgId,
- this.userName,
- this.nickName,
- this.userType,
- this.email,
- this.phonenumber,
- this.sex,
- this.avatar,
- this.status,
- this.leaderName,
- this.loginIp,
- this.loginDate,
- this.remark,
- this.createTime,
- this.org,
- this.orgName,
- this.roles,
- this.roleIds,
- this.postIds,
- });
- factory UserModel.fromJson(Map<String, dynamic> json) =>
- _$UserModelFromJson(json);
- Map<String, dynamic> toJson() => _$UserModelToJson(this);
- }
|