zhaoy 8 月之前
父節點
當前提交
ed14154eb1
共有 1 個文件被更改,包括 21 次插入0 次删除
  1. +21
    -0
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Authorization/AuthServices.cs

+ 21
- 0
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Authorization/AuthServices.cs 查看文件

@@ -1,4 +1,7 @@

using BPA.SAAS.Manage.Core.Org;
using Microsoft.AspNetCore.Authorization;

namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Authorization
{

@@ -6,6 +9,24 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Authorization
[ApiDescriptionSettings("开放平台", Tag = "授权管理"), AllowAnonymous, NonUnify]
public class AuthServices : IDynamicApiController
{
private readonly ISqlSugarClient _db;
public AuthServices(ISqlSugarClient db)
{
_db = db;
}
/// <summary>
/// 获取加盟商信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet("/api/authorization/GetCompanyById")]
[AllowAnonymous]
public async Task<BPA_Company> GetCompanyById(string id)
{
var data = await _db.Queryable<BPA_Company>().FirstAsync(x => x.Id == id);

return data;
}
}
}

Loading…
取消
儲存