This commit is contained in:
tanglong 2025-06-06 16:38:49 +08:00
parent 82120194e3
commit 6f34e4c4f3
3 changed files with 22 additions and 22 deletions

16
.gitignore vendored
View File

@ -7,11 +7,11 @@ obj
*.user *.user
node_modules node_modules
/Server/SmartSportsServer/VOL.Business/IServices/SendMessage/IMessageService.cs /SmartSportsServer/VOL.Business/IServices/SendMessage/IMessageService.cs
/Server/SmartSportsServer/VOL.Business/Services/People/S_GradeService.cs /SmartSportsServer/VOL.Business/Services/People/S_GradeService.cs
/Server/SmartSportsServer/VOL.Business/Repositories/School/S_ClassAssocTeacherRepository.cs /SmartSportsServer/VOL.Business/Repositories/School/S_ClassAssocTeacherRepository.cs
/Server/SmartSportsServer/VOL.WebApi/wwwroot/BaseCore/MappingManager.cs /SmartSportsServer/VOL.WebApi/wwwroot/BaseCore/MappingManager.cs
/Server/SmartSportsServer/VOL.WebApi/wwwroot/BaseCore /SmartSportsServer/VOL.WebApi/wwwroot/BaseCore
/Server/SmartSportsServer/VOL.WebApi/Controllers/AI/AiController.cs /SmartSportsServer/VOL.WebApi/Controllers/AI/AiController.cs
Server/SmartSportsServer/VOL.WebApi/Download /SmartSportsServer/VOL.WebApi/Download
Server/SmartSportsServer/VOL.WebApi/quartz /SmartSportsServer/VOL.WebApi/quartz

View File

@ -172,8 +172,8 @@ namespace VOL.Business.Services.School
var userEntity = new Sys_User() var userEntity = new Sys_User()
{ {
Role_Id = 2, Role_Id = paramDto.SchoolType == SchoolType.School ? 2 : 4,
RoleName = "学校", RoleName = paramDto.SchoolType == SchoolType.School ? "学校" : "运动馆",
SchoolCode = nextSchoolCode, SchoolCode = nextSchoolCode,
Enable = 1, Enable = 1,
SchoolName = paramDto.SchoolName, SchoolName = paramDto.SchoolName,

View File

@ -318,18 +318,18 @@ namespace VOL.WebApi
//配置HttpContext //配置HttpContext
app.UseStaticHttpContext(); app.UseStaticHttpContext();
app.UseSwagger(); //app.UseSwagger();
app.UseSwaggerUI(c => //app.UseSwaggerUI(c =>
{ //{
//2个下拉框选项 选择对应的文档 // //2个下拉框选项 选择对应的文档
//c.SwaggerEndpoint("/swagger/v1/swagger.json", "VOL.Core后台Api"); // //c.SwaggerEndpoint("/swagger/v1/swagger.json", "VOL.Core后台Api");
//c.SwaggerEndpoint("/swagger/v2/swagger.json", "测试第三方Api"); // //c.SwaggerEndpoint("/swagger/v2/swagger.json", "测试第三方Api");
//c.SwaggerEndpoint("/swagger/v3/swagger.json", "SmartSportsServer-Api"); // //c.SwaggerEndpoint("/swagger/v3/swagger.json", "SmartSportsServer-Api");
//c.SwaggerEndpoint("/swagger/v4/swagger.json", "物联网-Api"); // //c.SwaggerEndpoint("/swagger/v4/swagger.json", "物联网-Api");
//c.SwaggerEndpoint("/swagger/v5/swagger.json", "Ai-Api"); // //c.SwaggerEndpoint("/swagger/v5/swagger.json", "Ai-Api");
c.SwaggerEndpoint("/swagger/v6/swagger.json", "AiApp-Api"); // c.SwaggerEndpoint("/swagger/v6/swagger.json", "AiApp-Api");
c.RoutePrefix = ""; // c.RoutePrefix = "";
}); //});
app.UseRouting(); app.UseRouting();
app.UseCors(); app.UseCors();
app.UseAuthentication(); app.UseAuthentication();