附件管理

master
ZR20090193-陈敬勇 8 months ago
parent 659423f747
commit 45ba4417e2

@ -0,0 +1,55 @@
using DS.Module.Core;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.AdminApi.Controllers;
/// <summary>
/// 系统附件模块
/// </summary>
public class SysFileController : ApiController
{
private readonly ISysFileService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public SysFileController(ISysFileService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 添加附件
/// </summary>
/// <param name="file">文件信息</param>
/// <param name="req">业务附件请求实体</param>
/// <returns></returns>
[HttpPost]
[Route("AddFile")]
public async Task<DataResult<string>> AddFile(IFormFile file, [FromForm] SysFileReq req)
{
var res = _invokeService.AddFile( file, req);
return await res;
}
/// <summary>
/// 获取系统附件
/// </summary>
/// <param name="id">业务id</param>
/// <returns></returns>
[HttpGet]
[Route("GetSysFileList")]
public DataResult<List<SysFileRes>> GetSysFileList([FromQuery] string id)
{
var res = _invokeService.GetSysFileList(id);
return res;
}
}

@ -1,47 +1,52 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"JwtSettings": {
"Issuer": "vol.core.owner",
"Audience": "vol.core",
"User": "C5ABA9E202D94C43A3CA66002BF77FAF",
"SecretKey": "sdfsdfsrty45634kkhllghtdgdfss345t678fs"
},
"Cors": {
"PolicyName": "WMSCore.API",
"Url": "http://localhost:8000,http://localhost:5999,http://localhost:8088,http://localhost:5173,http://0.0.0.0:5999,http://0.0.0.0:9995,http://localhost:9995,http://60.209.125.238:9995,http://localhost:3000,https://localhost:3100,http://47.104.255.182:3100,http://47.104.255.182:3110,https://localhost:3110,http://localhost:8080,http://localhost:8081,http://localhost:8082,http://localhost:8083,http://localhost:8084"
},
"DBInfo": {
"DefaultDbConnId": "1288018625843826688",
"DefaultDbType": 0,
"DefaultDbString": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_dev",
"DBS": [
{
"ConnId": "1288018625843826680",
"DBType": 0,
"Enabled": false,
"HitRate": 40,
"Connection": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_log"
}
]
},
"SwaggerDoc": {
"ContactName": "WmsAdminAPI",
"ContactEmail": "Wms API.Core@xxx.com",
"ContactUrl": "https://www.xxx.com",
"Version": "1.0",
"Title": "Wms Admin API",
"Description": "Wms Admin API"
},
"Middleware": {
"RecordAccessLogs": {
"Enabled": true,
"IgnoreApis": "/api/permission/getnavigationbar,/api/monitor/getids4users,/api/monitor/getaccesslogs,/api/monitor/server,/api/monitor/getactiveusers,/api/monitor/server,"
}
},
"FileSettings": {
"BasePath": "", //使
"RelativePath": "LinkAttach",
"FileType": [ ".xls", ".xlsx", ".pdf", ".txt", ".pms" ]
}
},
"AllowedHosts": "*",
"JwtSettings": {
"Issuer": "vol.core.owner",
"Audience": "vol.core",
"User": "C5ABA9E202D94C43A3CA66002BF77FAF",
"SecretKey": "sdfsdfsrty45634kkhllghtdgdfss345t678fs"
},
"Cors": {
"PolicyName": "WMSCore.API",
"Url": "http://localhost:8000,http://localhost:5999,http://localhost:8088,http://localhost:5173,http://0.0.0.0:5999,http://0.0.0.0:9995,http://localhost:9995,http://60.209.125.238:9995,http://localhost:3000,https://localhost:3100,http://47.104.255.182:3100,http://47.104.255.182:3110,https://localhost:3110,http://localhost:8080,http://localhost:8081,http://localhost:8082,http://localhost:8083,http://localhost:8084"
},
"DBInfo": {
"DefaultDbConnId": "1288018625843826688",
"DefaultDbType": 0,
"DefaultDbString": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_dev",
"DBS": [
{
"ConnId": "1288018625843826680",
"DBType": 0,
"Enabled": false,
"HitRate": 40,
"Connection": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_log"
}
]
},
"SwaggerDoc": {
"ContactName": "WmsAdminAPI",
"ContactEmail": "Wms API.Core@xxx.com",
"ContactUrl": "https://www.xxx.com",
"Version": "1.0",
"Title": "Wms Admin API",
"Description": "Wms Admin API"
},
"Middleware": {
"RecordAccessLogs": {
"Enabled": true,
"IgnoreApis": "/api/permission/getnavigationbar,/api/monitor/getids4users,/api/monitor/getaccesslogs,/api/monitor/server,/api/monitor/getactiveusers,/api/monitor/server,"
}
}
}

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 业务附件请求实体
/// </summary>
public class OpFileReq
{
/// <summary>
/// 关联业务id
/// </summary>
public long LinkId { get; set; }
/// <summary>
/// 附件类型id
/// </summary>
public string TypeCode { get; set; }
/// <summary>
/// 附件类型
/// </summary>
public string TypeName { get; set; }
}
}

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Dtos
{
/// <summary>
/// 业务附件返回实体
/// </summary>
public class OpFileRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 关联业务id
/// </summary>
public long LinkId { get; set; }
/// <summary>
/// 附件类型id
/// </summary>
public string TypeCode { get; set; }
/// <summary>
/// 附件类型
/// </summary>
public string TypeName { get; set; }
/// <summary>
/// 文件名称
/// </summary>
public string FileName { get; set; }
/// <summary>
/// 文件路径
/// </summary>
public string FilePath { get; set; }
}
}

