From f5687166e5bcaee6418bc09ee1c90ce7f2b8dbda Mon Sep 17 00:00:00 2001 From: dev02 Date: Thu, 19 Oct 2023 15:24:06 +0800 Subject: [PATCH] mcut --- FrontendWebApi/ApiControllers/UserController.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/FrontendWebApi/ApiControllers/UserController.cs b/FrontendWebApi/ApiControllers/UserController.cs index f6e5aa4..bf5f65f 100644 --- a/FrontendWebApi/ApiControllers/UserController.cs +++ b/FrontendWebApi/ApiControllers/UserController.cs @@ -374,6 +374,21 @@ namespace FrontendWebApi.ApiControllers await backendRepository.AddOneByCustomTable(role, "role"); + #region for mcut only + await backendRepository.ExecuteSql($@"insert into role_auth (role_guid, authcode, created_by, created_at) + values + ('{guid}', 'PF1', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00'), + ('{guid}', 'PF2', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00'), + ('{guid}', 'PF3', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00'), + ('{guid}', 'PF4', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00'), + ('{guid}', 'PF5', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00'), + ('{guid}', 'PF6', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00'), + ('{guid}', 'PF7', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00'), + ('{guid}', 'PF8', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00'), + ('{guid}', 'PF9', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00'), + ('{guid}', 'F2', 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', '2023-01-30 06:48:00')"); + #endregion + apiResult.Code = "0000"; apiResult.Msg = "儲存成功"; #endregion