Generator Changes at 9/28/2025 12:46:16 AM
This commit is contained in:
961
docs/model.ndm2
961
docs/model.ndm2
@@ -120,101 +120,6 @@
|
|||||||
"dataCompressions": []
|
"dataCompressions": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"objectType": "Table_MSSQL",
|
|
||||||
"name": "GetUserRequest",
|
|
||||||
"comment": "ورودی واکشی یک کاربر",
|
|
||||||
"owner": "",
|
|
||||||
"isChangeTracking": false,
|
|
||||||
"isTrackColumnsUpdated": false,
|
|
||||||
"oldName": "",
|
|
||||||
"isSystemTable": false,
|
|
||||||
"createTime": "",
|
|
||||||
"modifyTime": "",
|
|
||||||
"objectID": 9955,
|
|
||||||
"numberOfRows": 0,
|
|
||||||
"identityCurrent": 0,
|
|
||||||
"dataLength": 0,
|
|
||||||
"indexLength": 0,
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"objectType": "TableField_MSSQL",
|
|
||||||
"name": "Id",
|
|
||||||
"type": "bigint",
|
|
||||||
"size": -2147483648,
|
|
||||||
"isNullable": "No",
|
|
||||||
"scale": -2147483648,
|
|
||||||
"comment": "شناسه",
|
|
||||||
"computedExpression": "",
|
|
||||||
"defaultValue": "",
|
|
||||||
"defaultValueType": "Others",
|
|
||||||
"schema": "",
|
|
||||||
"userDefinedType": "",
|
|
||||||
"collate": "",
|
|
||||||
"isWithValues": false,
|
|
||||||
"isFilestream": false,
|
|
||||||
"isColumnSet": false,
|
|
||||||
"isPersisted": false,
|
|
||||||
"isSparse": false,
|
|
||||||
"isRowGUIDColumn": false,
|
|
||||||
"oldName": "Id",
|
|
||||||
"computedBaseType": "",
|
|
||||||
"isDefaultConstraint": false,
|
|
||||||
"defaultConstraint": "",
|
|
||||||
"isIdentity": true,
|
|
||||||
"isExistingField": false,
|
|
||||||
"identitySeed": -2147483648,
|
|
||||||
"identityIncrement": -2147483648,
|
|
||||||
"identityIsNotForReplication": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"indexes": [],
|
|
||||||
"primaryKey": {
|
|
||||||
"objectType": "PrimaryKey_MSSQL",
|
|
||||||
"name": "_copy_25",
|
|
||||||
"fields": [
|
|
||||||
"Id"
|
|
||||||
],
|
|
||||||
"fillFactor": 0,
|
|
||||||
"oldName": "",
|
|
||||||
"isClustered": false,
|
|
||||||
"isPadded": false,
|
|
||||||
"noRecomputeStatistics": false,
|
|
||||||
"ignoreDuplicatedKeyValues": false,
|
|
||||||
"allowRowLocks": false,
|
|
||||||
"allowPageLocks": false,
|
|
||||||
"storage": {
|
|
||||||
"objectType": "Storage_MSSQL",
|
|
||||||
"name": "",
|
|
||||||
"oldName": "",
|
|
||||||
"storageType": "Default",
|
|
||||||
"filegroup": "",
|
|
||||||
"textImageFilegroup": "",
|
|
||||||
"filestreamFilegroup": "",
|
|
||||||
"partitionScheme": "",
|
|
||||||
"partitionColumn": "",
|
|
||||||
"filestreamPartitionScheme": "",
|
|
||||||
"dataCompressions": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"foreignKeys": [],
|
|
||||||
"uniques": [],
|
|
||||||
"checks": [],
|
|
||||||
"triggers": [],
|
|
||||||
"storage": {
|
|
||||||
"objectType": "Storage_MSSQL",
|
|
||||||
"name": "",
|
|
||||||
"oldName": "",
|
|
||||||
"storageType": "Default",
|
|
||||||
"filegroup": "",
|
|
||||||
"textImageFilegroup": "",
|
|
||||||
"filestreamFilegroup": "",
|
|
||||||
"partitionScheme": "",
|
|
||||||
"partitionColumn": "",
|
|
||||||
"filestreamPartitionScheme": "",
|
|
||||||
"dataCompressions": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"objectType": "Table_MSSQL",
|
"objectType": "Table_MSSQL",
|
||||||
"name": "GetAllUserByFilterRequest",
|
"name": "GetAllUserByFilterRequest",
|
||||||
@@ -5919,424 +5824,6 @@
|
|||||||
"dataCompressions": []
|
"dataCompressions": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"objectType": "Table_MSSQL",
|
|
||||||
"name": "UserService",
|
|
||||||
"comment": "سرویس های کاربر",
|
|
||||||
"owner": "",
|
|
||||||
"isChangeTracking": false,
|
|
||||||
"isTrackColumnsUpdated": false,
|
|
||||||
"oldName": "UserService",
|
|
||||||
"isSystemTable": false,
|
|
||||||
"createTime": "",
|
|
||||||
"modifyTime": "",
|
|
||||||
"objectID": 4423,
|
|
||||||
"numberOfRows": 0,
|
|
||||||
"identityCurrent": 0,
|
|
||||||
"dataLength": 0,
|
|
||||||
"indexLength": 0,
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"objectType": "TableField_MSSQL",
|
|
||||||
"name": "UpdateUser",
|
|
||||||
"type": "UpdateCommand",
|
|
||||||
"size": -2147483648,
|
|
||||||
"isNullable": "Yes",
|
|
||||||
"scale": -2147483648,
|
|
||||||
"comment": "ویرایش کاربر",
|
|
||||||
"computedExpression": "",
|
|
||||||
"defaultValue": "",
|
|
||||||
"defaultValueType": "Others",
|
|
||||||
"schema": "",
|
|
||||||
"userDefinedType": "",
|
|
||||||
"collate": "",
|
|
||||||
"isWithValues": false,
|
|
||||||
"isFilestream": false,
|
|
||||||
"isColumnSet": false,
|
|
||||||
"isPersisted": false,
|
|
||||||
"isSparse": false,
|
|
||||||
"isRowGUIDColumn": false,
|
|
||||||
"oldName": "UpdateUser",
|
|
||||||
"computedBaseType": "",
|
|
||||||
"isDefaultConstraint": false,
|
|
||||||
"defaultConstraint": "",
|
|
||||||
"isIdentity": false,
|
|
||||||
"isExistingField": false,
|
|
||||||
"identitySeed": 0,
|
|
||||||
"identityIncrement": 0,
|
|
||||||
"identityIsNotForReplication": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "TableField_MSSQL",
|
|
||||||
"name": "DeleteUser",
|
|
||||||
"type": "DeleteCommand",
|
|
||||||
"size": -2147483648,
|
|
||||||
"isNullable": "Yes",
|
|
||||||
"scale": -2147483648,
|
|
||||||
"comment": "حذف کاربر",
|
|
||||||
"computedExpression": "",
|
|
||||||
"defaultValue": "",
|
|
||||||
"defaultValueType": "Others",
|
|
||||||
"schema": "",
|
|
||||||
"userDefinedType": "",
|
|
||||||
"collate": "",
|
|
||||||
"isWithValues": false,
|
|
||||||
"isFilestream": false,
|
|
||||||
"isColumnSet": false,
|
|
||||||
"isPersisted": false,
|
|
||||||
"isSparse": false,
|
|
||||||
"isRowGUIDColumn": false,
|
|
||||||
"oldName": "DeleteUser",
|
|
||||||
"computedBaseType": "",
|
|
||||||
"isDefaultConstraint": false,
|
|
||||||
"defaultConstraint": "",
|
|
||||||
"isIdentity": false,
|
|
||||||
"isExistingField": false,
|
|
||||||
"identitySeed": 0,
|
|
||||||
"identityIncrement": 0,
|
|
||||||
"identityIsNotForReplication": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "TableField_MSSQL",
|
|
||||||
"name": "GetUser",
|
|
||||||
"type": "GetOneQuery",
|
|
||||||
"size": -2147483648,
|
|
||||||
"isNullable": "Yes",
|
|
||||||
"scale": -2147483648,
|
|
||||||
"comment": "واکشی یک کاربر",
|
|
||||||
"computedExpression": "",
|
|
||||||
"defaultValue": "",
|
|
||||||
"defaultValueType": "Others",
|
|
||||||
"schema": "",
|
|
||||||
"userDefinedType": "",
|
|
||||||
"collate": "",
|
|
||||||
"isWithValues": false,
|
|
||||||
"isFilestream": false,
|
|
||||||
"isColumnSet": false,
|
|
||||||
"isPersisted": false,
|
|
||||||
"isSparse": false,
|
|
||||||
"isRowGUIDColumn": false,
|
|
||||||
"oldName": "GetUser",
|
|
||||||
"computedBaseType": "",
|
|
||||||
"isDefaultConstraint": false,
|
|
||||||
"defaultConstraint": "",
|
|
||||||
"isIdentity": false,
|
|
||||||
"isExistingField": false,
|
|
||||||
"identitySeed": 0,
|
|
||||||
"identityIncrement": 0,
|
|
||||||
"identityIsNotForReplication": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "TableField_MSSQL",
|
|
||||||
"name": "GetAllUserByFilter",
|
|
||||||
"type": "GetAllByFilterQuery",
|
|
||||||
"size": -2147483648,
|
|
||||||
"isNullable": "Yes",
|
|
||||||
"scale": -2147483648,
|
|
||||||
"comment": "واکشی کاربر ها بر مبنای فیلتر",
|
|
||||||
"computedExpression": "",
|
|
||||||
"defaultValue": "",
|
|
||||||
"defaultValueType": "Others",
|
|
||||||
"schema": "",
|
|
||||||
"userDefinedType": "",
|
|
||||||
"collate": "",
|
|
||||||
"isWithValues": false,
|
|
||||||
"isFilestream": false,
|
|
||||||
"isColumnSet": false,
|
|
||||||
"isPersisted": false,
|
|
||||||
"isSparse": false,
|
|
||||||
"isRowGUIDColumn": false,
|
|
||||||
"oldName": "GetAllUserByFilter",
|
|
||||||
"computedBaseType": "",
|
|
||||||
"isDefaultConstraint": false,
|
|
||||||
"defaultConstraint": "",
|
|
||||||
"isIdentity": false,
|
|
||||||
"isExistingField": false,
|
|
||||||
"identitySeed": 0,
|
|
||||||
"identityIncrement": 0,
|
|
||||||
"identityIsNotForReplication": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "TableField_MSSQL",
|
|
||||||
"name": "CreateNewOtpToken",
|
|
||||||
"type": "CreateCommand",
|
|
||||||
"size": -2147483648,
|
|
||||||
"isNullable": "Yes",
|
|
||||||
"scale": -2147483648,
|
|
||||||
"comment": "ایجاد توکن Otp جدید",
|
|
||||||
"computedExpression": "",
|
|
||||||
"defaultValue": "",
|
|
||||||
"defaultValueType": "Others",
|
|
||||||
"schema": "",
|
|
||||||
"userDefinedType": "",
|
|
||||||
"collate": "",
|
|
||||||
"isWithValues": false,
|
|
||||||
"isFilestream": false,
|
|
||||||
"isColumnSet": false,
|
|
||||||
"isPersisted": false,
|
|
||||||
"isSparse": false,
|
|
||||||
"isRowGUIDColumn": false,
|
|
||||||
"oldName": "CreateNewOtpToken",
|
|
||||||
"computedBaseType": "",
|
|
||||||
"isDefaultConstraint": false,
|
|
||||||
"defaultConstraint": "",
|
|
||||||
"isIdentity": false,
|
|
||||||
"isExistingField": false,
|
|
||||||
"identitySeed": 0,
|
|
||||||
"identityIncrement": 0,
|
|
||||||
"identityIsNotForReplication": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "TableField_MSSQL",
|
|
||||||
"name": "VerifyOtpToken",
|
|
||||||
"type": "Command",
|
|
||||||
"size": -2147483648,
|
|
||||||
"isNullable": "Yes",
|
|
||||||
"scale": -2147483648,
|
|
||||||
"comment": "فعال سازی توکن",
|
|
||||||
"computedExpression": "",
|
|
||||||
"defaultValue": "",
|
|
||||||
"defaultValueType": "Others",
|
|
||||||
"schema": "",
|
|
||||||
"userDefinedType": "",
|
|
||||||
"collate": "",
|
|
||||||
"isWithValues": false,
|
|
||||||
"isFilestream": false,
|
|
||||||
"isColumnSet": false,
|
|
||||||
"isPersisted": false,
|
|
||||||
"isSparse": false,
|
|
||||||
"isRowGUIDColumn": false,
|
|
||||||
"oldName": "VerifyOtpToken",
|
|
||||||
"computedBaseType": "",
|
|
||||||
"isDefaultConstraint": false,
|
|
||||||
"defaultConstraint": "",
|
|
||||||
"isIdentity": false,
|
|
||||||
"isExistingField": false,
|
|
||||||
"identitySeed": 0,
|
|
||||||
"identityIncrement": 0,
|
|
||||||
"identityIsNotForReplication": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"indexes": [],
|
|
||||||
"foreignKeys": [
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_UpdateUserRequest_1",
|
|
||||||
"fields": [
|
|
||||||
"UpdateUser"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "UpdateUserRequest",
|
|
||||||
"referencedFields": [
|
|
||||||
"Id"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": false,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_DeleteUserRequest_1",
|
|
||||||
"fields": [
|
|
||||||
"DeleteUser"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "DeleteUserRequest",
|
|
||||||
"referencedFields": [
|
|
||||||
"Id"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": false,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_GetUserRequest_1",
|
|
||||||
"fields": [
|
|
||||||
"GetUser"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "GetUserRequest",
|
|
||||||
"referencedFields": [
|
|
||||||
"Id"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": false,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_GetUserResponse_1",
|
|
||||||
"fields": [
|
|
||||||
"GetUser"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "GetUserResponse",
|
|
||||||
"referencedFields": [
|
|
||||||
"Id"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": false,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_GetAllUserByFilterRequest_1",
|
|
||||||
"fields": [
|
|
||||||
"GetAllUserByFilter"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "GetAllUserByFilterRequest",
|
|
||||||
"referencedFields": [
|
|
||||||
"PaginationState"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": false,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_GetAllUserByFilterResponse_1",
|
|
||||||
"fields": [
|
|
||||||
"GetAllUserByFilter"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "GetAllUserByFilterResponse",
|
|
||||||
"referencedFields": [
|
|
||||||
"MetaData"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": false,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_CreateNewOtpTokenRequest_1",
|
|
||||||
"fields": [
|
|
||||||
"CreateNewOtpToken"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "CreateNewOtpTokenRequest",
|
|
||||||
"referencedFields": [
|
|
||||||
"Mobile"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": true,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_CreateNewOtpTokenResponse_1",
|
|
||||||
"fields": [
|
|
||||||
"CreateNewOtpToken"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "CreateNewOtpTokenResponse",
|
|
||||||
"referencedFields": [
|
|
||||||
"Success"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": true,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_VerifyOtpTokenResponse_1",
|
|
||||||
"fields": [
|
|
||||||
"VerifyOtpToken"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "VerifyOtpTokenResponse",
|
|
||||||
"referencedFields": [
|
|
||||||
"Success"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": true,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"objectType": "ForeignKey_MSSQL",
|
|
||||||
"name": "fk_UserService_VerifyOtpTokenRequest_1",
|
|
||||||
"fields": [
|
|
||||||
"VerifyOtpToken"
|
|
||||||
],
|
|
||||||
"referencedSchema": "FrontOffice",
|
|
||||||
"referencedTable": "VerifyOtpTokenRequest",
|
|
||||||
"referencedFields": [
|
|
||||||
"Mobile"
|
|
||||||
],
|
|
||||||
"onDelete": "",
|
|
||||||
"onUpdate": "",
|
|
||||||
"isNotForReplication": false,
|
|
||||||
"isEnabled": true,
|
|
||||||
"comment": "",
|
|
||||||
"sourceCardinality": "NoneRelationship",
|
|
||||||
"targetCardinality": "NoneRelationship",
|
|
||||||
"oldName": ""
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"uniques": [],
|
|
||||||
"checks": [],
|
|
||||||
"triggers": [],
|
|
||||||
"storage": {
|
|
||||||
"objectType": "Storage_MSSQL",
|
|
||||||
"name": "",
|
|
||||||
"oldName": "",
|
|
||||||
"storageType": "Default",
|
|
||||||
"filegroup": "",
|
|
||||||
"textImageFilegroup": "",
|
|
||||||
"filestreamFilegroup": "",
|
|
||||||
"partitionScheme": "",
|
|
||||||
"partitionColumn": "",
|
|
||||||
"filestreamPartitionScheme": "",
|
|
||||||
"dataCompressions": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"objectType": "Table_MSSQL",
|
"objectType": "Table_MSSQL",
|
||||||
"name": "CreateNewOtpTokenRequest",
|
"name": "CreateNewOtpTokenRequest",
|
||||||
@@ -8528,6 +8015,404 @@
|
|||||||
"filestreamPartitionScheme": "",
|
"filestreamPartitionScheme": "",
|
||||||
"dataCompressions": []
|
"dataCompressions": []
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "Table_MSSQL",
|
||||||
|
"name": "UserService",
|
||||||
|
"comment": "سرویس های کاربر",
|
||||||
|
"owner": "",
|
||||||
|
"isChangeTracking": false,
|
||||||
|
"isTrackColumnsUpdated": false,
|
||||||
|
"oldName": "UserService",
|
||||||
|
"isSystemTable": false,
|
||||||
|
"createTime": "",
|
||||||
|
"modifyTime": "",
|
||||||
|
"objectID": 4423,
|
||||||
|
"numberOfRows": 0,
|
||||||
|
"identityCurrent": 0,
|
||||||
|
"dataLength": 0,
|
||||||
|
"indexLength": 0,
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"objectType": "TableField_MSSQL",
|
||||||
|
"name": "UpdateUser",
|
||||||
|
"type": "UpdateCommand",
|
||||||
|
"size": -2147483648,
|
||||||
|
"isNullable": "Yes",
|
||||||
|
"scale": -2147483648,
|
||||||
|
"comment": "ویرایش کاربر",
|
||||||
|
"computedExpression": "",
|
||||||
|
"defaultValue": "",
|
||||||
|
"defaultValueType": "Others",
|
||||||
|
"schema": "",
|
||||||
|
"userDefinedType": "",
|
||||||
|
"collate": "",
|
||||||
|
"isWithValues": false,
|
||||||
|
"isFilestream": false,
|
||||||
|
"isColumnSet": false,
|
||||||
|
"isPersisted": false,
|
||||||
|
"isSparse": false,
|
||||||
|
"isRowGUIDColumn": false,
|
||||||
|
"oldName": "UpdateUser",
|
||||||
|
"computedBaseType": "",
|
||||||
|
"isDefaultConstraint": false,
|
||||||
|
"defaultConstraint": "",
|
||||||
|
"isIdentity": false,
|
||||||
|
"isExistingField": false,
|
||||||
|
"identitySeed": 0,
|
||||||
|
"identityIncrement": 0,
|
||||||
|
"identityIsNotForReplication": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "TableField_MSSQL",
|
||||||
|
"name": "DeleteUser",
|
||||||
|
"type": "DeleteCommand",
|
||||||
|
"size": -2147483648,
|
||||||
|
"isNullable": "Yes",
|
||||||
|
"scale": -2147483648,
|
||||||
|
"comment": "حذف کاربر",
|
||||||
|
"computedExpression": "",
|
||||||
|
"defaultValue": "",
|
||||||
|
"defaultValueType": "Others",
|
||||||
|
"schema": "",
|
||||||
|
"userDefinedType": "",
|
||||||
|
"collate": "",
|
||||||
|
"isWithValues": false,
|
||||||
|
"isFilestream": false,
|
||||||
|
"isColumnSet": false,
|
||||||
|
"isPersisted": false,
|
||||||
|
"isSparse": false,
|
||||||
|
"isRowGUIDColumn": false,
|
||||||
|
"oldName": "DeleteUser",
|
||||||
|
"computedBaseType": "",
|
||||||
|
"isDefaultConstraint": false,
|
||||||
|
"defaultConstraint": "",
|
||||||
|
"isIdentity": false,
|
||||||
|
"isExistingField": false,
|
||||||
|
"identitySeed": 0,
|
||||||
|
"identityIncrement": 0,
|
||||||
|
"identityIsNotForReplication": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "TableField_MSSQL",
|
||||||
|
"name": "GetUser",
|
||||||
|
"type": "GetOneQuery",
|
||||||
|
"size": -2147483648,
|
||||||
|
"isNullable": "Yes",
|
||||||
|
"scale": -2147483648,
|
||||||
|
"comment": "واکشی یک کاربر",
|
||||||
|
"computedExpression": "",
|
||||||
|
"defaultValue": "",
|
||||||
|
"defaultValueType": "Others",
|
||||||
|
"schema": "",
|
||||||
|
"userDefinedType": "",
|
||||||
|
"collate": "",
|
||||||
|
"isWithValues": false,
|
||||||
|
"isFilestream": false,
|
||||||
|
"isColumnSet": false,
|
||||||
|
"isPersisted": false,
|
||||||
|
"isSparse": false,
|
||||||
|
"isRowGUIDColumn": false,
|
||||||
|
"oldName": "GetUser",
|
||||||
|
"computedBaseType": "",
|
||||||
|
"isDefaultConstraint": false,
|
||||||
|
"defaultConstraint": "",
|
||||||
|
"isIdentity": false,
|
||||||
|
"isExistingField": false,
|
||||||
|
"identitySeed": 0,
|
||||||
|
"identityIncrement": 0,
|
||||||
|
"identityIsNotForReplication": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "TableField_MSSQL",
|
||||||
|
"name": "GetAllUserByFilter",
|
||||||
|
"type": "GetAllByFilterQuery",
|
||||||
|
"size": -2147483648,
|
||||||
|
"isNullable": "Yes",
|
||||||
|
"scale": -2147483648,
|
||||||
|
"comment": "واکشی کاربر ها بر مبنای فیلتر",
|
||||||
|
"computedExpression": "",
|
||||||
|
"defaultValue": "",
|
||||||
|
"defaultValueType": "Others",
|
||||||
|
"schema": "",
|
||||||
|
"userDefinedType": "",
|
||||||
|
"collate": "",
|
||||||
|
"isWithValues": false,
|
||||||
|
"isFilestream": false,
|
||||||
|
"isColumnSet": false,
|
||||||
|
"isPersisted": false,
|
||||||
|
"isSparse": false,
|
||||||
|
"isRowGUIDColumn": false,
|
||||||
|
"oldName": "GetAllUserByFilter",
|
||||||
|
"computedBaseType": "",
|
||||||
|
"isDefaultConstraint": false,
|
||||||
|
"defaultConstraint": "",
|
||||||
|
"isIdentity": false,
|
||||||
|
"isExistingField": false,
|
||||||
|
"identitySeed": 0,
|
||||||
|
"identityIncrement": 0,
|
||||||
|
"identityIsNotForReplication": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "TableField_MSSQL",
|
||||||
|
"name": "CreateNewOtpToken",
|
||||||
|
"type": "CreateCommand",
|
||||||
|
"size": -2147483648,
|
||||||
|
"isNullable": "Yes",
|
||||||
|
"scale": -2147483648,
|
||||||
|
"comment": "ایجاد توکن Otp جدید",
|
||||||
|
"computedExpression": "",
|
||||||
|
"defaultValue": "",
|
||||||
|
"defaultValueType": "Others",
|
||||||
|
"schema": "",
|
||||||
|
"userDefinedType": "",
|
||||||
|
"collate": "",
|
||||||
|
"isWithValues": false,
|
||||||
|
"isFilestream": false,
|
||||||
|
"isColumnSet": false,
|
||||||
|
"isPersisted": false,
|
||||||
|
"isSparse": false,
|
||||||
|
"isRowGUIDColumn": false,
|
||||||
|
"oldName": "CreateNewOtpToken",
|
||||||
|
"computedBaseType": "",
|
||||||
|
"isDefaultConstraint": false,
|
||||||
|
"defaultConstraint": "",
|
||||||
|
"isIdentity": false,
|
||||||
|
"isExistingField": false,
|
||||||
|
"identitySeed": 0,
|
||||||
|
"identityIncrement": 0,
|
||||||
|
"identityIsNotForReplication": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "TableField_MSSQL",
|
||||||
|
"name": "VerifyOtpToken",
|
||||||
|
"type": "Command",
|
||||||
|
"size": -2147483648,
|
||||||
|
"isNullable": "Yes",
|
||||||
|
"scale": -2147483648,
|
||||||
|
"comment": "فعال سازی توکن",
|
||||||
|
"computedExpression": "",
|
||||||
|
"defaultValue": "",
|
||||||
|
"defaultValueType": "Others",
|
||||||
|
"schema": "",
|
||||||
|
"userDefinedType": "",
|
||||||
|
"collate": "",
|
||||||
|
"isWithValues": false,
|
||||||
|
"isFilestream": false,
|
||||||
|
"isColumnSet": false,
|
||||||
|
"isPersisted": false,
|
||||||
|
"isSparse": false,
|
||||||
|
"isRowGUIDColumn": false,
|
||||||
|
"oldName": "VerifyOtpToken",
|
||||||
|
"computedBaseType": "",
|
||||||
|
"isDefaultConstraint": false,
|
||||||
|
"defaultConstraint": "",
|
||||||
|
"isIdentity": false,
|
||||||
|
"isExistingField": false,
|
||||||
|
"identitySeed": 0,
|
||||||
|
"identityIncrement": 0,
|
||||||
|
"identityIsNotForReplication": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"indexes": [],
|
||||||
|
"foreignKeys": [
|
||||||
|
{
|
||||||
|
"objectType": "ForeignKey_MSSQL",
|
||||||
|
"name": "fk_UserService_UpdateUserRequest_1",
|
||||||
|
"fields": [
|
||||||
|
"UpdateUser"
|
||||||
|
],
|
||||||
|
"referencedSchema": "FrontOffice",
|
||||||
|
"referencedTable": "UpdateUserRequest",
|
||||||
|
"referencedFields": [
|
||||||
|
"Id"
|
||||||
|
],
|
||||||
|
"onDelete": "",
|
||||||
|
"onUpdate": "",
|
||||||
|
"isNotForReplication": false,
|
||||||
|
"isEnabled": false,
|
||||||
|
"comment": "",
|
||||||
|
"sourceCardinality": "NoneRelationship",
|
||||||
|
"targetCardinality": "NoneRelationship",
|
||||||
|
"oldName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "ForeignKey_MSSQL",
|
||||||
|
"name": "fk_UserService_DeleteUserRequest_1",
|
||||||
|
"fields": [
|
||||||
|
"DeleteUser"
|
||||||
|
],
|
||||||
|
"referencedSchema": "FrontOffice",
|
||||||
|
"referencedTable": "DeleteUserRequest",
|
||||||
|
"referencedFields": [
|
||||||
|
"Id"
|
||||||
|
],
|
||||||
|
"onDelete": "",
|
||||||
|
"onUpdate": "",
|
||||||
|
"isNotForReplication": false,
|
||||||
|
"isEnabled": false,
|
||||||
|
"comment": "",
|
||||||
|
"sourceCardinality": "NoneRelationship",
|
||||||
|
"targetCardinality": "NoneRelationship",
|
||||||
|
"oldName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "ForeignKey_MSSQL",
|
||||||
|
"name": "fk_UserService_GetUserResponse_1",
|
||||||
|
"fields": [
|
||||||
|
"GetUser"
|
||||||
|
],
|
||||||
|
"referencedSchema": "FrontOffice",
|
||||||
|
"referencedTable": "GetUserResponse",
|
||||||
|
"referencedFields": [
|
||||||
|
"Id"
|
||||||
|
],
|
||||||
|
"onDelete": "",
|
||||||
|
"onUpdate": "",
|
||||||
|
"isNotForReplication": false,
|
||||||
|
"isEnabled": false,
|
||||||
|
"comment": "",
|
||||||
|
"sourceCardinality": "NoneRelationship",
|
||||||
|
"targetCardinality": "NoneRelationship",
|
||||||
|
"oldName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "ForeignKey_MSSQL",
|
||||||
|
"name": "fk_UserService_GetAllUserByFilterRequest_1",
|
||||||
|
"fields": [
|
||||||
|
"GetAllUserByFilter"
|
||||||
|
],
|
||||||
|
"referencedSchema": "FrontOffice",
|
||||||
|
"referencedTable": "GetAllUserByFilterRequest",
|
||||||
|
"referencedFields": [
|
||||||
|
"PaginationState"
|
||||||
|
],
|
||||||
|
"onDelete": "",
|
||||||
|
"onUpdate": "",
|
||||||
|
"isNotForReplication": false,
|
||||||
|
"isEnabled": false,
|
||||||
|
"comment": "",
|
||||||
|
"sourceCardinality": "NoneRelationship",
|
||||||
|
"targetCardinality": "NoneRelationship",
|
||||||
|
"oldName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "ForeignKey_MSSQL",
|
||||||
|
"name": "fk_UserService_GetAllUserByFilterResponse_1",
|
||||||
|
"fields": [
|
||||||
|
"GetAllUserByFilter"
|
||||||
|
],
|
||||||
|
"referencedSchema": "FrontOffice",
|
||||||
|
"referencedTable": "GetAllUserByFilterResponse",
|
||||||
|
"referencedFields": [
|
||||||
|
"MetaData"
|
||||||
|
],
|
||||||
|
"onDelete": "",
|
||||||
|
"onUpdate": "",
|
||||||
|
"isNotForReplication": false,
|
||||||
|
"isEnabled": false,
|
||||||
|
"comment": "",
|
||||||
|
"sourceCardinality": "NoneRelationship",
|
||||||
|
"targetCardinality": "NoneRelationship",
|
||||||
|
"oldName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "ForeignKey_MSSQL",
|
||||||
|
"name": "fk_UserService_CreateNewOtpTokenRequest_1",
|
||||||
|
"fields": [
|
||||||
|
"CreateNewOtpToken"
|
||||||
|
],
|
||||||
|
"referencedSchema": "FrontOffice",
|
||||||
|
"referencedTable": "CreateNewOtpTokenRequest",
|
||||||
|
"referencedFields": [
|
||||||
|
"Mobile"
|
||||||
|
],
|
||||||
|
"onDelete": "",
|
||||||
|
"onUpdate": "",
|
||||||
|
"isNotForReplication": false,
|
||||||
|
"isEnabled": true,
|
||||||
|
"comment": "",
|
||||||
|
"sourceCardinality": "NoneRelationship",
|
||||||
|
"targetCardinality": "NoneRelationship",
|
||||||
|
"oldName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "ForeignKey_MSSQL",
|
||||||
|
"name": "fk_UserService_CreateNewOtpTokenResponse_1",
|
||||||
|
"fields": [
|
||||||
|
"CreateNewOtpToken"
|
||||||
|
],
|
||||||
|
"referencedSchema": "FrontOffice",
|
||||||
|
"referencedTable": "CreateNewOtpTokenResponse",
|
||||||
|
"referencedFields": [
|
||||||
|
"Success"
|
||||||
|
],
|
||||||
|
"onDelete": "",
|
||||||
|
"onUpdate": "",
|
||||||
|
"isNotForReplication": false,
|
||||||
|
"isEnabled": true,
|
||||||
|
"comment": "",
|
||||||
|
"sourceCardinality": "NoneRelationship",
|
||||||
|
"targetCardinality": "NoneRelationship",
|
||||||
|
"oldName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "ForeignKey_MSSQL",
|
||||||
|
"name": "fk_UserService_VerifyOtpTokenResponse_1",
|
||||||
|
"fields": [
|
||||||
|
"VerifyOtpToken"
|
||||||
|
],
|
||||||
|
"referencedSchema": "FrontOffice",
|
||||||
|
"referencedTable": "VerifyOtpTokenResponse",
|
||||||
|
"referencedFields": [
|
||||||
|
"Success"
|
||||||
|
],
|
||||||
|
"onDelete": "",
|
||||||
|
"onUpdate": "",
|
||||||
|
"isNotForReplication": false,
|
||||||
|
"isEnabled": true,
|
||||||
|
"comment": "",
|
||||||
|
"sourceCardinality": "NoneRelationship",
|
||||||
|
"targetCardinality": "NoneRelationship",
|
||||||
|
"oldName": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"objectType": "ForeignKey_MSSQL",
|
||||||
|
"name": "fk_UserService_VerifyOtpTokenRequest_1",
|
||||||
|
"fields": [
|
||||||
|
"VerifyOtpToken"
|
||||||
|
],
|
||||||
|
"referencedSchema": "FrontOffice",
|
||||||
|
"referencedTable": "VerifyOtpTokenRequest",
|
||||||
|
"referencedFields": [
|
||||||
|
"Mobile"
|
||||||
|
],
|
||||||
|
"onDelete": "",
|
||||||
|
"onUpdate": "",
|
||||||
|
"isNotForReplication": false,
|
||||||
|
"isEnabled": true,
|
||||||
|
"comment": "",
|
||||||
|
"sourceCardinality": "NoneRelationship",
|
||||||
|
"targetCardinality": "NoneRelationship",
|
||||||
|
"oldName": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"uniques": [],
|
||||||
|
"checks": [],
|
||||||
|
"triggers": [],
|
||||||
|
"storage": {
|
||||||
|
"objectType": "Storage_MSSQL",
|
||||||
|
"name": "",
|
||||||
|
"oldName": "",
|
||||||
|
"storageType": "Default",
|
||||||
|
"filegroup": "",
|
||||||
|
"textImageFilegroup": "",
|
||||||
|
"filestreamFilegroup": "",
|
||||||
|
"partitionScheme": "",
|
||||||
|
"partitionColumn": "",
|
||||||
|
"filestreamPartitionScheme": "",
|
||||||
|
"dataCompressions": []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"views": []
|
"views": []
|
||||||
@@ -8598,22 +8483,6 @@
|
|||||||
"a": 1
|
"a": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "table",
|
|
||||||
"schemaName": "FrontOffice",
|
|
||||||
"tableName": "GetUserRequest",
|
|
||||||
"x": 400,
|
|
||||||
"y": 30,
|
|
||||||
"width": 400,
|
|
||||||
"height": 100,
|
|
||||||
"isBold": false,
|
|
||||||
"titleColor": {
|
|
||||||
"r": 255,
|
|
||||||
"g": 214,
|
|
||||||
"b": 147,
|
|
||||||
"a": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"schemaName": "FrontOffice",
|
"schemaName": "FrontOffice",
|
||||||
@@ -9313,40 +9182,6 @@
|
|||||||
"isVisible": false
|
"isVisible": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "fk_UserService_GetUserRequest_1",
|
|
||||||
"sourceTableName": "UserService",
|
|
||||||
"sourceSchemaName": "FrontOffice",
|
|
||||||
"lineWidth": 1,
|
|
||||||
"visible": true,
|
|
||||||
"vertices": [
|
|
||||||
{
|
|
||||||
"x": 600,
|
|
||||||
"y": 675
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"x": 600,
|
|
||||||
"y": 145
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"label": {
|
|
||||||
"x": 608,
|
|
||||||
"y": 655,
|
|
||||||
"width": 228,
|
|
||||||
"height": 30,
|
|
||||||
"fontName": "Arial Unicode MS",
|
|
||||||
"fontSize": 14,
|
|
||||||
"fontColor": {
|
|
||||||
"r": 51,
|
|
||||||
"g": 51,
|
|
||||||
"b": 51,
|
|
||||||
"a": 1
|
|
||||||
},
|
|
||||||
"isFontBold": false,
|
|
||||||
"isFontItalic": false,
|
|
||||||
"isVisible": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "fk_UserService_GetUserResponse_1",
|
"name": "fk_UserService_GetUserResponse_1",
|
||||||
"sourceTableName": "UserService",
|
"sourceTableName": "UserService",
|
||||||
|
|||||||
@@ -5,7 +5,5 @@ public class CreateNewOtpTokenResponseDto
|
|||||||
public bool Success { get; set; }
|
public bool Success { get; set; }
|
||||||
//پیام
|
//پیام
|
||||||
public string Message { get; set; }
|
public string Message { get; set; }
|
||||||
//کد
|
|
||||||
public string? Code { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
using CMSMicroservice.Protobuf.Protos.OtpToken;
|
||||||
|
|
||||||
namespace FrontOffice.BFF.Application.UserCQ.Commands.VerifyOtpToken;
|
namespace FrontOffice.BFF.Application.UserCQ.Commands.VerifyOtpToken;
|
||||||
public class VerifyOtpTokenCommandHandler : IRequestHandler<VerifyOtpTokenCommand, VerifyOtpTokenResponseDto>
|
public class VerifyOtpTokenCommandHandler : IRequestHandler<VerifyOtpTokenCommand, VerifyOtpTokenResponseDto>
|
||||||
{
|
{
|
||||||
@@ -10,7 +12,17 @@ public class VerifyOtpTokenCommandHandler : IRequestHandler<VerifyOtpTokenComman
|
|||||||
|
|
||||||
public async Task<VerifyOtpTokenResponseDto> Handle(VerifyOtpTokenCommand request, CancellationToken cancellationToken)
|
public async Task<VerifyOtpTokenResponseDto> Handle(VerifyOtpTokenCommand request, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
//TODO: Implement your business logic
|
var response = await _context.OtpToken.VerifyOtpTokenAsync(request: request.Adapt<VerifyOtpTokenRequest>(), cancellationToken: cancellationToken);
|
||||||
return new VerifyOtpTokenResponseDto();
|
var result = response.Adapt<VerifyOtpTokenResponseDto>();
|
||||||
|
if (response.Success && response.UserId.HasValue && response.UserId.Value > 0)
|
||||||
|
{
|
||||||
|
var token = await _context.User.GetJwtTokenAsync(request: new()
|
||||||
|
{
|
||||||
|
Id = response.UserId.Value
|
||||||
|
}, cancellationToken: cancellationToken);
|
||||||
|
|
||||||
|
result.Token = token?.Token;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ public class VerifyOtpTokenResponseDto
|
|||||||
public bool Success { get; set; }
|
public bool Success { get; set; }
|
||||||
//پیام
|
//پیام
|
||||||
public string Message { get; set; }
|
public string Message { get; set; }
|
||||||
//شناسه کاربر
|
//توکن
|
||||||
public long? UserId { get; set; }
|
public string? Token { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2,15 +2,21 @@ namespace FrontOffice.BFF.Application.UserCQ.Queries.GetUser;
|
|||||||
public class GetUserQueryHandler : IRequestHandler<GetUserQuery, GetUserResponseDto>
|
public class GetUserQueryHandler : IRequestHandler<GetUserQuery, GetUserResponseDto>
|
||||||
{
|
{
|
||||||
private readonly IApplicationContractContext _context;
|
private readonly IApplicationContractContext _context;
|
||||||
|
private readonly ICurrentUserService _currentUserService;
|
||||||
|
|
||||||
public GetUserQueryHandler(IApplicationContractContext context)
|
public GetUserQueryHandler(IApplicationContractContext context, ICurrentUserService currentUserService)
|
||||||
{
|
{
|
||||||
_context = context;
|
_context = context;
|
||||||
|
_currentUserService = currentUserService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetUserResponseDto> Handle(GetUserQuery request, CancellationToken cancellationToken)
|
public async Task<GetUserResponseDto> Handle(GetUserQuery request, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
//TODO: Implement your business logic
|
var userId = _currentUserService.UserId ?? throw new ForbiddenAccessException();
|
||||||
return new GetUserResponseDto();
|
var response = await _context.User.GetUserAsync(request: new()
|
||||||
|
{
|
||||||
|
Id = long.Parse(userId)
|
||||||
|
}, cancellationToken: cancellationToken);
|
||||||
|
return response.Adapt<GetUserResponseDto>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,6 @@ message CreateNewOtpTokenResponse
|
|||||||
{
|
{
|
||||||
bool success = 1;
|
bool success = 1;
|
||||||
string message = 2;
|
string message = 2;
|
||||||
google.protobuf.StringValue code = 3;
|
|
||||||
}
|
}
|
||||||
message VerifyOtpTokenRequest
|
message VerifyOtpTokenRequest
|
||||||
{
|
{
|
||||||
@@ -143,7 +142,7 @@ message VerifyOtpTokenResponse
|
|||||||
{
|
{
|
||||||
bool success = 1;
|
bool success = 1;
|
||||||
string message = 2;
|
string message = 2;
|
||||||
google.protobuf.Int64Value user_id = 3;
|
google.protobuf.StringValue token = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PaginationState
|
message PaginationState
|
||||||
|
|||||||
Reference in New Issue
Block a user