@ -0,0 +1,50 @@
using DS.Module.Core.Data;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Entity
{
/// <summary>
/// 业务附件表
/// </summary>
[SqlSugar.SugarTable("op_file", "业务附件表")]
public class OpFile : BaseOrgModel<long>
{
/// <summary>
/// 关联业务id
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "关联业务id", IsNullable = false)]
public long LinkId { get; set; }
/// <summary>
/// 文件名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "文件名称", IsNullable = false, Length = 100)]
public string FileName { get; set; }
/// <summary>
/// 文件路径
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "文件路径", IsNullable = false, Length = 200)]
public string FilePath { get; set; }
/// <summary>
/// 附件类型id
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "附件类型id", IsNullable = true, Length = 100)]
public string TypeCode { get; set; }
/// <summary>
/// 附件类型
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "附件类型", IsNullable = true, Length = 100)]
public string TypeName { get; set; }
/// <summary>
/// 附件模块
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "附件模块", IsNullable = true, Length = 100)]
public string Moudle { get; set; }
}
}

@ -0,0 +1,29 @@
using DS.Module.Core;
using DS.WMS.Core.Sea.Dtos;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Interface
{
public interface IOpFileService
{
/// <summary>
/// 添加业务附件
/// </summary>
/// <param name="file"></param>
/// <param name="req"></param>
/// <returns></returns>
public Task<DataResult<string>> AddFile(IFormFile file, [FromForm] OpFileReq req);
/// <summary>
/// 获取业务附件
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<List<OpFileRes>> GetOpFileList(string id);
}
}

