public async Task <Resp> CheckFuncPermission(HttpContext context, UserIdentity identity, string funcCode) { if (string.IsNullOrEmpty(funcCode)) { return(new Resp <string>().WithResp(RespTypes.ObjectNull, "Api接口未关联FuncCode(需通过FuncCodeAttribute设置)")); } if (funcCode == FuncCodes.None) { return(new Resp()); } return(await FuncHelper.CheckAuthUserIfHaveFunc(funcCode)); }