zhaoy 8 months ago
parent
commit
ed14154eb1
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Authorization/AuthServices.cs

+ 21
- 0
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Authorization/AuthServices.cs View File

@@ -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…
Cancel
Save