zhaoy pirms 8 mēnešiem
vecāks
revīzija
ed14154eb1
1 mainītis faili ar 21 papildinājumiem un 0 dzēšanām
  1. +21
    -0
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Authorization/AuthServices.cs

+ 21
- 0
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Authorization/AuthServices.cs Parādīt failu

@@ -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;
}
}
}

Notiek ielāde…
Atcelt
Saglabāt