@@ -0,0 +1,114 @@ | |||
using BPA.NewKitChen.Manage.Application.Auth.Dtos; | |||
using BPA.NewKitChen.Manage.Comm.Const; | |||
using BPA.NewKitChen.Manage.Comm.Enum; | |||
using BPA.NewKitChen.Manage.Core.Org; | |||
using Mapster; | |||
using Newtonsoft.Json; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Diagnostics; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.Auth | |||
{ | |||
public class AuthService : IAuthService, IDynamicApiController | |||
{ | |||
private readonly ISqlSugarClient _db; | |||
private readonly IHttpContextAccessor _httpContextAccessor; | |||
public AuthService(ISqlSugarClient db, IHttpContextAccessor httpContextAccessor) | |||
{ | |||
_db = db; | |||
_httpContextAccessor = httpContextAccessor; | |||
} | |||
/// <summary> | |||
/// 用户名密码登录 | |||
/// </summary> | |||
/// <param name="LoginType">1平台用户登录,0加盟商登录</param> | |||
/// <param name="input"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/auth/login")] | |||
[AllowAnonymous] | |||
public async Task<LoginOutInfo> Login([FromHeader] string logintype, [Required] LoginInput input) | |||
{ | |||
// 获取加密后的密码 | |||
var encryptPasswod = MD5Encryption.Encrypt(input.Password).ToLower(); | |||
// 判断用户名和密码是否正确 忽略全局过滤器 | |||
var user = await _db.Queryable<BPA_Users>().Where(u => u.Account.Equals(input.Account) | |||
&& u.Password.Equals(encryptPasswod) | |||
&& u.IsDeleted == 0 | |||
).FirstAsync(); | |||
_ = user ?? throw Oops.Oh("用户名或密码不正确"); | |||
//获取权限 | |||
var company = _db.Queryable<BPA_Company>().First(x => x.Id == user.GroupId && x.Status == CommonStatus.ENABLE && x.IsDeleted == 0); | |||
string CLAINM_SUPERADMIN = "Customer"; | |||
if (user.AdminType == 0) | |||
{ | |||
CLAINM_SUPERADMIN = "1"; | |||
} | |||
_ = company ?? throw Oops.Oh("企业被锁定,请联系管理员"); | |||
var accessToken = JWTEncryption.Encrypt(new Dictionary<string, object> | |||
{ | |||
{ ClaimConst.CLAINM_USERID, user.Id }, | |||
{ ClaimConst.LoginType, 0}, | |||
{ ClaimConst.CLAINM_ACCOUNT, user.Account }, | |||
{ ClaimConst.CLAINM_NAME, user.Name }, | |||
{ ClaimConst.CLAINM_SUPERADMIN, CLAINM_SUPERADMIN }, | |||
{ ClaimConst.GroupId, user.GroupId}, | |||
{ ClaimConst.OrgId,user.SysOrgId}, | |||
//{ ClaimConst.SupplyPlatformId,company?.SupplyPlatformId} | |||
}, 1440); | |||
// 设置Swagger自动登录 | |||
// _httpContextAccessor.SigninToSwagger(accessToken); | |||
// 生成刷新Token令牌 | |||
var refreshToken = JWTEncryption.GenerateRefreshToken(accessToken, 1445); | |||
_httpContextAccessor.HttpContext.Response.Headers["access-token"] = accessToken; | |||
// 设置刷新Token令牌 | |||
_httpContextAccessor.HttpContext.Response.Headers["x-access-token"] = refreshToken; | |||
LoginOutInfo loginOutInfo = new LoginOutInfo() | |||
{ | |||
userID = user.Id, | |||
token = accessToken | |||
}; | |||
return loginOutInfo; | |||
} | |||
/// <summary> | |||
/// 获取当前登录用户信息 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet("/api/auth/getLoginUser")] | |||
[AllowAnonymous] | |||
public async Task<LoginOutput> GetLoginUserAsync() | |||
{ | |||
string userid = App.User.FindFirst(ClaimConst.CLAINM_USERID)?.Value; | |||
var user = await _db.Queryable<BPA_Users>().Where(u => u.Id == userid).FirstAsync(); | |||
if (user != null) | |||
{ | |||
var reslut = user.Adapt<LoginOutput>(); | |||
return reslut; | |||
} | |||
else | |||
{ | |||
throw Oops.Oh($"用户不存在"); | |||
} | |||
} | |||
/// <summary> | |||
/// 退出 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet("/api/auth/logout")] | |||
public async Task LogoutAsync() | |||
{ | |||
// _httpContextAccessor.SignoutToSwagger(); | |||
await Task.CompletedTask; | |||
} | |||
} | |||
} |
@@ -0,0 +1,29 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.Auth.Dtos | |||
{ | |||
public class LoginInput | |||
{ | |||
/// <summary> | |||
/// 用户名 | |||
/// </summary> | |||
/// <example>superAdmin</example> | |||
public string Account { get; set; } | |||
/// <summary> | |||
/// 密码 | |||
/// </summary> | |||
/// <example>123456</example> | |||
public string Password { get; set; } | |||
//public string RoleId { get; set; } | |||
//public string Name { get; set; } | |||
///// <summary> | |||
///// 0正常 1停用 2删除 | |||
///// </summary> | |||
//public int Stutas { get; set; } | |||
} | |||
} |
@@ -0,0 +1,17 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.Auth.Dtos | |||
{ | |||
public class LoginOutInfo | |||
{ | |||
public string userID { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public string token { get; set; } | |||
} | |||
} |
@@ -0,0 +1,41 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.Auth.Dtos | |||
{ | |||
public class LoginOutput | |||
{ | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 用户名称 | |||
/// </summary> | |||
public string Name { get; set; } | |||
/// <summary> | |||
/// 登录账号 | |||
/// </summary> | |||
public string Account { get; set; } | |||
/// <summary> | |||
/// 登录密码 | |||
/// </summary> | |||
public string Password { get; set; } | |||
/// <summary> | |||
/// 手机号码 | |||
/// </summary> | |||
public string Phone { get; set; } | |||
/// <summary> | |||
/// 管理员类型-超级管理员_1、管理员_2、普通账号_ | |||
/// </summary> | |||
public int AdminType { get; set; } | |||
/// <summary> | |||
/// 归属组织 | |||
/// </summary> | |||
public string SysOrgId { get; set; } | |||
/// <summary> | |||
/// 加盟商id | |||
/// </summary> | |||
public string GroupId { get; set; } | |||
} | |||
} |
@@ -0,0 +1,16 @@ | |||
using BPA.NewKitChen.Manage.Application.Auth.Dtos; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.Auth | |||
{ | |||
public interface IAuthService | |||
{ | |||
Task<LoginOutInfo> Login([FromHeader] string logintype, [Required] LoginInput input); | |||
Task<LoginOutput> GetLoginUserAsync(); | |||
Task LogoutAsync(); | |||
} | |||
} |
@@ -0,0 +1,33 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>net6.0</TargetFramework> | |||
<NoWarn>1701;1702;1591</NoWarn> | |||
<DocumentationFile>BPA.NewKitChen.Manage.Application.xml</DocumentationFile> | |||
<ImplicitUsings>enable</ImplicitUsings> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<None Remove="applicationsettings.json" /> | |||
<None Remove="BPA.NewKitChen.Manage.Application.xml" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Content Include="applicationsettings.json"> | |||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||
</Content> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\BPA.NewKitChen.Manage.Comm\BPA.NewKitChen.Manage.Comm.csproj" /> | |||
<ProjectReference Include="..\BPA.NewKitChen.Manage.Core\BPA.NewKitChen.Manage.Core.csproj" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Org\Dtos\" /> | |||
</ItemGroup> | |||
</Project> |
@@ -0,0 +1,605 @@ | |||
<?xml version="1.0"?> | |||
<doc> | |||
<assembly> | |||
<name>BPA.NewKitChen.Manage.Application</name> | |||
</assembly> | |||
<members> | |||
<member name="M:BPA.NewKitChen.Manage.Application.Auth.AuthService.Login(System.String,BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginInput)"> | |||
<summary> | |||
用户名密码登录 | |||
</summary> | |||
<param name="LoginType">1平台用户登录,0加盟商登录</param> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.Auth.AuthService.GetLoginUserAsync"> | |||
<summary> | |||
获取当前登录用户信息 | |||
</summary> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.Auth.AuthService.LogoutAsync"> | |||
<summary> | |||
退出 | |||
</summary> | |||
<returns></returns> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginInput.Account"> | |||
<summary> | |||
用户名 | |||
</summary> | |||
<example>superAdmin</example> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginInput.Password"> | |||
<summary> | |||
密码 | |||
</summary> | |||
<example>123456</example> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutInfo.token"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.Name"> | |||
<summary> | |||
用户名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.Account"> | |||
<summary> | |||
登录账号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.Password"> | |||
<summary> | |||
登录密码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.Phone"> | |||
<summary> | |||
手机号码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.AdminType"> | |||
<summary> | |||
管理员类型-超级管理员_1、管理员_2、普通账号_ | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.SysOrgId"> | |||
<summary> | |||
归属组织 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Application.DictDataServices"> | |||
<summary> | |||
数据字典服务接口 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.GetDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto)"> | |||
<summary> | |||
查询字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.AddDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
添加字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.GetDicList(System.String)"> | |||
<summary> | |||
根据字典类型编码查询 | |||
</summary> | |||
<param name="typeCode"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.UpdateDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
修改字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.BatchDelDictData(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典信息 | |||
</summary> | |||
<param name="ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.#ctor(BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService)"> | |||
<summary> | |||
</summary> | |||
<param name="dicttypeServices"></param> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.GetDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto)"> | |||
<summary> | |||
查询字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.Add(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
添加字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.Update(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
修改字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.Delete(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典类型信息 | |||
</summary> | |||
<param name="ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.GetDictType"> | |||
<summary> | |||
字典类型下拉数据列表 | |||
</summary> | |||
<returns></returns> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto.TypeId"> | |||
<summary> | |||
字典类型id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto.Value"> | |||
<summary> | |||
字典值 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto.Code"> | |||
<summary> | |||
字典编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Id"> | |||
<summary> | |||
Id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.TypeId"> | |||
<summary> | |||
字典类型编号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.TypeName"> | |||
<summary> | |||
字典类型名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.TypeCode"> | |||
<summary> | |||
字典类型编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Value"> | |||
<summary> | |||
字典值 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Code"> | |||
<summary> | |||
字典编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Sort"> | |||
<summary> | |||
排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Status"> | |||
<summary> | |||
状态 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.CreateBy"> | |||
<summary> | |||
字典创建者 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.CreateAt"> | |||
<summary> | |||
字典创建时间 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.UpdateAt"> | |||
<summary> | |||
字典创建时间 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto.Id"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto.Name"> | |||
<summary> | |||
类型名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto.Code"> | |||
<summary> | |||
类型编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Id"> | |||
<summary> | |||
字典类型编号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Name"> | |||
<summary> | |||
字典类型名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Code"> | |||
<summary> | |||
字典类型编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Sort"> | |||
<summary> | |||
字典类型排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Status"> | |||
<summary> | |||
字典类型状态 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Remark"> | |||
<summary> | |||
字典类型备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Name"> | |||
<summary> | |||
菜单名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Pid"> | |||
<summary> | |||
父级id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Code"> | |||
<summary> | |||
菜单编码 唯一 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Icon"> | |||
<summary> | |||
图标 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Router"> | |||
<summary> | |||
路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Component"> | |||
<summary> | |||
组件路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Visible"> | |||
<summary> | |||
是否可见 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Sort"> | |||
<summary> | |||
排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Pid"> | |||
<summary> | |||
父Id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Name"> | |||
<summary> | |||
名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Code"> | |||
<summary> | |||
编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Router"> | |||
<summary> | |||
路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Status"> | |||
<summary> | |||
状态 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Icon"> | |||
<summary> | |||
图标 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.CreateAt"> | |||
<summary> | |||
创建时间 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Sort"> | |||
<summary> | |||
排序号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Component"> | |||
<summary> | |||
组件 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeOutput.Title"> | |||
<summary> | |||
标签 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeOutput.Key"> | |||
<summary> | |||
主键 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeOutput.Children"> | |||
<summary> | |||
子菜单 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictDataService.GetDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto)"> | |||
<summary> | |||
查询字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictDataService.AddDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
添加字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictDataService.UpdateDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
修改字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictDataService.BatchDelDictData(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典信息 | |||
</summary> | |||
<param name="Ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService.GetDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto)"> | |||
<summary> | |||
查询字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService.AddDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
添加字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService.UpdateDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
修改字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService.BathchDelDictType(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典类型信息 | |||
</summary> | |||
<param name="ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.MenuServices.Add(BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput)"> | |||
<summary> | |||
添加菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.MenuServices.Update(BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput)"> | |||
<summary> | |||
编辑菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.MenuServices.Delete(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.MenuServices.MenuTree(System.String)"> | |||
<summary> | |||
查询菜单树 | |||
</summary> | |||
<param name="GetType"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="F:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService._db"> | |||
<summary> | |||
核心对象:拥有完整的SqlSugar全部功能 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.#ctor(SqlSugar.ISqlSugarClient)"> | |||
<summary> | |||
construct | |||
</summary> | |||
<param name="sqlSugarRepository"></param> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.GetDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto)"> | |||
<summary> | |||
查询字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.AddDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
添加字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.UpdateDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
修改字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.BathchDelDictType(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典类型信息 | |||
</summary> | |||
<param name="ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.GetDictType"> | |||
<summary> | |||
下拉列表 | |||
</summary> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.GetMenuTreePage(BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeSearchDtoInput)"> | |||
<summary> | |||
分页查询 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.Add(BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput)"> | |||
<summary> | |||
新增菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.Update(BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput)"> | |||
<summary> | |||
编辑菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.Delete(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.MenuTree(System.String)"> | |||
<summary> | |||
查询菜单树 | |||
</summary> | |||
<param name="GetType"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="F:BPA.NewKitChen.Manage.Application.DictDataService._db"> | |||
<summary> | |||
核心对象:拥有完整的SqlSugar全部功能 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.#ctor(SqlSugar.ISqlSugarClient)"> | |||
<summary> | |||
construct | |||
</summary> | |||
<param name="sqlSugarRepository"></param> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.GetDicList(System.String)"> | |||
<summary> | |||
根据字典类型编码查询 | |||
</summary> | |||
<param name="TypeCode"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.GetDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto)"> | |||
<summary> | |||
查询字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.AddDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
添加字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.UpdateDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
修改字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.BatchDelDictData(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典信息 | |||
</summary> | |||
<param name="Ids"></param> | |||
<returns></returns> | |||
</member> | |||
</members> | |||
</doc> |
@@ -0,0 +1,15 @@ | |||
global using Furion; | |||
global using Furion.DataEncryption; | |||
global using Furion.DataValidation; | |||
global using Furion.DependencyInjection; | |||
global using Furion.DynamicApiController; | |||
global using Furion.Extensions; | |||
global using Furion.FriendlyException; | |||
global using Furion.Logging; | |||
global using Mapster; | |||
global using Microsoft.AspNetCore.Authorization; | |||
global using Microsoft.AspNetCore.Http; | |||
global using Microsoft.AspNetCore.Mvc; | |||
global using Microsoft.CodeAnalysis; | |||
global using SqlSugar; | |||
global using System.ComponentModel.DataAnnotations; |
@@ -0,0 +1,12 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.Org.Interface | |||
{ | |||
public interface ICompanyService | |||
{ | |||
} | |||
} |
@@ -0,0 +1,18 @@ | |||
using BPA.NewKitChen.Manage.Application.Org.Interface; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.Org.Services | |||
{ | |||
public class CompanyService: ICompanyService, ITransient | |||
{ | |||
private readonly ISqlSugarClient _db; | |||
public CompanyService(ISqlSugarClient db) | |||
{ | |||
_db = db; | |||
} | |||
} | |||
} |
@@ -0,0 +1,71 @@ | |||
using BPA.NewKitChen.Manage.Application.System.Dtos; | |||
using BPA.NewKitChen.Manage.Application.System.Interface; | |||
using BPA.NewKitChen.Manage.Core.Base; | |||
using BPA.NewKitChen.Manage.Core.system; | |||
namespace BPA.NewKitChen.Manage.Application | |||
{ | |||
/// <summary> | |||
/// 数据字典服务接口 | |||
/// </summary> | |||
[ApiDescriptionSettings("SYS", Tag = "字典信息")] | |||
public class DictDataServices : IDynamicApiController | |||
{ | |||
private readonly IDictDataService _dictDataService; | |||
public DictDataServices(IDictDataService dictDataService) | |||
{ | |||
_dictDataService = dictDataService; | |||
} | |||
/// <summary> | |||
/// 查询字典信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/dictdata/getdictdata")] | |||
public async Task<PageUtil> GetDictData(DictDataQueryDto dto) | |||
{ | |||
return await _dictDataService.GetDictData(dto); | |||
} | |||
/// <summary> | |||
/// 添加字典信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/dictdata/adddictdata")] | |||
public async Task<bool> AddDictData(DictDataDto dto) | |||
{ | |||
return await _dictDataService.AddDictData(dto); | |||
} | |||
/// <summary> | |||
/// 根据字典类型编码查询 | |||
/// </summary> | |||
/// <param name="typeCode"></param> | |||
/// <returns></returns> | |||
[HttpGet("/api/dictdata/getdiclist")] | |||
public async Task<List<BPA_DictData>> GetDicList(string typeCode) | |||
{ | |||
return await _dictDataService.GetDicList(typeCode); | |||
} | |||
/// <summary> | |||
/// 修改字典信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/dictdata/updatedictdata")] | |||
public async Task<bool> UpdateDictData(DictDataDto dto) | |||
{ | |||
return await _dictDataService.UpdateDictData(dto); | |||
} | |||
/// <summary> | |||
/// 删除字典信息 | |||
/// </summary> | |||
/// <param name="ids"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/dictdata/batchdeldictdata")] | |||
public async Task<bool> BatchDelDictData(List<string> ids) | |||
{ | |||
return await _dictDataService.BatchDelDictData(ids); | |||
} | |||
} | |||
} |
@@ -0,0 +1,78 @@ | |||
using BPA.NewKitChen.Manage.Application.System.Dtos; | |||
using BPA.NewKitChen.Manage.Application.System.Interface; | |||
using BPA.NewKitChen.Manage.Core.Base; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
using System.Xml.Linq; | |||
namespace BPA.NewKitChen.Manage.Application.System | |||
{ | |||
[ApiDescriptionSettings("SYS", Tag = "字典类型")] | |||
public class DictTypeServices: IDynamicApiController, ITransient | |||
{ | |||
IDictTypeService _dicttypeServices; | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="dicttypeServices"></param> | |||
public DictTypeServices(IDictTypeService dicttypeServices) | |||
{ | |||
_dicttypeServices = dicttypeServices; | |||
} | |||
#region 字典类型信息 | |||
/// <summary> | |||
/// 查询字典类型信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/dicttype/getdicttype")] | |||
public async Task<PageUtil> GetDictType([FromBody] DictTypeQueryDto dto) | |||
{ | |||
return await _dicttypeServices.GetDictType(dto); | |||
} | |||
/// <summary> | |||
/// 添加字典类型信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/dicttype/adddicttype")] | |||
public async Task<bool> Add(DictTypeDto dto) | |||
{ | |||
return await _dicttypeServices.AddDictType(dto); | |||
} | |||
/// <summary> | |||
/// 修改字典类型信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/dicttype/updatedicttype")] | |||
public async Task<bool> Update(DictTypeDto dto) | |||
{ | |||
return await _dicttypeServices.UpdateDictType(dto); | |||
} | |||
/// <summary> | |||
/// 删除字典类型信息 | |||
/// </summary> | |||
/// <param name="ids"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/dicttype/deletetedicttype")] | |||
public async Task<bool> Delete(List<string> ids) | |||
{ | |||
return await _dicttypeServices.BathchDelDictType(ids); | |||
} | |||
/// <summary> | |||
/// 字典类型下拉数据列表 | |||
/// </summary> | |||
/// <returns></returns> | |||
[HttpGet("/api/dicttype/dicttype")] | |||
public Dictionary<string, object> GetDictType() | |||
{ | |||
return _dicttypeServices.GetDictType(); | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,29 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Dtos | |||
{ | |||
public class DictDataDto | |||
{ | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 字典类型id | |||
/// </summary> | |||
public string TypeId { get; set; } | |||
/// <summary> | |||
/// 字典值 | |||
/// </summary> | |||
public string Value { get; set; } | |||
/// <summary> | |||
/// 字典编码 | |||
/// </summary> | |||
public string Code { get; set; } | |||
/// <summary> | |||
/// 备注 | |||
/// </summary> | |||
public string Remark { get; set; } | |||
} | |||
} |
@@ -0,0 +1,61 @@ | |||
using BPA.NewKitChen.Manage.Core.Base; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Dtos | |||
{ | |||
public class DictDataQueryDto:PageInputBase | |||
{ | |||
/// <summary> | |||
/// Id | |||
/// </summary> | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 字典类型编号 | |||
/// </summary> | |||
public string TypeId { get; set; } | |||
/// <summary> | |||
/// 字典类型名称 | |||
/// </summary> | |||
public string TypeName { get; set; } | |||
/// <summary> | |||
/// 字典类型编码 | |||
/// </summary> | |||
public string TypeCode { get; set; } | |||
/// <summary> | |||
/// 字典值 | |||
/// </summary> | |||
public string Value { get; set; } | |||
/// <summary> | |||
/// 字典编码 | |||
/// </summary> | |||
public string Code { get; set; } | |||
/// <summary> | |||
/// 排序 | |||
/// </summary> | |||
public int Sort { get; set; } | |||
/// <summary> | |||
/// 备注 | |||
/// </summary> | |||
public string Remark { get; set; } | |||
/// <summary> | |||
/// 状态 | |||
/// </summary> | |||
public string Status { get; set; } | |||
/// <summary> | |||
/// 字典创建者 | |||
/// </summary> | |||
public string CreateBy { get; set; } | |||
/// <summary> | |||
/// 字典创建时间 | |||
/// </summary> | |||
public DateTime? CreateAt { get; set; } | |||
/// <summary> | |||
/// 字典创建时间 | |||
/// </summary> | |||
public DateTime? UpdateAt { get; set; } | |||
} | |||
} |
@@ -0,0 +1,28 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Dtos | |||
{ | |||
public class DictTypeDto | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 类型名称 | |||
/// </summary> | |||
public string Name { get; set; } | |||
/// <summary> | |||
/// 类型编码 | |||
/// </summary> | |||
public string Code { get; set; } | |||
/// <summary> | |||
/// 备注 | |||
/// </summary> | |||
public string Remark { get; set; } | |||
} | |||
} |
@@ -0,0 +1,37 @@ | |||
using BPA.NewKitChen.Manage.Core.Base; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Dtos | |||
{ | |||
public class DictTypeQueryDto: PageInputBase | |||
{ | |||
/// <summary> | |||
/// 字典类型编号 | |||
/// </summary> | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 字典类型名称 | |||
/// </summary> | |||
public string Name { get; set; } | |||
/// <summary> | |||
/// 字典类型编码 | |||
/// </summary> | |||
public string Code { get; set; } | |||
/// <summary> | |||
/// 字典类型排序 | |||
/// </summary> | |||
public int Sort { get; set; } | |||
/// <summary> | |||
/// 字典类型状态 | |||
/// </summary> | |||
public string Status { get; set; } | |||
/// <summary> | |||
/// 字典类型备注 | |||
/// </summary> | |||
public string Remark { get; set; } | |||
} | |||
} |
@@ -0,0 +1,49 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Dtos | |||
{ | |||
public class MenuDtoInput | |||
{ | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 菜单名称 | |||
/// </summary> | |||
public string Name { get; set; } | |||
/// <summary> | |||
/// 父级id | |||
/// </summary> | |||
public string Pid { get; set; } | |||
/// <summary> | |||
/// 菜单编码 唯一 | |||
/// </summary> | |||
public string Code { get; set; } | |||
/// <summary> | |||
/// 图标 | |||
/// </summary> | |||
public string Icon { get; set; } | |||
/// <summary> | |||
/// 路径 | |||
/// </summary> | |||
public string Router { get; set; } | |||
/// <summary> | |||
/// 组件路径 | |||
/// </summary> | |||
public string Component { get; set; } | |||
/// <summary> | |||
/// 是否可见 | |||
/// </summary> | |||
public bool Visible { get; set; } | |||
/// <summary> | |||
/// 排序 | |||
/// </summary> | |||
public int Sort { get; set; } | |||
/// <summary> | |||
/// 备注 | |||
/// </summary> | |||
public string Remark { get; set; } | |||
} | |||
} |
@@ -0,0 +1,60 @@ | |||
using BPA.NewKitChen.Manage.Comm.Enum; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Dtos | |||
{ | |||
public class MenuTreeDtoOutput | |||
{ | |||
public string Id { get; set; } | |||
/// <summary> | |||
/// 父Id | |||
/// </summary> | |||
public string Pid { get; set; } | |||
/// <summary> | |||
/// 名称 | |||
/// </summary> | |||
public string Name { get; set; } | |||
/// <summary> | |||
/// 编码 | |||
/// </summary> | |||
public string Code { get; set; } | |||
/// <summary> | |||
/// 路径 | |||
/// </summary> | |||
public string Router { get; set; } | |||
/// <summary> | |||
/// 状态 | |||
/// </summary> | |||
public CommonStatus? Status { get; set; } | |||
/// <summary> | |||
/// 图标 | |||
/// </summary> | |||
public string Icon { get; set; } | |||
/// <summary> | |||
/// 创建时间 | |||
/// </summary> | |||
public DateTime? CreateAt { get; set; } | |||
/// <summary> | |||
/// 排序号 | |||
/// </summary> | |||
public int Sort { get; set; } | |||
/// <summary> | |||
/// 组件 | |||
/// </summary> | |||
public string Component { get; set; } | |||
private List<MenuTreeDtoOutput> _Children; | |||
public List<MenuTreeDtoOutput> Children | |||
{ | |||
get { return _Children; } | |||
set | |||
{ | |||
_Children = value.Count == 0 ? null : value; | |||
} | |||
} | |||
} | |||
} |
@@ -0,0 +1,25 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Dtos | |||
{ | |||
public class MenuTreeOutput | |||
{ | |||
/// <summary> | |||
/// 标签 | |||
/// </summary> | |||
public string Title { get; set; } | |||
/// <summary> | |||
/// 主键 | |||
/// </summary> | |||
public string Key { get; set; } | |||
public string value { get; set; } | |||
/// <summary> | |||
/// 子菜单 | |||
/// </summary> | |||
public List<MenuTreeOutput> Children { get; set; } | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Dtos | |||
{ | |||
public class MenuTreeSearchDtoInput | |||
{ | |||
public string Code { get; set; } | |||
public string Name { get; set; } | |||
} | |||
} |
@@ -0,0 +1,35 @@ | |||
using BPA.NewKitChen.Manage.Application.System.Dtos; | |||
using BPA.NewKitChen.Manage.Core.Base; | |||
using BPA.NewKitChen.Manage.Core.system; | |||
namespace BPA.NewKitChen.Manage.Application.System.Interface | |||
{ | |||
public interface IDictDataService | |||
{ | |||
/// <summary> | |||
/// 查询字典信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
Task<PageUtil> GetDictData(DictDataQueryDto dto); | |||
/// <summary> | |||
/// 添加字典信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
Task<bool> AddDictData(DictDataDto dto); | |||
Task<List<BPA_DictData>> GetDicList(string TypeCode); | |||
/// <summary> | |||
/// 修改字典信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
Task<bool> UpdateDictData(DictDataDto dto); | |||
/// <summary> | |||
/// 删除字典信息 | |||
/// </summary> | |||
/// <param name="Ids"></param> | |||
/// <returns></returns> | |||
Task<bool> BatchDelDictData(List<string> Ids); | |||
} | |||
} |
@@ -0,0 +1,39 @@ | |||
using BPA.NewKitChen.Manage.Application.System.Dtos; | |||
using BPA.NewKitChen.Manage.Core.Base; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Interface | |||
{ | |||
public interface IDictTypeService | |||
{ | |||
/// <summary> | |||
/// 查询字典类型信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
Task<PageUtil> GetDictType(DictTypeQueryDto dto); | |||
/// <summary> | |||
/// 添加字典类型信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
Task<bool> AddDictType(DictTypeDto dto); | |||
/// <summary> | |||
/// 修改字典类型信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
Task<bool> UpdateDictType(DictTypeDto dto); | |||
/// <summary> | |||
/// 删除字典类型信息 | |||
/// </summary> | |||
/// <param name="ids"></param> | |||
/// <returns></returns> | |||
Task<bool> BathchDelDictType(List<string> ids); | |||
Dictionary<string, object> GetDictType(); | |||
} | |||
} |
@@ -0,0 +1,18 @@ | |||
using BPA.NewKitChen.Manage.Application.System.Dtos; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Interface | |||
{ | |||
public interface IMenuService | |||
{ | |||
Task<List<MenuTreeDtoOutput>> GetMenuTreePage(MenuTreeSearchDtoInput input); | |||
Task<bool> Add(MenuDtoInput input); | |||
Task<bool> Update(MenuDtoInput input); | |||
Task<bool> Delete(List<string> input); | |||
Task<List<MenuTreeOutput>> MenuTree(string getType); | |||
} | |||
} |
@@ -0,0 +1,65 @@ | |||
using BPA.NewKitChen.Manage.Application.System.Dtos; | |||
using BPA.NewKitChen.Manage.Application.System.Interface; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System | |||
{ | |||
[ApiDescriptionSettings("SYS", Tag = "菜单信息")] | |||
public class MenuServices: IDynamicApiController | |||
{ | |||
IMenuService _menuService; | |||
public MenuServices(IMenuService menuService) | |||
{ | |||
_menuService = menuService; | |||
} | |||
[HttpPost("/api/menu/getmenutreepage")] | |||
public async Task<List<MenuTreeDtoOutput>> GetMenuTreePage(MenuTreeSearchDtoInput input) | |||
{ | |||
return await _menuService.GetMenuTreePage(input); | |||
} | |||
/// <summary> | |||
/// 添加菜单 | |||
/// </summary> | |||
/// <param name="input"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/menu/add")] | |||
public async Task<bool> Add(MenuDtoInput input) | |||
{ | |||
return await _menuService.Add(input); | |||
} | |||
/// <summary> | |||
/// 编辑菜单 | |||
/// </summary> | |||
/// <param name="input"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/menu/update")] | |||
public async Task<bool> Update(MenuDtoInput input) | |||
{ | |||
return await _menuService.Update(input); | |||
} | |||
/// <summary> | |||
/// 删除菜单 | |||
/// </summary> | |||
/// <param name="input"></param> | |||
/// <returns></returns> | |||
[HttpPost("/api/menu/delete")] | |||
public async Task<bool> Delete(List<string> input) | |||
{ | |||
return await _menuService.Delete(input); | |||
} | |||
/// <summary> | |||
/// 查询菜单树 | |||
/// </summary> | |||
/// <param name="GetType"></param> | |||
/// <returns></returns> | |||
[HttpGet("/api/menu/menutree")] | |||
public async Task<List<MenuTreeOutput>> MenuTree(string getType) | |||
{ | |||
return await _menuService.MenuTree(getType); | |||
} | |||
} | |||
} |
@@ -0,0 +1,157 @@ | |||
using BPA.NewKitChen.Manage.Application.System.Dtos; | |||
using BPA.NewKitChen.Manage.Application.System.Interface; | |||
using BPA.NewKitChen.Manage.Comm.Enum; | |||
using BPA.NewKitChen.Manage.Core.Base; | |||
using BPA.NewKitChen.Manage.Core.system; | |||
using BPA.NewKitChen.Manage.Core.System; | |||
namespace BPA.NewKitChen.Manage.Application | |||
{ | |||
public class DictDataService : IDictDataService, ITransient | |||
{ | |||
/// <summary> | |||
/// 核心对象:拥有完整的SqlSugar全部功能 | |||
/// </summary> | |||
private readonly ISqlSugarClient _db; | |||
/// <summary> | |||
/// construct | |||
/// </summary> | |||
/// <param name="sqlSugarRepository"></param> | |||
public DictDataService(ISqlSugarClient db) | |||
{ | |||
_db=db; | |||
} | |||
/// <summary> | |||
/// 根据字典类型编码查询 | |||
/// </summary> | |||
/// <param name="TypeCode"></param> | |||
/// <returns></returns> | |||
public async Task<List<BPA_DictData>> GetDicList(string TypeCode) | |||
{ | |||
var res =await _db.Queryable<BPA_DictData, BPA_DictType>((a, b) => new JoinQueryInfos(JoinType.Inner, a.TypeId.ToString() == b.Id)) | |||
.Where((a, b) => b.Code == TypeCode && a.IsDeleted == 0 && b.IsDeleted == 0) | |||
.Select((a, b) => new BPA_DictData | |||
{ | |||
Id = a.Id.SelectAll() | |||
}).ToListAsync(); | |||
return res; | |||
} | |||
/// <summary> | |||
/// 查询字典信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
public async Task<PageUtil> GetDictData(DictDataQueryDto dto) | |||
{ | |||
List<IConditionalModel> conModels = new List<IConditionalModel>(); | |||
if (!string.IsNullOrEmpty(dto.TypeId)) | |||
{ | |||
conModels.Add(new ConditionalModel() { FieldName = "a.TypeId", ConditionalType = ConditionalType.Like, FieldValue = dto.TypeId }); | |||
} | |||
if (!string.IsNullOrEmpty(dto.Value)) | |||
{ | |||
conModels.Add(new ConditionalModel() { FieldName = "a.Value", ConditionalType = ConditionalType.Like, FieldValue = dto.Value }); | |||
} | |||
if (!string.IsNullOrEmpty(dto.Status)) | |||
{ | |||
conModels.Add(new ConditionalModel() { FieldName = "a.Status", ConditionalType = ConditionalType.Equal, FieldValue = dto.Status }); | |||
} | |||
if (!string.IsNullOrEmpty(dto.Code)) | |||
{ | |||
conModels.Add(new ConditionalModel() { FieldName = "a.Code", ConditionalType = ConditionalType.Equal, FieldValue = dto.Code }); | |||
} | |||
if (!string.IsNullOrEmpty(dto.TypeCode)) | |||
{ | |||
conModels.Add(new ConditionalModel() { FieldName = "b.Code", ConditionalType = ConditionalType.Equal, FieldValue = dto.TypeCode }); | |||
} | |||
int total = new RefAsync<int>(); | |||
var res =await _db.Queryable<BPA_DictData, BPA_DictType>((a, b) => new JoinQueryInfos(JoinType.Inner, a.TypeId.ToString() == b.Id)) | |||
.Where((a, b) => a.IsDeleted == 0 && b.IsDeleted == 0) | |||
.Where(conModels) | |||
.WhereIF(dto.CreateAt.HasValue, x => x.CreateAt.Date == dto.CreateAt.Value.Date) | |||
.Select((a, b) => new DictDataQueryDto | |||
{ | |||
Id = a.Id.SelectAll(), | |||
TypeName = b.Name, | |||
TypeCode = b.Code | |||
}).ToPageListAsync(dto.Current, dto.PageSize, total); | |||
PageUtil util = new PageUtil() | |||
{ | |||
Total = total, | |||
Data = res | |||
}; | |||
return util; | |||
} | |||
/// <summary> | |||
/// 添加字典信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
public async Task<bool> AddDictData(DictDataDto dto) | |||
{ | |||
var dicttypes = _db.Queryable<BPA_DictData>().Where(a => a.Code == dto.Code && a.IsDeleted == 0 && a.TypeId == dto.TypeId).ToList(); | |||
if (dicttypes.Count() > 0) | |||
{ | |||
return false; | |||
} | |||
try | |||
{ | |||
_db.Ado.BeginTran(); | |||
var dictData = new BPA_DictData | |||
{ | |||
TypeId = dto.TypeId, | |||
Value = dto.Value, | |||
Code = dto.Code, | |||
Remark = dto.Remark, | |||
}; | |||
var res =await _db.Insertable(dictData).ExecuteCommandAsync(); | |||
_db.Ado.CommitTran(); | |||
return res>0; | |||
} | |||
catch (Exception ex) | |||
{ | |||
_db.Ado.RollbackTran(); | |||
return false; | |||
} | |||
} | |||
/// <summary> | |||
/// 修改字典信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
public async Task<bool> UpdateDictData(DictDataDto dto) | |||
{ | |||
var resEntity = _db.Queryable<BPA_DictData>().Where(it => it.IsDeleted == 0).First(it => it.Id == dto.Id); | |||
if (null == resEntity) | |||
{ | |||
return false; | |||
} | |||
var resEntity2 = _db.Queryable<BPA_DictData>().Where(it => it.IsDeleted == 0).First(it => it.Id != dto.Id && it.Code == dto.Code); | |||
if (resEntity2 != null) | |||
{ | |||
throw Oops.Oh("code已存在"); | |||
} | |||
resEntity.Value = dto.Value; | |||
resEntity.Code = dto.Code; | |||
resEntity.Remark = dto.Remark; | |||
var res =await _db.Updateable(resEntity).ExecuteCommandAsync(); | |||
return res > 0; | |||
} | |||
/// <summary> | |||
/// 删除字典信息 | |||
/// </summary> | |||
/// <param name="Ids"></param> | |||
/// <returns></returns> | |||
public async Task<bool> BatchDelDictData(List<string> Ids) | |||
{ | |||
var resEntitites = _db.Queryable<BPA_DictData>().In(Ids).ToList(); | |||
resEntitites.ForEach(x => | |||
{ | |||
x.IsDeleted = 1; | |||
}); | |||
var res =await _db.Updateable(resEntitites).ExecuteCommandAsync(); | |||
return res > 0; | |||
} | |||
} | |||
} |
@@ -0,0 +1,172 @@ | |||
using BPA.NewKitChen.Manage.Application.System.Dtos; | |||
using BPA.NewKitChen.Manage.Application.System.Interface; | |||
using BPA.NewKitChen.Manage.Comm.Const; | |||
using BPA.NewKitChen.Manage.Comm.Enum; | |||
using BPA.NewKitChen.Manage.Core.Base; | |||
using BPA.NewKitChen.Manage.Core.System; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Services | |||
{ | |||
public class DictTypeService: IDictTypeService, ITransient | |||
{ | |||
/// <summary> | |||
/// 核心对象:拥有完整的SqlSugar全部功能 | |||
/// </summary> | |||
private readonly ISqlSugarClient _db; | |||
/// <summary> | |||
/// construct | |||
/// </summary> | |||
/// <param name="sqlSugarRepository"></param> | |||
public DictTypeService(ISqlSugarClient db) | |||
{ | |||
_db = db; | |||
} | |||
/// <summary> | |||
/// 查询字典类型信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
public async Task<PageUtil> GetDictType(DictTypeQueryDto dto) | |||
{ | |||
List<IConditionalModel> conModels = new List<IConditionalModel>(); | |||
if (!string.IsNullOrEmpty(dto.Name)) | |||
{ | |||
conModels.Add(new ConditionalModel() { FieldName = "Name", ConditionalType = ConditionalType.Like, FieldValue = dto.Name }); | |||
} | |||
if (!string.IsNullOrEmpty(dto.Code)) | |||
{ | |||
conModels.Add(new ConditionalModel() { FieldName = "Code", ConditionalType = ConditionalType.Like, FieldValue = dto.Code }); | |||
} | |||
if (!string.IsNullOrEmpty(dto.Remark)) | |||
{ | |||
conModels.Add(new ConditionalModel() { FieldName = "Remark", ConditionalType = ConditionalType.Like, FieldValue = dto.Remark }); | |||
} | |||
if (!string.IsNullOrEmpty(dto.Status)) | |||
{ | |||
conModels.Add(new ConditionalModel() { FieldName = "Status", ConditionalType = ConditionalType.Equal, FieldValue = dto.Status }); | |||
} | |||
int total = new RefAsync<int>(); | |||
var res =await _db.Queryable<BPA_DictType>() | |||
.Where(x => x.IsDeleted == 0) | |||
.Where(conModels) | |||
.Select(x => new DictTypeQueryDto | |||
{ | |||
Id = x.Id.SelectAll() | |||
}) | |||
.ToPageListAsync(dto.Current, dto.PageSize, total); | |||
PageUtil util = new PageUtil | |||
{ | |||
Total = total, | |||
Data = res | |||
}; | |||
return util; | |||
} | |||
/// <summary> | |||
/// 添加字典类型信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
public async Task<bool> AddDictType(DictTypeDto dto) | |||
{ | |||
var dicttypes = _db.Queryable<BPA_DictType>().Where(a => a.Code == dto.Code).ToList(); | |||
if (dicttypes.Count() > 0) | |||
{ | |||
return false; | |||
} | |||
try | |||
{ | |||
_db.Ado.BeginTran(); | |||
var dictType = new BPA_DictType | |||
{ | |||
Id = Guid.NewGuid().ToString(), | |||
Code = dto.Code, | |||
Name = dto.Name, | |||
Remark = dto.Remark, | |||
CreateAt = DateTime.Now, | |||
CreateBy = App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value | |||
}; | |||
var res =await _db.Insertable(dictType).ExecuteCommandAsync(); | |||
_db.Ado.CommitTran(); | |||
return true; | |||
} | |||
catch (Exception ex) | |||
{ | |||
_db.Ado.RollbackTran(); | |||
return false; | |||
} | |||
} | |||
/// <summary> | |||
/// 修改字典类型信息 | |||
/// </summary> | |||
/// <param name="dto"></param> | |||
/// <returns></returns> | |||
public async Task<bool> UpdateDictType(DictTypeDto dto) | |||
{ | |||
var dictType = _db.Queryable<BPA_DictType>().Where(x => x.IsDeleted == 0).First(x => x.Id == dto.Id); | |||
if (dictType == null) | |||
{ | |||
return false; | |||
} | |||
if (dictType.Code != dto.Code) | |||
{ | |||
throw Oops.Oh("编码不能修改"); | |||
} | |||
try | |||
{ | |||
_db.Ado.BeginTran(); | |||
dictType.Name = dto.Name; | |||
dictType.Code = dto.Code; | |||
dictType.Remark = dto.Remark; | |||
var res =await _db.Updateable(dictType).ExecuteCommandAsync(); | |||
_db.Ado.CommitTran(); | |||
return true; | |||
} | |||
catch (Exception) | |||
{ | |||
_db.Ado.RollbackTran(); | |||
return false; | |||
} | |||
} | |||
/// <summary> | |||
/// 删除字典类型信息 | |||
/// </summary> | |||
/// <param name="ids"></param> | |||
/// <returns></returns> | |||
public async Task<bool> BathchDelDictType(List<string> ids) | |||
{ | |||
try | |||
{ | |||
_db.Ado.BeginTran(); | |||
var dictType = _db.Queryable<BPA_DictType>().Where(x => x.IsDeleted == 0).Where(x => ids.Contains(x.Id)).ToList(); | |||
dictType.ForEach(x => { | |||
x.IsDeleted = 1; | |||
}); | |||
var res =await _db.Updateable(dictType).ExecuteCommandAsync(); | |||
_db.Ado.CommitTran(); | |||
return res>0; | |||
} | |||
catch (Exception) | |||
{ | |||
_db.Ado.RollbackTran(); | |||
return false; | |||
} | |||
} | |||
/// <summary> | |||
/// 下拉列表 | |||
/// </summary> | |||
/// <returns></returns> | |||
public Dictionary<string, object> GetDictType() | |||
{ | |||
var res = _db.Queryable<BPA_DictType>().Where(x => x.IsDeleted == 0 && x.Status == CommonStatus.ENABLE).ToDictionary(x => x.Id, x => x.Name); | |||
return res; | |||
} | |||
} | |||
} |
@@ -0,0 +1,211 @@ | |||
using BPA.NewKitChen.Manage.Application.System.Dtos; | |||
using BPA.NewKitChen.Manage.Application.System.Interface; | |||
using BPA.NewKitChen.Manage.Comm.Const; | |||
using BPA.NewKitChen.Manage.Core.Org; | |||
using BPA.NewKitChen.Manage.Core.System; | |||
using Furion.LinqBuilder; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Application.System.Services | |||
{ | |||
public class MenuService : IMenuService, ITransient | |||
{ | |||
private readonly ISqlSugarClient _db; | |||
public MenuService(ISqlSugarClient db) | |||
{ | |||
_db = db; | |||
} | |||
/// <summary> | |||
/// 分页查询 | |||
/// </summary> | |||
/// <param name="input"></param> | |||
/// <returns></returns> | |||
public async Task<List<MenuTreeDtoOutput>> GetMenuTreePage(MenuTreeSearchDtoInput input) | |||
{ | |||
if (App.User.FindFirst(ClaimConst.CLAINM_USERID)?.Value == null) | |||
return null; | |||
var AllMenus =await _db.Queryable<BPA_Menu>().Where(t => t.IsDeleted == 0).OrderBy(t => t.Sort).ToListAsync(); | |||
var query = AllMenus.Where(t => t.Pid == "" || t.Pid == null); | |||
if (!input.Name.IsNullOrEmpty()) | |||
query = query.Where(t => t.Name.Contains(input.Name)); | |||
if (!input.Code.IsNullOrEmpty()) | |||
query = query.Where(t => t.Code.Contains(input.Code)); | |||
var data = query.Select(t => new MenuTreeDtoOutput | |||
{ | |||
Id = t.Id, | |||
Name = t.Name, | |||
CreateAt = t.CreateAt, | |||
Code = t.Code, | |||
Icon = t.Icon, | |||
Router = t.Router, | |||
Pid = t.Pid, | |||
Sort = t.Sort, | |||
Component = t.Component, | |||
Children = AllMenus.Where(x => x.Pid == t.Id).Select(x => new MenuTreeDtoOutput | |||
{ | |||
Id = x.Id, | |||
Name = x.Name, | |||
CreateAt = x.CreateAt, | |||
Code = x.Code, | |||
Pid = x.Pid, | |||
Icon = x.Icon, | |||
Router = x.Router, | |||
Sort = x.Sort, | |||
Component = x.Component, | |||
Children = AllMenus.Where(y => y.Pid == x.Id).Select(y => new MenuTreeDtoOutput | |||
{ | |||
Id = y.Id.ToString(), | |||
Name = y.Name, | |||
CreateAt = y.CreateAt, | |||
Code = y.Code, | |||
Icon = y.Icon, | |||
Pid = y.Pid.ToString(), | |||
Router = y.Router, | |||
Sort = y.Sort, | |||
Component = y.Component | |||
}).ToList() | |||
}).ToList() | |||
}).ToList(); | |||
return data; | |||
} | |||
/// <summary> | |||
/// 新增菜单 | |||
/// </summary> | |||
/// <param name="input"></param> | |||
/// <returns></returns> | |||
public async Task<bool> Add(MenuDtoInput input) | |||
{ | |||
var menu = input.Adapt<BPA_Menu>(); | |||
menu.Id= Guid.NewGuid().ToString(); | |||
menu.CreateAt= DateTime.Now; | |||
menu.CreateBy= App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value; | |||
return await _db.Insertable(menu).ExecuteCommandAsync()> 0; | |||
} | |||
/// <summary> | |||
/// 编辑菜单 | |||
/// </summary> | |||
/// <param name="input"></param> | |||
/// <returns></returns> | |||
public async Task<bool> Update(MenuDtoInput input) | |||
{ | |||
var menu = input.Adapt<BPA_Menu>(); | |||
menu.CreateAt = DateTime.Now; | |||
menu.CreateBy = App.User?.FindFirst(ClaimConst.CLAINM_USERID)?.Value; | |||
return await _db.Updateable(menu).ExecuteCommandAsync()>0; | |||
} | |||
/// <summary> | |||
/// 删除菜单 | |||
/// </summary> | |||
/// <param name="input"></param> | |||
/// <returns></returns> | |||
public async Task<bool> Delete(List<string> input) | |||
{ | |||
try | |||
{ | |||
_db.Ado.BeginTran(); | |||
// 查询数据库中是否存在未删除的活动信息 | |||
var resEntitites = _db.Queryable<BPA_Menu>().In(input).ToList(); | |||
resEntitites.ForEach(x => | |||
{ | |||
x.IsDeleted = 1; | |||
}); | |||
var res =await _db.Updateable(resEntitites).ExecuteCommandAsync(); | |||
_db.Ado.CommitTran(); | |||
return res>0; | |||
} | |||
catch (Exception) | |||
{ | |||
_db.Ado.RollbackTran(); | |||
return false; | |||
} | |||
} | |||
/// <summary> | |||
/// 查询菜单树 | |||
/// </summary> | |||
/// <param name="GetType"></param> | |||
/// <returns></returns> | |||
public async Task<List<MenuTreeOutput>> MenuTree(string GetType) | |||
{ | |||
if (!string.IsNullOrWhiteSpace(GetType) && GetType.ToLower() == "user") | |||
{ | |||
var userId = App.User.FindFirst(ClaimConst.CLAINM_USERID)?.Value; | |||
var GroupId = App.User.FindFirst(ClaimConst.GroupId)?.Value; | |||
if (string.IsNullOrWhiteSpace(GroupId) || string.IsNullOrWhiteSpace(userId)) | |||
{ | |||
return null; | |||
} | |||
List<BPA_Roles> dataRoles =await _db.Queryable<BPA_Roles>().Where(a => a.GroupId == GroupId).ToListAsync(); | |||
if (dataRoles.Count() <= 0) | |||
{ | |||
return null; | |||
} | |||
var sysRoleId = dataRoles.Select(a => a.Id).ToArray(); | |||
var menus = _db.Queryable<BPA_RoleMenu>().Where(t => sysRoleId.Contains(t.SysRoleId)) | |||
.Select(x => x.SysMenuId).ToArray(); | |||
var AllMenus = _db.Queryable<BPA_Menu>().Where(t => t.IsDeleted == 0 && menus.Contains(t.Id)).OrderBy(t => t.Sort).ToList(); | |||
var data = AllMenus.Where(t => t.Pid == null || t.Pid == "").Select(t => new MenuTreeOutput | |||
{ | |||
Key = t.Id, | |||
Title = t.Name, | |||
value = t.Name, | |||
Children = AllMenus.Where(x => x.Pid == t.Id).Select(x => new MenuTreeOutput | |||
{ | |||
Key = x.Id, | |||
Title = x.Name, | |||
value = x.Name, | |||
Children = AllMenus.Where(y => y.Pid == x.Id).Select(y => new MenuTreeOutput | |||
{ | |||
Key = y.Id, | |||
Title = y.Name, | |||
value = y.Name, | |||
}).ToList() | |||
}).ToList() | |||
}).ToList(); | |||
return data; | |||
} | |||
else | |||
{ | |||
var AllMenus = _db.Queryable<BPA_Menu>().Where(t => t.IsDeleted == 0).OrderBy(t => t.Sort).ToList(); | |||
var data = AllMenus.Where(t => t.Pid == null || t.Pid == "").Select(t => new MenuTreeOutput | |||
{ | |||
Key = t.Id, | |||
Title = t.Name, | |||
value = t.Id, | |||
Children = AllMenus.Where(x => x.Pid == t.Id).Select(x => new MenuTreeOutput | |||
{ | |||
Key = x.Id, | |||
Title = x.Name, | |||
value = x.Id, | |||
Children = AllMenus.Where(y => y.Pid == x.Id).Select(y => new MenuTreeOutput | |||
{ | |||
Key = y.Id, | |||
Title = y.Name, | |||
value = y.Name, | |||
}).ToList() | |||
}).ToList() | |||
}).ToList(); | |||
return data; | |||
} | |||
} | |||
} | |||
} |
@@ -0,0 +1,31 @@ | |||
{ | |||
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json", | |||
"SpecificationDocumentSettings": { | |||
"DocumentTitle": "Furion | 规范化接口", | |||
"GroupOpenApiInfos": [ | |||
{ | |||
"Group": "Default", | |||
"Title": "规范化接口演示", | |||
"Description": "让 .NET 开发更简单,更通用,更流行。", | |||
"Version": "1.0.0", | |||
"TermsOfService": "https://furion.baiqian.ltd", | |||
"Contact": { | |||
"Name": "百小僧", | |||
"Url": "https://gitee.com/monksoul", | |||
"Email": "monksoul@outlook.com" | |||
}, | |||
"License": { | |||
"Name": "Apache-2.0", | |||
"Url": "https://gitee.com/dotnetchina/Furion/blob/rc1/LICENSE" | |||
} | |||
} | |||
] | |||
}, | |||
"CorsAccessorSettings": { | |||
"WithExposedHeaders": [ | |||
"access-token", | |||
"x-access-token", | |||
"environment" | |||
] | |||
} | |||
} |
@@ -0,0 +1,605 @@ | |||
<?xml version="1.0"?> | |||
<doc> | |||
<assembly> | |||
<name>BPA.NewKitChen.Manage.Application</name> | |||
</assembly> | |||
<members> | |||
<member name="M:BPA.NewKitChen.Manage.Application.Auth.AuthService.Login(System.String,BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginInput)"> | |||
<summary> | |||
用户名密码登录 | |||
</summary> | |||
<param name="LoginType">1平台用户登录,0加盟商登录</param> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.Auth.AuthService.GetLoginUserAsync"> | |||
<summary> | |||
获取当前登录用户信息 | |||
</summary> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.Auth.AuthService.LogoutAsync"> | |||
<summary> | |||
退出 | |||
</summary> | |||
<returns></returns> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginInput.Account"> | |||
<summary> | |||
用户名 | |||
</summary> | |||
<example>superAdmin</example> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginInput.Password"> | |||
<summary> | |||
密码 | |||
</summary> | |||
<example>123456</example> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutInfo.token"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.Name"> | |||
<summary> | |||
用户名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.Account"> | |||
<summary> | |||
登录账号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.Password"> | |||
<summary> | |||
登录密码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.Phone"> | |||
<summary> | |||
手机号码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.AdminType"> | |||
<summary> | |||
管理员类型-超级管理员_1、管理员_2、普通账号_ | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.SysOrgId"> | |||
<summary> | |||
归属组织 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.Auth.Dtos.LoginOutput.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Application.DictDataServices"> | |||
<summary> | |||
数据字典服务接口 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.GetDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto)"> | |||
<summary> | |||
查询字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.AddDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
添加字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.GetDicList(System.String)"> | |||
<summary> | |||
根据字典类型编码查询 | |||
</summary> | |||
<param name="typeCode"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.UpdateDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
修改字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataServices.BatchDelDictData(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典信息 | |||
</summary> | |||
<param name="ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.#ctor(BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService)"> | |||
<summary> | |||
</summary> | |||
<param name="dicttypeServices"></param> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.GetDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto)"> | |||
<summary> | |||
查询字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.Add(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
添加字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.Update(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
修改字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.Delete(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典类型信息 | |||
</summary> | |||
<param name="ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.DictTypeServices.GetDictType"> | |||
<summary> | |||
字典类型下拉数据列表 | |||
</summary> | |||
<returns></returns> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto.TypeId"> | |||
<summary> | |||
字典类型id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto.Value"> | |||
<summary> | |||
字典值 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto.Code"> | |||
<summary> | |||
字典编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Id"> | |||
<summary> | |||
Id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.TypeId"> | |||
<summary> | |||
字典类型编号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.TypeName"> | |||
<summary> | |||
字典类型名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.TypeCode"> | |||
<summary> | |||
字典类型编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Value"> | |||
<summary> | |||
字典值 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Code"> | |||
<summary> | |||
字典编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Sort"> | |||
<summary> | |||
排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.Status"> | |||
<summary> | |||
状态 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.CreateBy"> | |||
<summary> | |||
字典创建者 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.CreateAt"> | |||
<summary> | |||
字典创建时间 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto.UpdateAt"> | |||
<summary> | |||
字典创建时间 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto.Id"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto.Name"> | |||
<summary> | |||
类型名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto.Code"> | |||
<summary> | |||
类型编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Id"> | |||
<summary> | |||
字典类型编号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Name"> | |||
<summary> | |||
字典类型名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Code"> | |||
<summary> | |||
字典类型编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Sort"> | |||
<summary> | |||
字典类型排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Status"> | |||
<summary> | |||
字典类型状态 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto.Remark"> | |||
<summary> | |||
字典类型备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Name"> | |||
<summary> | |||
菜单名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Pid"> | |||
<summary> | |||
父级id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Code"> | |||
<summary> | |||
菜单编码 唯一 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Icon"> | |||
<summary> | |||
图标 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Router"> | |||
<summary> | |||
路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Component"> | |||
<summary> | |||
组件路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Visible"> | |||
<summary> | |||
是否可见 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Sort"> | |||
<summary> | |||
排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Pid"> | |||
<summary> | |||
父Id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Name"> | |||
<summary> | |||
名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Code"> | |||
<summary> | |||
编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Router"> | |||
<summary> | |||
路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Status"> | |||
<summary> | |||
状态 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Icon"> | |||
<summary> | |||
图标 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.CreateAt"> | |||
<summary> | |||
创建时间 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Sort"> | |||
<summary> | |||
排序号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeDtoOutput.Component"> | |||
<summary> | |||
组件 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeOutput.Title"> | |||
<summary> | |||
标签 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeOutput.Key"> | |||
<summary> | |||
主键 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeOutput.Children"> | |||
<summary> | |||
子菜单 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictDataService.GetDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto)"> | |||
<summary> | |||
查询字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictDataService.AddDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
添加字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictDataService.UpdateDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
修改字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictDataService.BatchDelDictData(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典信息 | |||
</summary> | |||
<param name="Ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService.GetDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto)"> | |||
<summary> | |||
查询字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService.AddDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
添加字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService.UpdateDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
修改字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Interface.IDictTypeService.BathchDelDictType(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典类型信息 | |||
</summary> | |||
<param name="ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.MenuServices.Add(BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput)"> | |||
<summary> | |||
添加菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.MenuServices.Update(BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput)"> | |||
<summary> | |||
编辑菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.MenuServices.Delete(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.MenuServices.MenuTree(System.String)"> | |||
<summary> | |||
查询菜单树 | |||
</summary> | |||
<param name="GetType"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="F:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService._db"> | |||
<summary> | |||
核心对象:拥有完整的SqlSugar全部功能 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.#ctor(SqlSugar.ISqlSugarClient)"> | |||
<summary> | |||
construct | |||
</summary> | |||
<param name="sqlSugarRepository"></param> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.GetDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeQueryDto)"> | |||
<summary> | |||
查询字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.AddDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
添加字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.UpdateDictType(BPA.NewKitChen.Manage.Application.System.Dtos.DictTypeDto)"> | |||
<summary> | |||
修改字典类型信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.BathchDelDictType(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典类型信息 | |||
</summary> | |||
<param name="ids"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.DictTypeService.GetDictType"> | |||
<summary> | |||
下拉列表 | |||
</summary> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.GetMenuTreePage(BPA.NewKitChen.Manage.Application.System.Dtos.MenuTreeSearchDtoInput)"> | |||
<summary> | |||
分页查询 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.Add(BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput)"> | |||
<summary> | |||
新增菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.Update(BPA.NewKitChen.Manage.Application.System.Dtos.MenuDtoInput)"> | |||
<summary> | |||
编辑菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.Delete(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除菜单 | |||
</summary> | |||
<param name="input"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.System.Services.MenuService.MenuTree(System.String)"> | |||
<summary> | |||
查询菜单树 | |||
</summary> | |||
<param name="GetType"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="F:BPA.NewKitChen.Manage.Application.DictDataService._db"> | |||
<summary> | |||
核心对象:拥有完整的SqlSugar全部功能 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.#ctor(SqlSugar.ISqlSugarClient)"> | |||
<summary> | |||
construct | |||
</summary> | |||
<param name="sqlSugarRepository"></param> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.GetDicList(System.String)"> | |||
<summary> | |||
根据字典类型编码查询 | |||
</summary> | |||
<param name="TypeCode"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.GetDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataQueryDto)"> | |||
<summary> | |||
查询字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.AddDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
添加字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.UpdateDictData(BPA.NewKitChen.Manage.Application.System.Dtos.DictDataDto)"> | |||
<summary> | |||
修改字典信息 | |||
</summary> | |||
<param name="dto"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Application.DictDataService.BatchDelDictData(System.Collections.Generic.List{System.String})"> | |||
<summary> | |||
删除字典信息 | |||
</summary> | |||
<param name="Ids"></param> | |||
<returns></returns> | |||
</member> | |||
</members> | |||
</doc> |
@@ -0,0 +1,368 @@ | |||
<?xml version="1.0"?> | |||
<doc> | |||
<assembly> | |||
<name>BPA.NewKitChen.Manage.Core</name> | |||
</assembly> | |||
<members> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Base.IBaseEntity.Id"> | |||
<summary> | |||
主键 Guid | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Base.IBaseEntity.IsDeleted"> | |||
<summary> | |||
是否删除 | |||
</summary> | |||
</member> | |||
<member name="F:BPA.NewKitChen.Manage.Core.Base.PageInputBase.current"> | |||
<summary> | |||
当前页码 | |||
</summary> | |||
</member> | |||
<member name="F:BPA.NewKitChen.Manage.Core.Base.PageInputBase.pagesize"> | |||
<summary> | |||
页码容量 | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.Base.PageUtil"> | |||
<summary> | |||
分页实体 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Base.PageUtil.Data"> | |||
<summary> | |||
Data | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Base.PageUtil.Total"> | |||
<summary> | |||
Total | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.DbContext"> | |||
<summary> | |||
数据库上下文对象 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Core.DbContext.AddSqlsugarSetup(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.Configuration.IConfiguration)"> | |||
<summary> | |||
SqlSugar 数据库实例 | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.Org.BPA_Company"> | |||
<summary> | |||
加盟商信息 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Name"> | |||
<summary> | |||
加盟商名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.AdminName"> | |||
<summary> | |||
管理员姓名 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Email"> | |||
<summary> | |||
邮箱账号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Phone"> | |||
<summary> | |||
电话 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Logo"> | |||
<summary> | |||
logo | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Status"> | |||
<summary> | |||
状态 【正常 停用】默认 正常 | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.Org.BPA_Organize"> | |||
<summary> | |||
组织机构 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Name"> | |||
<summary> | |||
机构名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.PID"> | |||
<summary> | |||
上级id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Type"> | |||
<summary> | |||
类型 默认 机构 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Pids"> | |||
<summary> | |||
上级ID集合 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Store_Addr"> | |||
<summary> | |||
店铺地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Store_Loc"> | |||
<summary> | |||
店铺坐标 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.AutoKey"> | |||
<summary> | |||
AutoKey 唯一值 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Status"> | |||
<summary> | |||
状态 【正常 停用】默认 正常 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.Org.BPA_Roles"> | |||
<summary> | |||
角色 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.Name"> | |||
<summary> | |||
角色名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.Sort"> | |||
<summary> | |||
排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.RoleType"> | |||
<summary> | |||
角色类型-集团角色_0、加盟商角色_1、门店角色_2 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.Name"> | |||
<summary> | |||
用户名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.Account"> | |||
<summary> | |||
登录账号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.Password"> | |||
<summary> | |||
登录密码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.Phone"> | |||
<summary> | |||
手机号码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.AdminType"> | |||
<summary> | |||
管理员类型-超级管理员_1、管理员_2、普通账号_3 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.SysOrgId"> | |||
<summary> | |||
归属组织 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.TypeId"> | |||
<summary> | |||
字典类型id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.Value"> | |||
<summary> | |||
字典值 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.Code"> | |||
<summary> | |||
字典编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.Status"> | |||
<summary> | |||
状态 【正常 停用】默认 正常 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_DictType.Name"> | |||
<summary> | |||
类型名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_DictType.Code"> | |||
<summary> | |||
类型编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_DictType.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_DictType.Status"> | |||
<summary> | |||
状态 【正常 停用】默认 正常 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.Operator"> | |||
<summary> | |||
操作人 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.RequestURL"> | |||
<summary> | |||
请求地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.RequestData"> | |||
<summary> | |||
请求数据 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.ResultData"> | |||
<summary> | |||
返回数据 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.IP"> | |||
<summary> | |||
ip地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Name"> | |||
<summary> | |||
菜单名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Pid"> | |||
<summary> | |||
父级id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Code"> | |||
<summary> | |||
菜单编码 唯一 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Icon"> | |||
<summary> | |||
图标 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Router"> | |||
<summary> | |||
路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Component"> | |||
<summary> | |||
组件路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Visible"> | |||
<summary> | |||
是否可见 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Sort"> | |||
<summary> | |||
排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.Operator"> | |||
<summary> | |||
操作人 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.RequestURL"> | |||
<summary> | |||
请求地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.RequestData"> | |||
<summary> | |||
请求数据 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.ResultData"> | |||
<summary> | |||
返回数据 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.IP"> | |||
<summary> | |||
ip地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_RoleMenu.Id"> | |||
<summary> | |||
主键 Guid | |||
</summary> | |||
</member> | |||
</members> | |||
</doc> |
@@ -0,0 +1,31 @@ | |||
{ | |||
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json", | |||
"SpecificationDocumentSettings": { | |||
"DocumentTitle": "Furion | 规范化接口", | |||
"GroupOpenApiInfos": [ | |||
{ | |||
"Group": "Default", | |||
"Title": "规范化接口演示", | |||
"Description": "让 .NET 开发更简单,更通用,更流行。", | |||
"Version": "1.0.0", | |||
"TermsOfService": "https://furion.baiqian.ltd", | |||
"Contact": { | |||
"Name": "百小僧", | |||
"Url": "https://gitee.com/monksoul", | |||
"Email": "monksoul@outlook.com" | |||
}, | |||
"License": { | |||
"Name": "Apache-2.0", | |||
"Url": "https://gitee.com/dotnetchina/Furion/blob/rc1/LICENSE" | |||
} | |||
} | |||
] | |||
}, | |||
"CorsAccessorSettings": { | |||
"WithExposedHeaders": [ | |||
"access-token", | |||
"x-access-token", | |||
"environment" | |||
] | |||
} | |||
} |
@@ -0,0 +1,220 @@ | |||
{ | |||
"format": 1, | |||
"restore": { | |||
"D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Application\\BPA.NewKitChen.Manage.Application.csproj": {} | |||
}, | |||
"projects": { | |||
"D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Application\\BPA.NewKitChen.Manage.Application.csproj": { | |||
"version": "1.0.0", | |||
"restore": { | |||
"projectUniqueName": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Application\\BPA.NewKitChen.Manage.Application.csproj", | |||
"projectName": "BPA.NewKitChen.Manage.Application", | |||
"projectPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Application\\BPA.NewKitChen.Manage.Application.csproj", | |||
"packagesPath": "C:\\Users\\HBL\\.nuget\\packages\\", | |||
"outputPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Application\\obj\\", | |||
"projectStyle": "PackageReference", | |||
"fallbackFolders": [ | |||
"D:\\Microsoft Visual Studio\\Shared\\NuGetPackages" | |||
], | |||
"configFilePaths": [ | |||
"C:\\Users\\HBL\\AppData\\Roaming\\NuGet\\NuGet.Config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" | |||
], | |||
"originalTargetFrameworks": [ | |||
"net6.0" | |||
], | |||
"sources": { | |||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, | |||
"C:\\Program Files\\dotnet\\library-packs": {}, | |||
"http://111.9.47.105:10243/repository/bpa/index.json": {}, | |||
"https://api.nuget.org/v3/index.json": {} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"projectReferences": { | |||
"D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj": { | |||
"projectPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj" | |||
}, | |||
"D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Core\\BPA.NewKitChen.Manage.Core.csproj": { | |||
"projectPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Core\\BPA.NewKitChen.Manage.Core.csproj" | |||
} | |||
} | |||
} | |||
}, | |||
"warningProperties": { | |||
"warnAsError": [ | |||
"NU1605" | |||
] | |||
} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"imports": [ | |||
"net461", | |||
"net462", | |||
"net47", | |||
"net471", | |||
"net472", | |||
"net48", | |||
"net481" | |||
], | |||
"assetTargetFallback": true, | |||
"warn": true, | |||
"frameworkReferences": { | |||
"Microsoft.NETCore.App": { | |||
"privateAssets": "all" | |||
} | |||
}, | |||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json" | |||
} | |||
} | |||
}, | |||
"D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj": { | |||
"version": "1.0.0", | |||
"restore": { | |||
"projectUniqueName": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj", | |||
"projectName": "BPA.NewKitChen.Manage.Comm", | |||
"projectPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj", | |||
"packagesPath": "C:\\Users\\HBL\\.nuget\\packages\\", | |||
"outputPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\obj\\", | |||
"projectStyle": "PackageReference", | |||
"fallbackFolders": [ | |||
"D:\\Microsoft Visual Studio\\Shared\\NuGetPackages" | |||
], | |||
"configFilePaths": [ | |||
"C:\\Users\\HBL\\AppData\\Roaming\\NuGet\\NuGet.Config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" | |||
], | |||
"originalTargetFrameworks": [ | |||
"net6.0" | |||
], | |||
"sources": { | |||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, | |||
"C:\\Program Files\\dotnet\\library-packs": {}, | |||
"http://111.9.47.105:10243/repository/bpa/index.json": {}, | |||
"https://api.nuget.org/v3/index.json": {} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"projectReferences": {} | |||
} | |||
}, | |||
"warningProperties": { | |||
"warnAsError": [ | |||
"NU1605" | |||
] | |||
} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"imports": [ | |||
"net461", | |||
"net462", | |||
"net47", | |||
"net471", | |||
"net472", | |||
"net48", | |||
"net481" | |||
], | |||
"assetTargetFallback": true, | |||
"warn": true, | |||
"frameworkReferences": { | |||
"Microsoft.NETCore.App": { | |||
"privateAssets": "all" | |||
} | |||
}, | |||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json" | |||
} | |||
} | |||
}, | |||
"D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Core\\BPA.NewKitChen.Manage.Core.csproj": { | |||
"version": "1.0.0", | |||
"restore": { | |||
"projectUniqueName": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Core\\BPA.NewKitChen.Manage.Core.csproj", | |||
"projectName": "BPA.NewKitChen.Manage.Core", | |||
"projectPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Core\\BPA.NewKitChen.Manage.Core.csproj", | |||
"packagesPath": "C:\\Users\\HBL\\.nuget\\packages\\", | |||
"outputPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Core\\obj\\", | |||
"projectStyle": "PackageReference", | |||
"fallbackFolders": [ | |||
"D:\\Microsoft Visual Studio\\Shared\\NuGetPackages" | |||
], | |||
"configFilePaths": [ | |||
"C:\\Users\\HBL\\AppData\\Roaming\\NuGet\\NuGet.Config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" | |||
], | |||
"originalTargetFrameworks": [ | |||
"net6.0" | |||
], | |||
"sources": { | |||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, | |||
"C:\\Program Files\\dotnet\\library-packs": {}, | |||
"http://111.9.47.105:10243/repository/bpa/index.json": {}, | |||
"https://api.nuget.org/v3/index.json": {} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"projectReferences": { | |||
"D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj": { | |||
"projectPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj" | |||
} | |||
} | |||
} | |||
}, | |||
"warningProperties": { | |||
"warnAsError": [ | |||
"NU1605" | |||
] | |||
} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"dependencies": { | |||
"Furion.Extras.Authentication.JwtBearer": { | |||
"target": "Package", | |||
"version": "[4.8.8.5, )" | |||
}, | |||
"Furion.Extras.ObjectMapper.Mapster": { | |||
"target": "Package", | |||
"version": "[4.8.8.5, )" | |||
}, | |||
"Furion.Pure": { | |||
"target": "Package", | |||
"version": "[4.8.8.5, )" | |||
}, | |||
"SqlSugarCore": { | |||
"target": "Package", | |||
"version": "[5.1.4.67, )" | |||
} | |||
}, | |||
"imports": [ | |||
"net461", | |||
"net462", | |||
"net47", | |||
"net471", | |||
"net472", | |||
"net48", | |||
"net481" | |||
], | |||
"assetTargetFallback": true, | |||
"warn": true, | |||
"frameworkReferences": { | |||
"Microsoft.NETCore.App": { | |||
"privateAssets": "all" | |||
} | |||
}, | |||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json" | |||
} | |||
} | |||
} | |||
} | |||
} |
@@ -0,0 +1,20 @@ | |||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | |||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | |||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> | |||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> | |||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> | |||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> | |||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\HBL\.nuget\packages\;D:\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders> | |||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> | |||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion> | |||
</PropertyGroup> | |||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | |||
<SourceRoot Include="C:\Users\HBL\.nuget\packages\" /> | |||
<SourceRoot Include="D:\Microsoft Visual Studio\Shared\NuGetPackages\" /> | |||
</ItemGroup> | |||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | |||
<PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\HBL\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5</PkgMicrosoft_Extensions_ApiDescription_Server> | |||
<PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">C:\Users\HBL\.nuget\packages\microsoft.codeanalysis.analyzers\3.3.3</PkgMicrosoft_CodeAnalysis_Analyzers> | |||
</PropertyGroup> | |||
</Project> |
@@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | |||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | |||
<Import Project="$(NuGetPackageRoot)system.text.json\6.0.7\buildTransitive\netcoreapp3.1\System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json\6.0.7\buildTransitive\netcoreapp3.1\System.Text.Json.targets')" /> | |||
</ImportGroup> | |||
</Project> |
@@ -0,0 +1,4 @@ | |||
// <autogenerated /> | |||
using System; | |||
using System.Reflection; | |||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] |
@@ -0,0 +1,23 @@ | |||
//------------------------------------------------------------------------------ | |||
// <auto-generated> | |||
// 此代码由工具生成。 | |||
// 运行时版本:4.0.30319.42000 | |||
// | |||
// 对此文件的更改可能会导致不正确的行为,并且如果 | |||
// 重新生成代码,这些更改将会丢失。 | |||
// </auto-generated> | |||
//------------------------------------------------------------------------------ | |||
using System; | |||
using System.Reflection; | |||
[assembly: System.Reflection.AssemblyCompanyAttribute("BPA.NewKitChen.Manage.Application")] | |||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] | |||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] | |||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] | |||
[assembly: System.Reflection.AssemblyProductAttribute("BPA.NewKitChen.Manage.Application")] | |||
[assembly: System.Reflection.AssemblyTitleAttribute("BPA.NewKitChen.Manage.Application")] | |||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] | |||
// 由 MSBuild WriteCodeFragment 类生成。 | |||
@@ -0,0 +1 @@ | |||
9f0a1d252097d5a317004ab464b4b207eb2681ca |
@@ -0,0 +1,11 @@ | |||
is_global = true | |||
build_property.TargetFramework = net6.0 | |||
build_property.TargetPlatformMinVersion = | |||
build_property.UsingMicrosoftNETSdkWeb = | |||
build_property.ProjectTypeGuids = | |||
build_property.InvariantGlobalization = | |||
build_property.PlatformNeutralAssembly = | |||
build_property.EnforceExtendedAnalyzerRules = | |||
build_property._SupportedPlatformList = Linux,macOS,Windows | |||
build_property.RootNamespace = BPA.NewKitChen.Manage.Application | |||
build_property.ProjectDir = D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\ |
@@ -0,0 +1,8 @@ | |||
// <auto-generated/> | |||
global using global::System; | |||
global using global::System.Collections.Generic; | |||
global using global::System.IO; | |||
global using global::System.Linq; | |||
global using global::System.Net.Http; | |||
global using global::System.Threading; | |||
global using global::System.Threading.Tasks; |
@@ -0,0 +1 @@ | |||
5c559cb42e936e31a36eae569021c15f10fd543d |
@@ -0,0 +1,20 @@ | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\applicationsettings.json | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\BPA.NewKitChen.Manage.Application.deps.json | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\BPA.NewKitChen.Manage.Application.dll | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\BPA.NewKitChen.Manage.Application.pdb | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\BPA.NewKitChen.Manage.Application.xml | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\BPA.NewKitChen.Manage.Comm.dll | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\BPA.NewKitChen.Manage.Core.dll | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\BPA.NewKitChen.Manage.Comm.pdb | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\BPA.NewKitChen.Manage.Core.pdb | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\bin\Debug\net6.0\BPA.NewKitChen.Manage.Core.xml | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\BPA.NewKitChen.Manage.Application.csproj.AssemblyReference.cache | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\BPA.NewKitChen.Manage.Application.GeneratedMSBuildEditorConfig.editorconfig | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\BPA.NewKitChen.Manage.Application.AssemblyInfoInputs.cache | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\BPA.NewKitChen.Manage.Application.AssemblyInfo.cs | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\BPA.NewKitChen.Manage.Application.csproj.CoreCompileInputs.cache | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\BPA.NewKitChen.Manage.Application.csproj.CopyComplete | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\BPA.NewKitChen.Manage.Application.dll | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\refint\BPA.NewKitChen.Manage.Application.dll | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\BPA.NewKitChen.Manage.Application.pdb | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Application\obj\Debug\net6.0\ref\BPA.NewKitChen.Manage.Application.dll |
@@ -0,0 +1 @@ | |||
obj\Debug\net6.0\\_IsIncrementalBuild |
@@ -0,0 +1,125 @@ | |||
{ | |||
"version": 2, | |||
"dgSpecHash": "xMjctMq1S4E3IG8Xtm3FfVZtuOPsadbGuywovwiOSN8dCkxwEW5STTjHysT7KUkB7G1R+Kaylrma+ZqDLY1ifQ==", | |||
"success": true, | |||
"projectFilePath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Application\\BPA.NewKitChen.Manage.Application.csproj", | |||
"expectedPackageFiles": [ | |||
"C:\\Users\\HBL\\.nuget\\packages\\ben.demystifier\\0.4.1\\ben.demystifier.0.4.1.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\furion.extras.authentication.jwtbearer\\4.8.8.5\\furion.extras.authentication.jwtbearer.4.8.8.5.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\furion.extras.objectmapper.mapster\\4.8.8.5\\furion.extras.objectmapper.mapster.4.8.8.5.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\furion.pure\\4.8.8.5\\furion.pure.4.8.8.5.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\furion.pure.extras.dependencymodel.codeanalysis\\4.8.8.5\\furion.pure.extras.dependencymodel.codeanalysis.4.8.8.5.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\mapster\\7.3.0\\mapster.7.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\mapster.core\\1.2.0\\mapster.core.1.2.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\mapster.dependencyinjection\\1.0.0\\mapster.dependencyinjection.1.0.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.aspnetcore.authentication.jwtbearer\\6.0.16\\microsoft.aspnetcore.authentication.jwtbearer.6.0.16.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.aspnetcore.jsonpatch\\6.0.16\\microsoft.aspnetcore.jsonpatch.6.0.16.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.aspnetcore.mvc.newtonsoftjson\\6.0.16\\microsoft.aspnetcore.mvc.newtonsoftjson.6.0.16.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.aspnetcore.razor.language\\6.0.16\\microsoft.aspnetcore.razor.language.6.0.16.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.codeanalysis.analyzers\\3.3.3\\microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.codeanalysis.common\\4.5.0\\microsoft.codeanalysis.common.4.5.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.codeanalysis.csharp\\4.5.0\\microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.csharp\\4.7.0\\microsoft.csharp.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.data.sqlclient\\2.1.4\\microsoft.data.sqlclient.2.1.4.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.data.sqlclient.sni.runtime\\2.1.1\\microsoft.data.sqlclient.sni.runtime.2.1.1.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.data.sqlite\\5.0.5\\microsoft.data.sqlite.5.0.5.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.data.sqlite.core\\5.0.5\\microsoft.data.sqlite.core.5.0.5.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.extensions.apidescription.server\\6.0.5\\microsoft.extensions.apidescription.server.6.0.5.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\6.0.0\\microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.extensions.dependencymodel\\6.0.0\\microsoft.extensions.dependencymodel.6.0.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.identity.client\\4.21.1\\microsoft.identity.client.4.21.1.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.identitymodel.jsonwebtokens\\6.10.0\\microsoft.identitymodel.jsonwebtokens.6.10.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.identitymodel.logging\\6.10.0\\microsoft.identitymodel.logging.6.10.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.identitymodel.protocols\\6.10.0\\microsoft.identitymodel.protocols.6.10.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.identitymodel.protocols.openidconnect\\6.10.0\\microsoft.identitymodel.protocols.openidconnect.6.10.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.identitymodel.tokens\\6.10.0\\microsoft.identitymodel.tokens.6.10.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.netcore.platforms\\3.1.0\\microsoft.netcore.platforms.3.1.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.netcore.targets\\1.1.0\\microsoft.netcore.targets.1.1.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.win32.registry\\4.7.0\\microsoft.win32.registry.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\microsoft.win32.systemevents\\4.7.0\\microsoft.win32.systemevents.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\miniprofiler.aspnetcore\\4.2.22\\miniprofiler.aspnetcore.4.2.22.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\miniprofiler.aspnetcore.mvc\\4.2.22\\miniprofiler.aspnetcore.mvc.4.2.22.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\miniprofiler.shared\\4.2.22\\miniprofiler.shared.4.2.22.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\mysqlconnector\\2.2.5\\mysqlconnector.2.2.5.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\newtonsoft.json\\13.0.2\\newtonsoft.json.13.0.2.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\newtonsoft.json.bson\\1.0.2\\newtonsoft.json.bson.1.0.2.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\npgsql\\5.0.7\\npgsql.5.0.7.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\oracle.manageddataaccess.core\\3.21.1\\oracle.manageddataaccess.core.3.21.1.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\sqlitepclraw.bundle_e_sqlite3\\2.0.4\\sqlitepclraw.bundle_e_sqlite3.2.0.4.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\sqlitepclraw.core\\2.0.4\\sqlitepclraw.core.2.0.4.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\sqlitepclraw.lib.e_sqlite3\\2.0.4\\sqlitepclraw.lib.e_sqlite3.2.0.4.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\sqlitepclraw.provider.dynamic_cdecl\\2.0.4\\sqlitepclraw.provider.dynamic_cdecl.2.0.4.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\sqlsugarcore\\5.1.4.67\\sqlsugarcore.5.1.4.67.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\sqlsugarcore.dm\\1.0.0\\sqlsugarcore.dm.1.0.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\sqlsugarcore.kdbndp\\7.3.0\\sqlsugarcore.kdbndp.7.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\swashbuckle.aspnetcore\\6.5.0\\swashbuckle.aspnetcore.6.5.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.5.0\\swashbuckle.aspnetcore.swagger.6.5.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\6.5.0\\swashbuckle.aspnetcore.swaggergen.6.5.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.5.0\\swashbuckle.aspnetcore.swaggerui.6.5.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.buffers\\4.5.1\\system.buffers.4.5.1.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.collections\\4.3.0\\system.collections.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.collections.concurrent\\4.3.0\\system.collections.concurrent.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.collections.immutable\\6.0.0\\system.collections.immutable.6.0.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.componentmodel\\4.3.0\\system.componentmodel.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.componentmodel.primitives\\4.3.0\\system.componentmodel.primitives.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.configuration.configurationmanager\\4.7.0\\system.configuration.configurationmanager.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.data.common\\4.3.0\\system.data.common.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.diagnostics.debug\\4.3.0\\system.diagnostics.debug.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.diagnostics.diagnosticsource\\4.7.0\\system.diagnostics.diagnosticsource.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.diagnostics.performancecounter\\4.7.0\\system.diagnostics.performancecounter.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.diagnostics.stacktrace\\4.3.0\\system.diagnostics.stacktrace.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.diagnostics.tracing\\4.3.0\\system.diagnostics.tracing.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.directoryservices\\4.7.0\\system.directoryservices.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.directoryservices.protocols\\4.7.0\\system.directoryservices.protocols.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.drawing.common\\4.7.0\\system.drawing.common.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.dynamic.runtime\\4.3.0\\system.dynamic.runtime.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.globalization\\4.3.0\\system.globalization.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.identitymodel.tokens.jwt\\6.10.0\\system.identitymodel.tokens.jwt.6.10.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.io.filesystem\\4.3.0\\system.io.filesystem.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.io.filesystem.accesscontrol\\4.7.0\\system.io.filesystem.accesscontrol.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.io.filesystem.primitives\\4.3.0\\system.io.filesystem.primitives.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.linq\\4.3.0\\system.linq.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.linq.expressions\\4.3.0\\system.linq.expressions.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.memory\\4.5.4\\system.memory.4.5.4.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.objectmodel\\4.3.0\\system.objectmodel.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.reflection.emit\\4.3.0\\system.reflection.emit.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.reflection.emit.ilgeneration\\4.3.0\\system.reflection.emit.ilgeneration.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.reflection.emit.lightweight\\4.3.0\\system.reflection.emit.lightweight.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.reflection.extensions\\4.3.0\\system.reflection.extensions.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.reflection.metadata\\6.0.1\\system.reflection.metadata.6.0.1.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.reflection.typeextensions\\4.3.0\\system.reflection.typeextensions.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.resources.resourcemanager\\4.3.0\\system.resources.resourcemanager.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.runtime.caching\\4.7.0\\system.runtime.caching.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.runtime.extensions\\4.3.0\\system.runtime.extensions.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.runtime.handles\\4.3.0\\system.runtime.handles.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.runtime.serialization.primitives\\4.3.0\\system.runtime.serialization.primitives.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.security.accesscontrol\\4.7.0\\system.security.accesscontrol.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.security.cryptography.cng\\4.5.0\\system.security.cryptography.cng.4.5.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.security.cryptography.protecteddata\\4.7.0\\system.security.cryptography.protecteddata.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.security.permissions\\4.7.0\\system.security.permissions.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.security.principal.windows\\4.7.0\\system.security.principal.windows.4.7.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.text.encoding.codepages\\6.0.0\\system.text.encoding.codepages.6.0.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.text.encodings.web\\6.0.0\\system.text.encodings.web.6.0.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.text.json\\6.0.7\\system.text.json.6.0.7.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.text.regularexpressions\\4.3.0\\system.text.regularexpressions.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.threading\\4.3.0\\system.threading.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.threading.tasks.parallel\\4.3.0\\system.threading.tasks.parallel.4.3.0.nupkg.sha512", | |||
"C:\\Users\\HBL\\.nuget\\packages\\system.windows.extensions\\4.7.0\\system.windows.extensions.4.7.0.nupkg.sha512" | |||
], | |||
"logs": [ | |||
{ | |||
"code": "NU1803", | |||
"level": "Warning", | |||
"warningLevel": 1, | |||
"message": "You are running the 'restore' operation with an 'HTTP' source, 'http://111.9.47.105:10243/repository/bpa/index.json'. Non-HTTPS access will be removed in a future version. Consider migrating to an 'HTTPS' source." | |||
} | |||
] | |||
} |
@@ -0,0 +1,9 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>net6.0</TargetFramework> | |||
<ImplicitUsings>enable</ImplicitUsings> | |||
<Nullable>enable</Nullable> | |||
</PropertyGroup> | |||
</Project> |
@@ -0,0 +1,57 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Comm.Const | |||
{ | |||
public class ClaimConst | |||
{ | |||
/// <summary> | |||
/// 用户Id | |||
/// </summary> | |||
public const string CLAINM_USERID = "UserId"; | |||
/// <summary> | |||
/// 账号 | |||
/// </summary> | |||
public const string CLAINM_ACCOUNT = "Account"; | |||
/// <summary> | |||
/// 名称 | |||
/// </summary> | |||
public const string CLAINM_NAME = "Name"; | |||
/// <summary> | |||
/// 是否超级管理 | |||
/// </summary> | |||
public const string CLAINM_SUPERADMIN = "SuperAdmin"; | |||
/// <summary> | |||
/// 登录类型1平台用户登录,0加盟商登录 | |||
/// </summary> | |||
public const string LoginType = "LoginType"; | |||
/// <summary> | |||
/// 加盟商编号 | |||
/// </summary> | |||
public const string FranchID = "FranchID"; | |||
/// <summary> | |||
/// 加盟商通知手机号 | |||
/// </summary> | |||
public const string FranchTel = "18782023833"; | |||
/// <summary> | |||
/// 加盟商组id | |||
/// </summary> | |||
public const string GroupId = "GroupId"; | |||
/// <summary> | |||
/// 权限 | |||
/// </summary> | |||
public const string RoleId = "RoleId"; | |||
public const string OrgId = ""; | |||
public const string SupplyPlatformId = "SupplyPlatformId"; | |||
} | |||
} |
@@ -0,0 +1,30 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.ComponentModel; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Comm.Enum | |||
{ | |||
public enum CommonStatus | |||
{ | |||
/// <summary> | |||
/// 正常 | |||
/// </summary> | |||
[Description("正常")] | |||
ENABLE = 0, | |||
/// <summary> | |||
/// 停用 | |||
/// </summary> | |||
[Description("停用")] | |||
DISABLE = 1, | |||
/// <summary> | |||
/// 删除 | |||
/// </summary> | |||
[Description("删除")] | |||
DELETED = 2 | |||
} | |||
} |
@@ -0,0 +1,23 @@ | |||
{ | |||
"runtimeTarget": { | |||
"name": ".NETCoreApp,Version=v6.0", | |||
"signature": "" | |||
}, | |||
"compilationOptions": {}, | |||
"targets": { | |||
".NETCoreApp,Version=v6.0": { | |||
"BPA.NewKitChen.Manage.Comm/1.0.0": { | |||
"runtime": { | |||
"BPA.NewKitChen.Manage.Comm.dll": {} | |||
} | |||
} | |||
} | |||
}, | |||
"libraries": { | |||
"BPA.NewKitChen.Manage.Comm/1.0.0": { | |||
"type": "project", | |||
"serviceable": false, | |||
"sha512": "" | |||
} | |||
} | |||
} |
@@ -0,0 +1,69 @@ | |||
{ | |||
"format": 1, | |||
"restore": { | |||
"D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj": {} | |||
}, | |||
"projects": { | |||
"D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj": { | |||
"version": "1.0.0", | |||
"restore": { | |||
"projectUniqueName": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj", | |||
"projectName": "BPA.NewKitChen.Manage.Comm", | |||
"projectPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj", | |||
"packagesPath": "C:\\Users\\HBL\\.nuget\\packages\\", | |||
"outputPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\obj\\", | |||
"projectStyle": "PackageReference", | |||
"fallbackFolders": [ | |||
"D:\\Microsoft Visual Studio\\Shared\\NuGetPackages" | |||
], | |||
"configFilePaths": [ | |||
"C:\\Users\\HBL\\AppData\\Roaming\\NuGet\\NuGet.Config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" | |||
], | |||
"originalTargetFrameworks": [ | |||
"net6.0" | |||
], | |||
"sources": { | |||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, | |||
"C:\\Program Files\\dotnet\\library-packs": {}, | |||
"http://111.9.47.105:10243/repository/bpa/index.json": {}, | |||
"https://api.nuget.org/v3/index.json": {} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"projectReferences": {} | |||
} | |||
}, | |||
"warningProperties": { | |||
"warnAsError": [ | |||
"NU1605" | |||
] | |||
} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"imports": [ | |||
"net461", | |||
"net462", | |||
"net47", | |||
"net471", | |||
"net472", | |||
"net48", | |||
"net481" | |||
], | |||
"assetTargetFallback": true, | |||
"warn": true, | |||
"frameworkReferences": { | |||
"Microsoft.NETCore.App": { | |||
"privateAssets": "all" | |||
} | |||
}, | |||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json" | |||
} | |||
} | |||
} | |||
} | |||
} |
@@ -0,0 +1,16 @@ | |||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | |||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | |||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> | |||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> | |||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> | |||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> | |||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\HBL\.nuget\packages\;D:\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders> | |||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> | |||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion> | |||
</PropertyGroup> | |||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | |||
<SourceRoot Include="C:\Users\HBL\.nuget\packages\" /> | |||
<SourceRoot Include="D:\Microsoft Visual Studio\Shared\NuGetPackages\" /> | |||
</ItemGroup> | |||
</Project> |
@@ -0,0 +1,2 @@ | |||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | |||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" /> |
@@ -0,0 +1,4 @@ | |||
// <autogenerated /> | |||
using System; | |||
using System.Reflection; | |||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] |
@@ -0,0 +1,23 @@ | |||
//------------------------------------------------------------------------------ | |||
// <auto-generated> | |||
// 此代码由工具生成。 | |||
// 运行时版本:4.0.30319.42000 | |||
// | |||
// 对此文件的更改可能会导致不正确的行为,并且如果 | |||
// 重新生成代码,这些更改将会丢失。 | |||
// </auto-generated> | |||
//------------------------------------------------------------------------------ | |||
using System; | |||
using System.Reflection; | |||
[assembly: System.Reflection.AssemblyCompanyAttribute("BPA.NewKitChen.Manage.Comm")] | |||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] | |||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] | |||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] | |||
[assembly: System.Reflection.AssemblyProductAttribute("BPA.NewKitChen.Manage.Comm")] | |||
[assembly: System.Reflection.AssemblyTitleAttribute("BPA.NewKitChen.Manage.Comm")] | |||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] | |||
// 由 MSBuild WriteCodeFragment 类生成。 | |||
@@ -0,0 +1 @@ | |||
a13d209253a8bd1ca4e1ca37830b2e194cd2f2ba |
@@ -0,0 +1,11 @@ | |||
is_global = true | |||
build_property.TargetFramework = net6.0 | |||
build_property.TargetPlatformMinVersion = | |||
build_property.UsingMicrosoftNETSdkWeb = | |||
build_property.ProjectTypeGuids = | |||
build_property.InvariantGlobalization = | |||
build_property.PlatformNeutralAssembly = | |||
build_property.EnforceExtendedAnalyzerRules = | |||
build_property._SupportedPlatformList = Linux,macOS,Windows | |||
build_property.RootNamespace = BPA.NewKitChen.Manage.Comm | |||
build_property.ProjectDir = D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\ |
@@ -0,0 +1,8 @@ | |||
// <auto-generated/> | |||
global using global::System; | |||
global using global::System.Collections.Generic; | |||
global using global::System.IO; | |||
global using global::System.Linq; | |||
global using global::System.Net.Http; | |||
global using global::System.Threading; | |||
global using global::System.Threading.Tasks; |
@@ -0,0 +1 @@ | |||
6b3c2bcfebf87ca642e5f1e847ec2a6e0f443f5e |
@@ -0,0 +1,12 @@ | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\bin\Debug\net6.0\BPA.NewKitChen.Manage.Comm.deps.json | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\bin\Debug\net6.0\BPA.NewKitChen.Manage.Comm.dll | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\bin\Debug\net6.0\BPA.NewKitChen.Manage.Comm.pdb | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\obj\Debug\net6.0\BPA.NewKitChen.Manage.Comm.csproj.AssemblyReference.cache | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\obj\Debug\net6.0\BPA.NewKitChen.Manage.Comm.GeneratedMSBuildEditorConfig.editorconfig | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\obj\Debug\net6.0\BPA.NewKitChen.Manage.Comm.AssemblyInfoInputs.cache | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\obj\Debug\net6.0\BPA.NewKitChen.Manage.Comm.AssemblyInfo.cs | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\obj\Debug\net6.0\BPA.NewKitChen.Manage.Comm.csproj.CoreCompileInputs.cache | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\obj\Debug\net6.0\BPA.NewKitChen.Manage.Comm.dll | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\obj\Debug\net6.0\refint\BPA.NewKitChen.Manage.Comm.dll | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\obj\Debug\net6.0\BPA.NewKitChen.Manage.Comm.pdb | |||
D:\BPA\BPA.NewKitChen\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage\BPA.NewKitChen.Manage.Comm\obj\Debug\net6.0\ref\BPA.NewKitChen.Manage.Comm.dll |
@@ -0,0 +1 @@ | |||
obj\Debug\net6.0\\_IsIncrementalBuild |
@@ -0,0 +1,83 @@ | |||
{ | |||
"version": 3, | |||
"targets": { | |||
"net6.0": {} | |||
}, | |||
"libraries": {}, | |||
"projectFileDependencyGroups": { | |||
"net6.0": [] | |||
}, | |||
"packageFolders": { | |||
"C:\\Users\\HBL\\.nuget\\packages\\": {}, | |||
"D:\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} | |||
}, | |||
"project": { | |||
"version": "1.0.0", | |||
"restore": { | |||
"projectUniqueName": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj", | |||
"projectName": "BPA.NewKitChen.Manage.Comm", | |||
"projectPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj", | |||
"packagesPath": "C:\\Users\\HBL\\.nuget\\packages\\", | |||
"outputPath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\obj\\", | |||
"projectStyle": "PackageReference", | |||
"fallbackFolders": [ | |||
"D:\\Microsoft Visual Studio\\Shared\\NuGetPackages" | |||
], | |||
"configFilePaths": [ | |||
"C:\\Users\\HBL\\AppData\\Roaming\\NuGet\\NuGet.Config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", | |||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" | |||
], | |||
"originalTargetFrameworks": [ | |||
"net6.0" | |||
], | |||
"sources": { | |||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, | |||
"C:\\Program Files\\dotnet\\library-packs": {}, | |||
"http://111.9.47.105:10243/repository/bpa/index.json": {}, | |||
"https://api.nuget.org/v3/index.json": {} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"projectReferences": {} | |||
} | |||
}, | |||
"warningProperties": { | |||
"warnAsError": [ | |||
"NU1605" | |||
] | |||
} | |||
}, | |||
"frameworks": { | |||
"net6.0": { | |||
"targetAlias": "net6.0", | |||
"imports": [ | |||
"net461", | |||
"net462", | |||
"net47", | |||
"net471", | |||
"net472", | |||
"net48", | |||
"net481" | |||
], | |||
"assetTargetFallback": true, | |||
"warn": true, | |||
"frameworkReferences": { | |||
"Microsoft.NETCore.App": { | |||
"privateAssets": "all" | |||
} | |||
}, | |||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json" | |||
} | |||
} | |||
}, | |||
"logs": [ | |||
{ | |||
"code": "NU1803", | |||
"level": "Warning", | |||
"warningLevel": 1, | |||
"message": "You are running the 'restore' operation with an 'HTTP' source, 'http://111.9.47.105:10243/repository/bpa/index.json'. Non-HTTPS access will be removed in a future version. Consider migrating to an 'HTTPS' source." | |||
} | |||
] | |||
} |
@@ -0,0 +1,15 @@ | |||
{ | |||
"version": 2, | |||
"dgSpecHash": "jfUx7WdniuCZ3gUxYJP3W+RFVGnm8+B479yLmG/BCrQV6rtVAijKo1BzxJToU84UUwWX7tXrI4K4P9PyYFwNFQ==", | |||
"success": true, | |||
"projectFilePath": "D:\\BPA\\BPA.NewKitChen\\BPA.NewKitChen.Manage\\BPA.NewKitChen.Manage.Comm\\BPA.NewKitChen.Manage.Comm.csproj", | |||
"expectedPackageFiles": [], | |||
"logs": [ | |||
{ | |||
"code": "NU1803", | |||
"level": "Warning", | |||
"warningLevel": 1, | |||
"message": "You are running the 'restore' operation with an 'HTTP' source, 'http://111.9.47.105:10243/repository/bpa/index.json'. Non-HTTPS access will be removed in a future version. Consider migrating to an 'HTTPS' source." | |||
} | |||
] | |||
} |
@@ -0,0 +1,27 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<TargetFramework>net6.0</TargetFramework> | |||
<NoWarn>1701;1702;1591</NoWarn> | |||
<DocumentationFile>BPA.NewKitChen.Manage.Core.xml</DocumentationFile> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<None Remove="BPA.NewKitChen.Manage.Core.xml" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.8.8.5" /> | |||
<PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.8.8.5" /> | |||
<PackageReference Include="Furion.Pure" Version="4.8.8.5" /> | |||
<PackageReference Include="SqlSugarCore" Version="5.1.4.67" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\BPA.NewKitChen.Manage.Comm\BPA.NewKitChen.Manage.Comm.csproj" /> | |||
</ItemGroup> | |||
</Project> |
@@ -0,0 +1,368 @@ | |||
<?xml version="1.0"?> | |||
<doc> | |||
<assembly> | |||
<name>BPA.NewKitChen.Manage.Core</name> | |||
</assembly> | |||
<members> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Base.IBaseEntity.Id"> | |||
<summary> | |||
主键 Guid | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Base.IBaseEntity.IsDeleted"> | |||
<summary> | |||
是否删除 | |||
</summary> | |||
</member> | |||
<member name="F:BPA.NewKitChen.Manage.Core.Base.PageInputBase.current"> | |||
<summary> | |||
当前页码 | |||
</summary> | |||
</member> | |||
<member name="F:BPA.NewKitChen.Manage.Core.Base.PageInputBase.pagesize"> | |||
<summary> | |||
页码容量 | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.Base.PageUtil"> | |||
<summary> | |||
分页实体 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Base.PageUtil.Data"> | |||
<summary> | |||
Data | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Base.PageUtil.Total"> | |||
<summary> | |||
Total | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.DbContext"> | |||
<summary> | |||
数据库上下文对象 | |||
</summary> | |||
</member> | |||
<member name="M:BPA.NewKitChen.Manage.Core.DbContext.AddSqlsugarSetup(Microsoft.Extensions.DependencyInjection.IServiceCollection,Microsoft.Extensions.Configuration.IConfiguration)"> | |||
<summary> | |||
SqlSugar 数据库实例 | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.Org.BPA_Company"> | |||
<summary> | |||
加盟商信息 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Name"> | |||
<summary> | |||
加盟商名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.AdminName"> | |||
<summary> | |||
管理员姓名 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Email"> | |||
<summary> | |||
邮箱账号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Phone"> | |||
<summary> | |||
电话 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Logo"> | |||
<summary> | |||
logo | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Company.Status"> | |||
<summary> | |||
状态 【正常 停用】默认 正常 | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.Org.BPA_Organize"> | |||
<summary> | |||
组织机构 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Name"> | |||
<summary> | |||
机构名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.PID"> | |||
<summary> | |||
上级id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Type"> | |||
<summary> | |||
类型 默认 机构 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Pids"> | |||
<summary> | |||
上级ID集合 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Store_Addr"> | |||
<summary> | |||
店铺地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Store_Loc"> | |||
<summary> | |||
店铺坐标 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.AutoKey"> | |||
<summary> | |||
AutoKey 唯一值 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.Status"> | |||
<summary> | |||
状态 【正常 停用】默认 正常 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Organize.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="T:BPA.NewKitChen.Manage.Core.Org.BPA_Roles"> | |||
<summary> | |||
角色 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.Name"> | |||
<summary> | |||
角色名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.Sort"> | |||
<summary> | |||
排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.RoleType"> | |||
<summary> | |||
角色类型-集团角色_0、加盟商角色_1、门店角色_2 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Roles.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.Name"> | |||
<summary> | |||
用户名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.Account"> | |||
<summary> | |||
登录账号 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.Password"> | |||
<summary> | |||
登录密码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.Phone"> | |||
<summary> | |||
手机号码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.AdminType"> | |||
<summary> | |||
管理员类型-超级管理员_1、管理员_2、普通账号_3 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.SysOrgId"> | |||
<summary> | |||
归属组织 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.Org.BPA_Users.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.TypeId"> | |||
<summary> | |||
字典类型id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.Value"> | |||
<summary> | |||
字典值 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.Code"> | |||
<summary> | |||
字典编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.system.BPA_DictData.Status"> | |||
<summary> | |||
状态 【正常 停用】默认 正常 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_DictType.Name"> | |||
<summary> | |||
类型名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_DictType.Code"> | |||
<summary> | |||
类型编码 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_DictType.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_DictType.Status"> | |||
<summary> | |||
状态 【正常 停用】默认 正常 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.Operator"> | |||
<summary> | |||
操作人 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.RequestURL"> | |||
<summary> | |||
请求地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.RequestData"> | |||
<summary> | |||
请求数据 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.ResultData"> | |||
<summary> | |||
返回数据 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.IP"> | |||
<summary> | |||
ip地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_ErrorLog.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Name"> | |||
<summary> | |||
菜单名称 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Pid"> | |||
<summary> | |||
父级id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Code"> | |||
<summary> | |||
菜单编码 唯一 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Icon"> | |||
<summary> | |||
图标 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Router"> | |||
<summary> | |||
路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Component"> | |||
<summary> | |||
组件路径 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Visible"> | |||
<summary> | |||
是否可见 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Sort"> | |||
<summary> | |||
排序 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_Menu.Remark"> | |||
<summary> | |||
备注 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.Operator"> | |||
<summary> | |||
操作人 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.RequestURL"> | |||
<summary> | |||
请求地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.RequestData"> | |||
<summary> | |||
请求数据 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.ResultData"> | |||
<summary> | |||
返回数据 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.IP"> | |||
<summary> | |||
ip地址 | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_OperateLog.GroupId"> | |||
<summary> | |||
加盟商id | |||
</summary> | |||
</member> | |||
<member name="P:BPA.NewKitChen.Manage.Core.System.BPA_RoleMenu.Id"> | |||
<summary> | |||
主键 Guid | |||
</summary> | |||
</member> | |||
</members> | |||
</doc> |
@@ -0,0 +1,24 @@ | |||
using SqlSugar; | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Core.Base | |||
{ | |||
public abstract class IBaseEntity | |||
{ | |||
/// <summary> | |||
/// 主键 Guid | |||
/// </summary> | |||
[SugarColumn(IsPrimaryKey = true, ColumnDataType = "Nvarchar(64)", IsNullable = false)] | |||
public string Id { get; set; } | |||
public DateTime CreateAt { get; set; } = DateTime.Now; | |||
public string CreateBy { get; set; } | |||
/// <summary> | |||
/// 是否删除 | |||
/// </summary> | |||
public int IsDeleted { get; set; } = 0; | |||
} | |||
} |
@@ -0,0 +1,54 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Core.Base | |||
{ | |||
public class PageInputBase | |||
{ | |||
/// <summary> | |||
/// 当前页码 | |||
/// </summary> | |||
private int current; | |||
public virtual int Current | |||
{ | |||
get | |||
{ | |||
return current; | |||
} | |||
set | |||
{ | |||
current = value; | |||
if (current <= 0) | |||
{ | |||
current = 1; | |||
} | |||
} | |||
} | |||
//public int? Status { get; set; } | |||
/// <summary> | |||
/// 页码容量 | |||
/// </summary> | |||
private int pagesize; | |||
public virtual int PageSize | |||
{ | |||
get | |||
{ | |||
return pagesize; | |||
} | |||
set | |||
{ | |||
pagesize = value; | |||
if (pagesize <= 0) | |||
{ | |||
pagesize = 20; | |||
} | |||
} | |||
} | |||
} | |||
} |
@@ -0,0 +1,25 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
namespace BPA.NewKitChen.Manage.Core.Base | |||
{ | |||
/// <summary> | |||
/// 分页实体 | |||
/// </summary> | |||
public class PageUtil | |||
{ | |||
/// <summary> | |||
/// Data | |||
/// </summary> | |||
public object Data { get; set; } | |||
/// <summary> | |||
/// Total | |||
/// </summary> | |||
public int Total { get; set; } | |||
} | |||
} |
@@ -0,0 +1,45 @@ | |||
using Furion; | |||
using Microsoft.Extensions.Configuration; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using SqlSugar; | |||
using System; | |||
using System.Collections.Generic; | |||
namespace BPA.NewKitChen.Manage.Core | |||
{ | |||
/// <summary> | |||
/// 数据库上下文对象 | |||
/// </summary> | |||
public static class DbContext | |||
{ | |||
/// <summary> | |||
/// SqlSugar 数据库实例 | |||
/// </summary> | |||
public static void AddSqlsugarSetup(this IServiceCollection services, IConfiguration configuration) | |||
{ | |||
var connectionConfigs = App.GetConfig<List<ConnectionConfig>>("ConnectionConfigs"); | |||
//如果多个数数据库传 List<ConnectionConfig> | |||
var configConnection = new ConnectionConfig() | |||
{ | |||
ConnectionString = connectionConfigs[0].ConnectionString, | |||
DbType = DbType.MySql,//设置数据库类型 | |||
IsAutoCloseConnection = true,//自动释放数据务,如果存在事务,在事务结束后释放 | |||
InitKeyType = InitKeyType.Attribute, //从实体特性中读取主键自增列信息 | |||
ConfigId = "default", | |||
}; | |||
SqlSugarScope sqlSugar = new SqlSugarScope(configConnection, | |||
db => | |||
{ | |||
//单例参数配置,所有上下文生效 | |||
db.Aop.OnLogExecuting = (sql, pars) => | |||
{ | |||
Console.WriteLine(sql);//输出sql | |||
//Console.WriteLine($"当前SQL语句:【{sql}】,参数:【{string.Join(",", pars.Select(t => t.Value))}】"); | |||
}; | |||
}); | |||
services.AddSingleton<ISqlSugarClient>(sqlSugar);//这边是SqlSugarScope用AddSingleton | |||
} | |||
} | |||
} |