| | |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.Authorization; |
| | | using WIDESEAWCS_Core.BaseController; |
| | | using WIDESEAWCS_Core.CodeGenerator; |
| | | using WIDESEAWCS_Core.Const; |
| | | using WIDESEAWCS_Core.Extensions; |
| | | using WIDESEAWCS_Core.Helper; |
| | |
| | | { |
| | | HttpContext.SuccessSwagger(); |
| | | Dictionary<string, object>? dict = JsonConvert.DeserializeObject<Dictionary<string, object>>(result.Data.Serialize()); |
| | | if(dict != null) |
| | | if (dict != null) |
| | | { |
| | | HttpContext.SuccessSwaggerJwt((dict.ContainsKey("token") ? dict["token"].ToString() : "") ?? ""); |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | [HttpPost, Route("CreateIRepository"), AllowAnonymous] |
| | | public WebResponseContent CreateIRepository(string tableName, string nameSpace) |
| | | { |
| | | CodeGenertors.CreateIRepository(tableName, nameSpace); |
| | | CodeGenertors.CreateRepository(tableName, nameSpace); |
| | | CodeGenertors.CreateIService(tableName, nameSpace); |
| | | CodeGenertors.CreateService(tableName, nameSpace); |
| | | CodeGenertors.CreateController(tableName, nameSpace); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | } |
| | | |
| | | public class SwaggerLoginRequest |