You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
888 B
28 lines
888 B
using BBWYB.Server.Business;
|
|
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace BBWYB.Server.API.Controllers
|
|
{
|
|
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
|
|
public class UserController : BaseApiController
|
|
{
|
|
private UserBusiness userBusiness;
|
|
|
|
public UserController(IHttpContextAccessor httpContextAccessor, UserBusiness userBusiness) : base(httpContextAccessor)
|
|
{
|
|
this.userBusiness = userBusiness;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取登录用户是否为议价组
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public bool GetisBargainTeamByUserId()
|
|
{
|
|
return userBusiness.GetisBargainTeamByUserId(GetUserId(), false).isBargainTeam;
|
|
}
|
|
}
|
|
}
|
|
|