コード例 #1
0
        public async Task <IActionResult> DoExecuteSql([FromBody] Req <ExecuteSqlDto> request)
        {
            request.Data.AdminId = AdminDto.Id;
            ExecuteResult executeResult;

            if (request.Data.Authority == 1)
            {
                executeResult = await _sqlOnlineApplication.ExecuteSql_InsertUpdate(request);
            }
            else if (request.Data.Authority == 2)
            {
                executeResult = await _sqlOnlineApplication.ExecuteSql_InsertUpdateDelete(request);
            }
            else if (request.Data.Authority == 3)
            {
                executeResult = await _sqlOnlineApplication.ExecuteSql_AllPermissions(request);
            }
            else
            {
                executeResult = await _sqlOnlineApplication.ExecuteSql_Select(request);
            }
            return(Success(executeResult, request.PasswordString));
        }