2025-04-24 18:31:27 +08:00

46 lines
1.4 KiB
C#

using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using MyCode.Project.Domain.Message.Response.User;
using MyCode.Project.Infrastructure.Constant;
using MyCode.Project.WebApi.Controllers;
using MyCode.Project.Domain.Config;
using MyCode.Project.Services;
using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Domain.Message.Request.User;
using MyCode.Project.Infrastructure.Enumeration;
using MyCode.Project.Domain.Message.Act.User;
using MyCode.Project.Domain.Message.Response.Goods;
using MyCode.Project.Domain.Model;
using MyCode.Project.Infrastructure.Extensions;
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
{
public class RoleController : BaseWechatController
{
private IRoleService _roleService;
public RoleController(IRoleService roleService)
{
_roleService = roleService;
}
#region GetRoleMenuPowerList()
/// <summary>
/// 获取角色菜单权限
/// </summary>
/// <returns></returns>
[HttpGet]
public List<RoleMenuPower> GetRoleMenuPowerList()
{
return this._roleService.GetRoleMenuPowerList(this.CurrentLogin.RoleId.SafeValue(), this.CurrentLogin.UserId,
this.CurrentLogin.MerchantId, this.CurrentLogin.CustomerId);
}
#endregion
}
}