123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646 |
- import 'liveConsultation.m.dart';
- import 'notification.m.dart';
- import 'vitalResidence.m.dart';
- import 'device.m.dart';
- import 'vitalUserFeature.m.dart';
- class CreateUserRequest extends TokenRequest{
- String? code;
- String? userName;
- String? phone;
- String? cardNo;
- String? realName;
- String? headImageToken;
- String? organizationCode;
- String? teamCode;
- String? roleCode;
- String? secretPassword;
- String? rankName;
- String? signature;
- CreateUserRequest({
- this.code,
- this.userName,
- this.phone,
- this.cardNo,
- this.realName,
- this.headImageToken,
- this.organizationCode,
- this.teamCode,
- this.roleCode,
- this.secretPassword,
- this.rankName,
- this.signature,
- String? token,
- }) : super(
- token: token,
- );
- factory CreateUserRequest.fromJson(Map<String, dynamic> map) {
- return CreateUserRequest(
- code: map['Code'],
- userName: map['UserName'],
- phone: map['Phone'],
- cardNo: map['CardNo'],
- realName: map['RealName'],
- headImageToken: map['HeadImageToken'],
- organizationCode: map['OrganizationCode'],
- teamCode: map['TeamCode'],
- roleCode: map['RoleCode'],
- secretPassword: map['SecretPassword'],
- rankName: map['RankName'],
- signature: map['Signature'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (code != null)
- map['Code'] = code;
- if (userName != null)
- map['UserName'] = userName;
- if (phone != null)
- map['Phone'] = phone;
- if (cardNo != null)
- map['CardNo'] = cardNo;
- if (realName != null)
- map['RealName'] = realName;
- if (headImageToken != null)
- map['HeadImageToken'] = headImageToken;
- if (organizationCode != null)
- map['OrganizationCode'] = organizationCode;
- if (teamCode != null)
- map['TeamCode'] = teamCode;
- if (roleCode != null)
- map['RoleCode'] = roleCode;
- if (secretPassword != null)
- map['SecretPassword'] = secretPassword;
- if (rankName != null)
- map['RankName'] = rankName;
- if (signature != null)
- map['Signature'] = signature;
- return map;
- }
- }
- class UserDTO2 extends BaseDTO{
- String? code;
- String? userName;
- String? phone;
- String? cardNo;
- String? realName;
- String? headImageToken;
- String? organizationCode;
- String? organizationName;
- String? organizationPhone;
- String? teamCode;
- String? teamName;
- String? roleCode;
- String? roleName;
- String? rankName;
- List<ResidenceDTO>? residence;
- String? principalCode;
- String? principalName;
- String? principalPhone;
- String? provinceCode;
- String? cityCode;
- String? districtCode;
- String? signature;
- UserDTO2({
- this.code,
- this.userName,
- this.phone,
- this.cardNo,
- this.realName,
- this.headImageToken,
- this.organizationCode,
- this.organizationName,
- this.organizationPhone,
- this.teamCode,
- this.teamName,
- this.roleCode,
- this.roleName,
- this.rankName,
- this.residence,
- this.principalCode,
- this.principalName,
- this.principalPhone,
- this.provinceCode,
- this.cityCode,
- this.districtCode,
- this.signature,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory UserDTO2.fromJson(Map<String, dynamic> map) {
- return UserDTO2(
- code: map['Code'],
- userName: map['UserName'],
- phone: map['Phone'],
- cardNo: map['CardNo'],
- realName: map['RealName'],
- headImageToken: map['HeadImageToken'],
- organizationCode: map['OrganizationCode'],
- organizationName: map['OrganizationName'],
- organizationPhone: map['OrganizationPhone'],
- teamCode: map['TeamCode'],
- teamName: map['TeamName'],
- roleCode: map['RoleCode'],
- roleName: map['RoleName'],
- rankName: map['RankName'],
- residence: map['Residence'] != null ? (map['Residence'] as List).map((e)=>ResidenceDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- principalCode: map['PrincipalCode'],
- principalName: map['PrincipalName'],
- principalPhone: map['PrincipalPhone'],
- provinceCode: map['ProvinceCode'],
- cityCode: map['CityCode'],
- districtCode: map['DistrictCode'],
- signature: map['Signature'],
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (code != null)
- map['Code'] = code;
- if (userName != null)
- map['UserName'] = userName;
- if (phone != null)
- map['Phone'] = phone;
- if (cardNo != null)
- map['CardNo'] = cardNo;
- if (realName != null)
- map['RealName'] = realName;
- if (headImageToken != null)
- map['HeadImageToken'] = headImageToken;
- if (organizationCode != null)
- map['OrganizationCode'] = organizationCode;
- if (organizationName != null)
- map['OrganizationName'] = organizationName;
- if (organizationPhone != null)
- map['OrganizationPhone'] = organizationPhone;
- if (teamCode != null)
- map['TeamCode'] = teamCode;
- if (teamName != null)
- map['TeamName'] = teamName;
- if (roleCode != null)
- map['RoleCode'] = roleCode;
- if (roleName != null)
- map['RoleName'] = roleName;
- if (rankName != null)
- map['RankName'] = rankName;
- if (residence != null)
- map['Residence'] = residence;
- if (principalCode != null)
- map['PrincipalCode'] = principalCode;
- if (principalName != null)
- map['PrincipalName'] = principalName;
- if (principalPhone != null)
- map['PrincipalPhone'] = principalPhone;
- if (provinceCode != null)
- map['ProvinceCode'] = provinceCode;
- if (cityCode != null)
- map['CityCode'] = cityCode;
- if (districtCode != null)
- map['DistrictCode'] = districtCode;
- if (signature != null)
- map['Signature'] = signature;
- return map;
- }
- }
- class GetUserRequest extends TokenRequest{
- String? code;
- GetUserRequest({
- this.code,
- String? token,
- }) : super(
- token: token,
- );
- factory GetUserRequest.fromJson(Map<String, dynamic> map) {
- return GetUserRequest(
- code: map['Code'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (code != null)
- map['Code'] = code;
- return map;
- }
- }
- class GetUserByKeyRequest extends TokenRequest{
- String? key;
- String? value;
- GetUserByKeyRequest({
- this.key,
- this.value,
- String? token,
- }) : super(
- token: token,
- );
- factory GetUserByKeyRequest.fromJson(Map<String, dynamic> map) {
- return GetUserByKeyRequest(
- key: map['Key'],
- value: map['Value'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (key != null)
- map['Key'] = key;
- if (value != null)
- map['Value'] = value;
- return map;
- }
- }
- class UserPageRequest extends PageRequest{
- UserPageRequest({
- int pageIndex = 0,
- int pageSize = 0,
- String? token,
- }) : super(
- pageIndex: pageIndex,
- pageSize: pageSize,
- token: token,
- );
- factory UserPageRequest.fromJson(Map<String, dynamic> map) {
- return UserPageRequest(
- pageIndex: map['PageIndex'],
- pageSize: map['PageSize'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- return map;
- }
- }
- class RemoveUserRequest extends TokenRequest{
- String? code;
- RemoveUserRequest({
- this.code,
- String? token,
- }) : super(
- token: token,
- );
- factory RemoveUserRequest.fromJson(Map<String, dynamic> map) {
- return RemoveUserRequest(
- code: map['Code'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (code != null)
- map['Code'] = code;
- return map;
- }
- }
- class GetUserListRequest2 extends TokenRequest{
- List<String>? codes;
- GetUserListRequest2({
- this.codes,
- String? token,
- }) : super(
- token: token,
- );
- factory GetUserListRequest2.fromJson(Map<String, dynamic> map) {
- return GetUserListRequest2(
- codes: map['Codes']?.cast<String>().toList(),
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (codes != null)
- map['Codes'] = codes;
- return map;
- }
- }
- class UpdateUserRequest extends TokenRequest{
- String? code;
- String? phone;
- String? cardNo;
- String? realName;
- String? headImageToken;
- String? organizationCode;
- String? teamCode;
- String? roleCode;
- String? rankName;
- String? signature;
- UpdateUserRequest({
- this.code,
- this.phone,
- this.cardNo,
- this.realName,
- this.headImageToken,
- this.organizationCode,
- this.teamCode,
- this.roleCode,
- this.rankName,
- this.signature,
- String? token,
- }) : super(
- token: token,
- );
- factory UpdateUserRequest.fromJson(Map<String, dynamic> map) {
- return UpdateUserRequest(
- code: map['Code'],
- phone: map['Phone'],
- cardNo: map['CardNo'],
- realName: map['RealName'],
- headImageToken: map['HeadImageToken'],
- organizationCode: map['OrganizationCode'],
- teamCode: map['TeamCode'],
- roleCode: map['RoleCode'],
- rankName: map['RankName'],
- signature: map['Signature'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (code != null)
- map['Code'] = code;
- if (phone != null)
- map['Phone'] = phone;
- if (cardNo != null)
- map['CardNo'] = cardNo;
- if (realName != null)
- map['RealName'] = realName;
- if (headImageToken != null)
- map['HeadImageToken'] = headImageToken;
- if (organizationCode != null)
- map['OrganizationCode'] = organizationCode;
- if (teamCode != null)
- map['TeamCode'] = teamCode;
- if (roleCode != null)
- map['RoleCode'] = roleCode;
- if (rankName != null)
- map['RankName'] = rankName;
- if (signature != null)
- map['Signature'] = signature;
- return map;
- }
- }
- class ResetUserNameRequest extends TokenRequest{
- String? code;
- String? userName;
- ResetUserNameRequest({
- this.code,
- this.userName,
- String? token,
- }) : super(
- token: token,
- );
- factory ResetUserNameRequest.fromJson(Map<String, dynamic> map) {
- return ResetUserNameRequest(
- code: map['Code'],
- userName: map['UserName'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (code != null)
- map['Code'] = code;
- if (userName != null)
- map['UserName'] = userName;
- return map;
- }
- }
- class GetUserPageByOrganizationCodeRequest extends PageRequest{
- String? organizationCode;
- GetUserPageByOrganizationCodeRequest({
- this.organizationCode,
- int pageIndex = 0,
- int pageSize = 0,
- String? token,
- }) : super(
- pageIndex: pageIndex,
- pageSize: pageSize,
- token: token,
- );
- factory GetUserPageByOrganizationCodeRequest.fromJson(Map<String, dynamic> map) {
- return GetUserPageByOrganizationCodeRequest(
- organizationCode: map['OrganizationCode'],
- pageIndex: map['PageIndex'],
- pageSize: map['PageSize'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (organizationCode != null)
- map['OrganizationCode'] = organizationCode;
- return map;
- }
- }
- class SetAreaOfResponsibilityRequest extends TokenRequest{
- String? code;
- List<String>? residenceCodes;
- SetAreaOfResponsibilityRequest({
- this.code,
- this.residenceCodes,
- String? token,
- }) : super(
- token: token,
- );
- factory SetAreaOfResponsibilityRequest.fromJson(Map<String, dynamic> map) {
- return SetAreaOfResponsibilityRequest(
- code: map['Code'],
- residenceCodes: map['ResidenceCodes']?.cast<String>().toList(),
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (code != null)
- map['Code'] = code;
- if (residenceCodes != null)
- map['ResidenceCodes'] = residenceCodes;
- return map;
- }
- }
- class GetAreaOfResponsibilityRequest extends TokenRequest{
- String? code;
- GetAreaOfResponsibilityRequest({
- this.code,
- String? token,
- }) : super(
- token: token,
- );
- factory GetAreaOfResponsibilityRequest.fromJson(Map<String, dynamic> map) {
- return GetAreaOfResponsibilityRequest(
- code: map['Code'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (code != null)
- map['Code'] = code;
- return map;
- }
- }
- class GetUserPageByTeamCodeRequest extends PageRequest{
- String? teamCode;
- GetUserPageByTeamCodeRequest({
- this.teamCode,
- int pageIndex = 0,
- int pageSize = 0,
- String? token,
- }) : super(
- pageIndex: pageIndex,
- pageSize: pageSize,
- token: token,
- );
- factory GetUserPageByTeamCodeRequest.fromJson(Map<String, dynamic> map) {
- return GetUserPageByTeamCodeRequest(
- teamCode: map['TeamCode'],
- pageIndex: map['PageIndex'],
- pageSize: map['PageSize'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (teamCode != null)
- map['TeamCode'] = teamCode;
- return map;
- }
- }
- class SetSignatureRequest extends TokenRequest{
- String? code;
- String? signature;
- SetSignatureRequest({
- this.code,
- this.signature,
- String? token,
- }) : super(
- token: token,
- );
- factory SetSignatureRequest.fromJson(Map<String, dynamic> map) {
- return SetSignatureRequest(
- code: map['Code'],
- signature: map['Signature'],
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (code != null)
- map['Code'] = code;
- if (signature != null)
- map['Signature'] = signature;
- return map;
- }
- }
- class GetMenuPermissionRequest extends TokenRequest{
- ApplicationTypeEnum appType;
- GetMenuPermissionRequest({
- this.appType = ApplicationTypeEnum.Web,
- String? token,
- }) : super(
- token: token,
- );
- factory GetMenuPermissionRequest.fromJson(Map<String, dynamic> map) {
- return GetMenuPermissionRequest(
- appType: ApplicationTypeEnum.values.firstWhere((e) => e.index == map['AppType']),
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- map['AppType'] = appType.index;
- return map;
- }
- }
- class GetOperationPermissionRequest extends TokenRequest{
- ApplicationTypeEnum appType;
- GetOperationPermissionRequest({
- this.appType = ApplicationTypeEnum.Web,
- String? token,
- }) : super(
- token: token,
- );
- factory GetOperationPermissionRequest.fromJson(Map<String, dynamic> map) {
- return GetOperationPermissionRequest(
- appType: ApplicationTypeEnum.values.firstWhere((e) => e.index == map['AppType']),
- token: map['Token'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- map['AppType'] = appType.index;
- return map;
- }
- }
|