@ -0,0 +1,120 @@
using DS.Module.Core;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Entity;
using DS.WMS.Core.Sea.Interface;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sea.Method
{
public class OpFileService : IOpFileService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
private readonly IWebHostEnvironment _environment;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public OpFileService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
_environment = _serviceProvider.GetRequiredService<IWebHostEnvironment>();
}
/// <summary>
/// 添加附件
/// </summary>
/// <param name="file"></param>
/// <param name="req"></param>
/// <returns></returns>
public async Task<DataResult<string>> AddFile(IFormFile file, [FromForm] OpFileReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//未上传文件
if (file == null || file.Length == 0)
{
return await Task.FromResult(DataResult<string>.Failed("附件不存在!"));
}
var limitFiles = AppSetting.app(new string[] { "FileSettings", "FileType" });
var originalFilename = file.FileName; // 文件原始名称
var fileSuffix = Path.GetExtension(file.FileName).ToLower(); // 文件后缀
if (!limitFiles.Contains(fileSuffix))
{
return await Task.FromResult(DataResult<string>.Failed("不允许的文件类型!"));
}
var basePath = AppSetting.app(new string[] { "FileSettings", "BasePath" });
var relativePath = AppSetting.app(new string[] { "FileSettings", "RelativePath" });
var dirAbs = string.Empty;
var fileRelaPath = string.Empty;
var fileAbsPath = string.Empty;
if (string.IsNullOrEmpty(basePath))
{
dirAbs = Path.Combine(_environment.WebRootPath, relativePath);
}
else
{
dirAbs = Path.Combine(basePath, relativePath);
}
if (!Directory.Exists(dirAbs))
Directory.CreateDirectory(dirAbs);
// 先存库获取Id
var id = SnowFlakeSingle.Instance.NextId();
var fileSaveName = $"{id}{fileSuffix}".ToLower();
fileRelaPath = Path.Combine(relativePath, fileSaveName).ToLower();
fileAbsPath = Path.Combine(dirAbs, fileSaveName).ToLower();
var newFile = new OpFile
{
Id = id,
FileName = originalFilename,
FilePath = fileRelaPath,
TypeCode = req.TypeCode,
TypeName = req.TypeName,
LinkId = req.LinkId,
};
await tenantDb.Insertable(newFile).ExecuteCommandAsync();
using (var stream = File.Create(fileAbsPath))
{
await file.CopyToAsync(stream);
}
return await Task.FromResult(DataResult<string>.Success(fileRelaPath));
}
/// <summary>
/// 获取业务附件
/// </summary>
/// <param name="id">业务id</param>
/// <returns></returns>
public DataResult<List<OpFileRes>> GetOpFileList(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<OpFile>()
.Where(a => a.LinkId == long.Parse(id))
.Select<OpFileRes>()
.ToList();
return DataResult<List<OpFileRes>>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}
}

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.System.Dtos
{
/// <summary>
/// 系统附件请求实体
/// </summary>
public class SysFileReq
{
/// <summary>
/// 关联业务id
/// </summary>
public long LinkId { get; set; }
/// <summary>
/// 附件类型id
/// </summary>
public string TypeCode { get; set; }
/// <summary>
/// 附件类型
/// </summary>
public string TypeName { get; set; }
}
}

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.System.Dtos
{
/// <summary>
/// 系统附件返回实体
/// </summary>
public class SysFileRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 关联业务id
/// </summary>
public long LinkId { get; set; }
/// <summary>
/// 附件类型id
/// </summary>
public string TypeCode { get; set; }
/// <summary>
/// 附件类型
/// </summary>
public string TypeName { get; set; }
/// <summary>
/// 文件名称
/// </summary>
public string FileName { get; set; }
/// <summary>
/// 文件路径
/// </summary>
public string FilePath { get; set; }
}
}

@ -0,0 +1,42 @@
using DS.Module.Core.Data;
namespace DS.WMS.Core.System.Entity;
/// <summary>
///
/// </summary>
[SqlSugar.SugarTable("sys_file")]
public class SysFile : BaseModel<long>
{
/// <summary>
/// 关联业务id
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "关联业务id", IsNullable = false)]
public long LinkId { get; set; }
/// <summary>
/// 文件名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "文件名称", IsNullable = false, Length = 100)]
public string FileName { get; set; }
/// <summary>
/// 文件路径
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "文件路径", IsNullable = false, Length = 200)]
public string FilePath { get; set; }
/// <summary>
/// 附件类型id
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "附件类型id", IsNullable = true, Length = 100)]
public string TypeCode { get; set; }
/// <summary>
/// 附件类型
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "附件类型", IsNullable = true, Length = 100)]
public string TypeName { get; set; }
/// <summary>
/// 附件模块
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "附件模块", IsNullable = true, Length = 100)]
public string Moudle { get; set; }
}

