Add role to User.

This commit is contained in:
Haiping Chen 2023-11-13 19:25:46 -06:00
parent f3a17f1b34
commit 7824622385
7 changed files with 48 additions and 23 deletions

View file

@ -0,0 +1,19 @@
namespace BotSharp.Abstraction.Users.Enums;
public class UserRole
{
/// <summary>
/// Admin account
/// </summary>
public const string Admin = "admin";
/// <summary>
/// Customer service representative (CSR)
/// </summary>
public const string CSR = "csr";
/// <summary>
/// Client
/// </summary>
public const string Client = "client";
}

View file

@ -4,27 +4,7 @@
"agentId": "01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a",
"updatedTime": "2023-08-14T18:14:11.6833783Z",
"createdTime": "2023-08-14T18:14:11.6829767Z",
"editable": true,
"id": "1273379c-4419-460a-b0a2-5695afd097f5"
},
{
"userId": "456e35c5-caf0-4d45-9084-b44a8ca717e4",
"agentId": "c2b57a74-ae4e-4c81-b3ad-9ac5bff982bd",
"updatedTime": "2023-08-14T18:14:11.6833783Z",
"createdTime": "2023-08-14T18:14:11.6829767Z",
"id": "91ec91bc-2854-4c21-be7e-4a6806406d56"
},
{
"userId": "456e35c5-caf0-4d45-9084-b44a8ca717e4",
"agentId": "b284db86-e9c2-4c25-a59e-4649797dd130",
"updatedTime": "2023-08-14T18:14:11.6833783Z",
"createdTime": "2023-08-14T18:14:11.6829767Z",
"id": "1d6e86ee-1f72-4ac3-93bc-549a65855dc6"
},
{
"userId": "456e35c5-caf0-4d45-9084-b44a8ca717e4",
"agentId": "fe8c60aa-b114-4ef3-93cb-a8efeac80f75",
"updatedTime": "2023-08-14T18:14:11.6833783Z",
"createdTime": "2023-08-14T18:14:11.6829767Z",
"id": "b10c3209-6fd6-41d1-afd9-ea9543be286d"
}
]

View file

@ -1,10 +1,10 @@
{
"firstName": "Haiping",
"lastName": "Chen",
"email": "botsharp@gmail.com",
"email": "admin@gmail.com",
"salt": "55f8fafcf829479ca97e635937440fee",
"password": "3b459ae9988628d41f0362c499a768dd",
"externalId": null,
"role": "admin",
"updatedTime": "2023-08-14T18:14:03.4602072Z",
"createdTime": "2023-08-14T18:14:03.4602075Z",
"id": "456e35c5-caf0-4d45-9084-b44a8ca717e4"

View file

@ -0,0 +1,11 @@
{
"firstName": "Nancy",
"lastName": "Luna",
"email": "user1@gmail.com",
"salt": "55f8fafcf829479ca97e635937440fee",
"password": "3b459ae9988628d41f0362c499a768dd",
"role": "client",
"updatedTime": "2023-11-13T18:00:00Z",
"createdTime": "2023-11-13T18:00:00Z",
"id": "d0e6680d-03d5-4ed8-bdcd-aa7d86f2a1bc"
}

View file

@ -0,0 +1,11 @@
{
"firstName": "Elon",
"lastName": "Musk",
"email": "csr1@gmail.com",
"salt": "55f8fafcf829479ca97e635937440fee",
"password": "3b459ae9988628d41f0362c499a768dd",
"role": "csr",
"updatedTime": "2023-11-13T18:00:00Z",
"createdTime": "2023-11-13T18:00:00Z",
"id": "e465af5f-044f-414b-b670-92834929b96c"
}