@ -0,0 +1,30 @@
using DS.Module.Core;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.System.Dtos;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.System.Interface
{
public interface ISysFileService
{
/// <summary>
/// 添加系统附件
/// </summary>
/// <param name="file"></param>
/// <param name="req"></param>
/// <returns></returns>
public Task<DataResult<string>> AddFile(IFormFile file, [FromForm] SysFileReq req);
/// <summary>
/// 获取系统附件
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<List<SysFileRes>> GetSysFileList(string id);
}
}

@ -0,0 +1,116 @@
using DS.Module.Core;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Entity;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.System.Method
{
public class SysFileService : ISysFileService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly IWebHostEnvironment _environment;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public SysFileService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
_environment = _serviceProvider.GetRequiredService<IWebHostEnvironment>();
}
/// <summary>
/// 添加系统附件
/// </summary>
/// <param name="file"></param>
/// <param name="req"></param>
/// <returns></returns>
public async Task<DataResult<string>> AddFile(IFormFile file, [FromForm] SysFileReq req)
{
//未上传文件
if (file == null || file.Length == 0)
{
return await Task.FromResult(DataResult<string>.Failed("附件不存在!"));
}
var limitFiles = AppSetting.app(new string[] { "FileSettings", "FileType" });
var originalFilename = file.FileName; // 文件原始名称
var fileSuffix = Path.GetExtension(file.FileName).ToLower(); // 文件后缀
if (!limitFiles.Contains(fileSuffix))
{
return await Task.FromResult(DataResult<string>.Failed("不允许的文件类型!"));
}
var basePath = AppSetting.app(new string[] { "FileSettings", "BasePath" });
var relativePath = AppSetting.app(new string[] { "FileSettings", "RelativePath" });
var dirAbs = string.Empty;
var fileRelaPath = string.Empty;
var fileAbsPath = string.Empty;
if (string.IsNullOrEmpty(basePath))
{
dirAbs = Path.Combine(_environment.WebRootPath, relativePath);
}
else
{
dirAbs = Path.Combine(basePath, relativePath);
}
if (!Directory.Exists(dirAbs))
Directory.CreateDirectory(dirAbs);
// 先存库获取Id
var id = SnowFlakeSingle.Instance.NextId();
var fileSaveName = $"{id}{fileSuffix}".ToLower();
fileRelaPath = Path.Combine(relativePath, fileSaveName).ToLower();
fileAbsPath = Path.Combine(dirAbs, fileSaveName).ToLower();
var newFile = new SysFile
{
Id = id,
FileName = originalFilename,
FilePath = fileRelaPath,
TypeCode = req.TypeCode,
TypeName = req.TypeName,
LinkId = req.LinkId,
};
await db.Insertable(newFile).ExecuteCommandAsync();
using (var stream = File.Create(fileAbsPath))
{
await file.CopyToAsync(stream);
}
return await Task.FromResult(DataResult<string>.Success(fileRelaPath));
}
/// <summary>
/// 获取系统附件
/// </summary>
/// <param name="id">业务id</param>
/// <returns></returns>
public DataResult<List<SysFileRes>> GetSysFileList(string id)
{
var data = db.Queryable<SysFile>()
.Where(a => a.LinkId == long.Parse(id))
.Select<SysFileRes>()
.ToList();
return DataResult<List<SysFileRes>>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}
}

@ -0,0 +1,55 @@
using DS.Module.Core;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Sea.Dtos;
using DS.WMS.Core.Sea.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 业务附件模块
/// </summary>
public class OpFileController : ApiController
{
private readonly IOpFileService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public OpFileController(IOpFileService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 添加附件
/// </summary>
/// <param name="file">文件信息</param>
/// <param name="req">业务附件请求实体</param>
/// <returns></returns>
[HttpPost]
[Route("AddFile")]
public async Task<DataResult<string>> AddFile(IFormFile file, [FromForm] OpFileReq req)
{
var res = _invokeService.AddFile( file, req);
return await res;
}
/// <summary>
/// 获取业务附件
/// </summary>
/// <param name="id">业务id</param>
/// <returns></returns>
[HttpGet]
[Route("GetOpFileList")]
public DataResult<List<OpFileRes>> GetOpFileList([FromQuery] string id)
{
var res = _invokeService.GetOpFileList(id);
return res;
}
}

@ -1,47 +1,52 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"JwtSettings": {
"Issuer": "vol.core.owner",
"Audience": "vol.core",
"User": "C5ABA9E202D94C43A3CA66002BF77FAF",
"SecretKey": "sdfsdfsrty45634kkhllghtdgdfss345t678fs"
},
"Cors": {
"PolicyName": "WMSCore.API",
"Url": "http://localhost:8000,http://localhost:5999,http://localhost:8088,http://localhost:5173,http://0.0.0.0:5999,http://0.0.0.0:9995,http://localhost:9995,http://60.209.125.238:9995,http://localhost:3000,https://localhost:3100,http://47.104.255.182:3100,http://47.104.255.182:3110,https://localhost:3110,http://localhost:8080,http://localhost:8081,http://localhost:8082,http://localhost:8083,http://localhost:8084"
},
"DBInfo": {
"DefaultDbConnId": "1288018625843826688",
"DefaultDbType": 0,
"DefaultDbString": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_dev",
"DBS": [
{
"ConnId": "1288018625843826680",
"DBType": 0,
"Enabled": false,
"HitRate": 40,
"Connection": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_log"
}
]
},
"SwaggerDoc": {
"ContactName": "WmsMainAPI",
"ContactEmail": "Wms API.Core@xxx.com",
"ContactUrl": "https://www.xxx.com",
"Version": "1.0",
"Title": "Wms API",
"Description": "Wms Web API"
},
"Middleware": {
"RecordAccessLogs": {
"Enabled": true,
"IgnoreApis": "/api/permission/getnavigationbar,/api/monitor/getids4users,/api/monitor/getaccesslogs,/api/monitor/server,/api/monitor/getactiveusers,/api/monitor/server,"
}
},
"FileSettings": {
"BasePath": "", //使
"RelativePath": "LinkAttach",
"FileType": [ ".xls", ".xlsx", ".pdf", ".txt", ".pms" ]
}
},
"AllowedHosts": "*",
"JwtSettings": {
"Issuer": "vol.core.owner",
"Audience": "vol.core",
"User": "C5ABA9E202D94C43A3CA66002BF77FAF",
"SecretKey": "sdfsdfsrty45634kkhllghtdgdfss345t678fs"
},
"Cors": {
"PolicyName": "WMSCore.API",
"Url": "http://localhost:8000,http://localhost:5999,http://localhost:8088,http://localhost:5173,http://0.0.0.0:5999,http://0.0.0.0:9995,http://localhost:9995,http://60.209.125.238:9995,http://localhost:3000,https://localhost:3100,http://47.104.255.182:3100,http://47.104.255.182:3110,https://localhost:3110,http://localhost:8080,http://localhost:8081,http://localhost:8082,http://localhost:8083,http://localhost:8084"
},
"DBInfo": {
"DefaultDbConnId": "1288018625843826688",
"DefaultDbType": 0,
"DefaultDbString": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_dev",
"DBS": [
{
"ConnId": "1288018625843826680",
"DBType": 0,
"Enabled": false,
"HitRate": 40,
"Connection": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_log"
}
]
},
"SwaggerDoc": {
"ContactName": "WmsMainAPI",
"ContactEmail": "Wms API.Core@xxx.com",
"ContactUrl": "https://www.xxx.com",
"Version": "1.0",
"Title": "Wms API",
"Description": "Wms Web API"
},
"Middleware": {
"RecordAccessLogs": {
"Enabled": true,
"IgnoreApis": "/api/permission/getnavigationbar,/api/monitor/getids4users,/api/monitor/getaccesslogs,/api/monitor/server,/api/monitor/getactiveusers,/api/monitor/server,"
}
}
}
Loading…
Cancel
Save