当前位置: 首页>>代码示例>>C#>>正文


C# HttpClientHelper.PostAuth方法代码示例

本文整理汇总了C#中HttpClientHelper.PostAuth方法的典型用法代码示例。如果您正苦于以下问题:C# HttpClientHelper.PostAuth方法的具体用法?C# HttpClientHelper.PostAuth怎么用?C# HttpClientHelper.PostAuth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HttpClientHelper的用法示例。


在下文中一共展示了HttpClientHelper.PostAuth方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AuthorLogin

        /// <summary>
        /// 作者登录
        /// </summary>
        /// <param name="loginAuthor"></param>
        /// <returns></returns>
        public AuthorInfoEntity AuthorLogin(AuthorInfoQuery queryAuthor)
        {
            HttpClientHelper clientHelper = new HttpClientHelper();
            AuthorInfoEntity authorEntity = clientHelper.PostAuth<AuthorInfoEntity, AuthorInfoQuery>(GetAPIUrl(APIConstant.AUTHORLOGIN), queryAuthor);
            if (authorEntity != null)
            {
                if (authorEntity.Pwd == WKT.Common.Security.MD5Handle.Encrypt(queryAuthor.Pwd))
                {
                    # region 设置该用户的角色列表

                    RoleAuthorQuery roleAuthorQuery = new RoleAuthorQuery();
                    roleAuthorQuery.JournalID = queryAuthor.JournalID;
                    roleAuthorQuery.AuthorID = authorEntity.AuthorID;
                    IList<RoleAuthorEntity> roleAuthorList = clientHelper.PostAuth<IList<RoleAuthorEntity>, RoleAuthorQuery>(GetAPIUrl(APIConstant.AUTHORGETROLELIST), roleAuthorQuery);
                    if (roleAuthorList != null && roleAuthorList.Count > 0)
                    {
                        authorEntity.RoleIDList = roleAuthorList.Select(p => p.RoleID).ToList<long>();
                        authorEntity.RoleID = authorEntity.RoleIDList[0];
                    }
                    # endregion
                    if (authorEntity.RoleIDList == null)
                    {
                        authorEntity.RoleIDList = new List<long> { -1};
                    }

                    return authorEntity;
                }
                else
                {
                    return null;
                }
            }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:37,代码来源:AuthorFacadeAPIService.cs

示例2: DealFinaceInAccount

        /// <summary>
        /// 处理在入款时改变稿件状态
        /// </summary>
        /// <param name="auditBillEntity"></param>
        /// <returns></returns>
        public ExecResult DealFinaceInAccount(CirculationEntity cirEntity)
        {
            HttpClientHelper clientHelper = new HttpClientHelper();
            ExecResult result = clientHelper.PostAuth<ExecResult, CirculationEntity>(GetAPIUrl(APIConstant.DealFinaceInAccount), cirEntity);

            return result;
        }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:12,代码来源:FlowFacadeService.cs

示例3: DeleteRoleAuthor

 /// <summary>
 /// 从存储媒介中删除对象
 /// </summary>
 /// <param name="mapID"></param>
 /// <returns></returns>
 public ExecResult DeleteRoleAuthor(long mapID)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     RoleAuthorEntity roleAuthor = new RoleAuthorEntity();
     roleAuthor.MapID = mapID;
     ExecResult execResult = clientHelper.PostAuth<ExecResult, RoleAuthorEntity>(GetAPIUrl(APIConstant.DELETEROLEAUTHOR), roleAuthor);
     return execResult;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:13,代码来源:RoleAuthorFacadeAPIService.cs

示例4: GetRoleAuthor

 /// <summary>
 /// 获取一个实体对象
 /// </summary>
 /// <param name="mapID"></param>
 /// <returns></returns>
 public RoleAuthorEntity GetRoleAuthor(long mapID)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     RoleAuthorQuery roleAuthorQuery = new RoleAuthorQuery();
     roleAuthorQuery.MapID = mapID;
     RoleAuthorEntity roleAuthorEntity = clientHelper.PostAuth<RoleAuthorEntity, RoleAuthorQuery>(GetAPIUrl(APIConstant.GETROLEAUTHORLIST), roleAuthorQuery);
     return roleAuthorEntity;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:13,代码来源:RoleAuthorFacadeAPIService.cs

示例5: GetAllowAllotInfo

 /// <summary>
 /// 得到投稿自动分配设置
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public EditorAutoAllotEntity GetAllowAllotInfo(EditorAutoAllotQuery query)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     EditorAutoAllotEntity cSetResult = clientHelper.PostAuth<EditorAutoAllotEntity, EditorAutoAllotQuery>(GetAPIUrl(APIConstant.CONTRIBUTION_GETAUTOALLOTINFO), query);
     if (cSetResult.SubjectAuthorMap != null && cSetResult.SubjectAuthorMap.Count > 0)
     {
         foreach (SubjectAuthorMapEntity item in cSetResult.SubjectAuthorMap)
         {
             item.AuthorName = GetMemberName(item.AuthorID);
         }
     }
     else
     {
         cSetResult.SubjectAuthorMap = new List<SubjectAuthorMapEntity>(0);
     }
     cSetResult.AuthorName = GetMemberName(cSetResult.AuthorID);
     cSetResult.OddAuthorName = GetMemberName(cSetResult.OddAuthorID);
     return cSetResult;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:24,代码来源:ContributionFacadeAPIService.cs

示例6: GetExpertApplyInfoList

 /// <summary>
 /// 获取专家申请信息列表
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public IList<ExpertApplyLogEntity> GetExpertApplyInfoList(ExpertApplyLogQuery query)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     IList<ExpertApplyLogEntity> listExpertApplyInfo = clientHelper.PostAuth<IList<ExpertApplyLogEntity>, ExpertApplyLogQuery>(GetAPIUrl(APIConstant.EXPERTAPPLY_GETLIST), query);
     return listExpertApplyInfo;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:11,代码来源:ExpertApplyFacadeAPIService.cs

示例7: UpdateApply

 /// <summary>
 /// 更新申请信息
 /// </summary>
 /// <param name="expertApplyLogEntity"></param>
 /// <returns></returns>
 public ExecResult UpdateApply(ExpertApplyLogEntity expertApplyLogEntity)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     ExecResult execResult = clientHelper.PostAuth<ExecResult, ExpertApplyLogEntity>(GetAPIUrl(APIConstant.EXPERTAPPLY_UPDATEAPPLY), expertApplyLogEntity);
     return execResult;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:11,代码来源:ExpertApplyFacadeAPIService.cs

示例8: DelApply

 /// <summary>
 /// 删除专家申请信息
 /// </summary>
 /// <param name="PKID"></param>
 /// <returns></returns>
 public ExecResult DelApply(long PKID)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     ExecResult execResult = clientHelper.PostAuth<ExecResult, long>(GetAPIUrl(APIConstant.EXPERTAPPLY_DELAPPLY), PKID);
     return execResult;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:11,代码来源:ExpertApplyFacadeAPIService.cs

示例9: GetExpertApplyInfo

 /// <summary>
 /// 获取专家申请信息实体
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public ExpertApplyLogEntity GetExpertApplyInfo(ExpertApplyLogQuery query)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     ExpertApplyLogEntity expertApplyEntity = clientHelper.PostAuth<ExpertApplyLogEntity, ExpertApplyLogQuery>(GetAPIUrl(APIConstant.EXPERTAPPLY_GETMODEL), query);
     return expertApplyEntity;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:11,代码来源:ExpertApplyFacadeAPIService.cs

示例10: DelRole

 /// <summary>
 /// 删除角色
 /// </summary>
 /// <param name="queryRole"></param>
 /// <returns></returns>
 public ExecResult DelRole(RoleInfoQuery queryRole)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     ExecResult execResult = clientHelper.PostAuth<ExecResult, RoleInfoQuery>(GetAPIUrl(APIConstant.SYSDELROLEINFO), queryRole);
     return execResult;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:11,代码来源:SiteSystemFacadeAPIService.cs

示例11: AddFlowStatus

 /// <summary>
 /// 新增审稿环节
 /// </summary>
 /// <param name="flowStepEntity"></param>
 /// <returns></returns>
 public ExecResult AddFlowStatus(FlowStep flowStepEntity)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     ExecResult execResult = clientHelper.PostAuth<ExecResult, FlowStep>(GetAPIUrl(APIConstant.FLOW_ADDFLOWSTATUS), flowStepEntity);
     return execResult;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:11,代码来源:FlowFacadeService.cs

示例12: GetMenu

 /// <summary>
 /// 获取指定菜单信息
 /// </summary>
 /// <param name="queryMenu"></param>
 /// <returns></returns>
 public MenuEntity GetMenu(MenuQuery queryMenu)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     MenuEntity menuItem = clientHelper.PostAuth<MenuEntity, MenuQuery>(GetAPIUrl(APIConstant.SYSGETMENUENTITY), queryMenu);
     menuItem.MenuUrl = SiteConfig.RootPath + menuItem.MenuUrl;
     menuItem.IconUrl = SiteConfig.RootPath + menuItem.IconUrl;
     return menuItem;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:13,代码来源:SiteSystemFacadeAPIService.cs

示例13: CheckCStatusIsExists

 /// <summary>
 /// 判断审稿状态对应的稿件状态是否存在
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public FlowStatusEntity CheckCStatusIsExists(FlowStatusQuery query)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     FlowStatusEntity statusEntity = clientHelper.PostAuth<FlowStatusEntity, FlowStatusQuery>(GetAPIUrl(APIConstant.FLOW_CHECKCSTATUSISEXISTS), query);
     return statusEntity;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:11,代码来源:FlowFacadeService.cs

示例14: GetFlowLog

        // <summary>
        /// 获取稿件的处理日志
        /// </summary>
        /// <param name="cirEntity">稿件ID,JournalID,分组</param>
        /// <returns></returns>
        public IList<FlowLogInfoEntity> GetFlowLog(CirculationEntity cirEntity)
        {
            HttpClientHelper clientHelper = new HttpClientHelper();
            IList<FlowLogInfoEntity> flowLogList = clientHelper.PostAuth<IList<FlowLogInfoEntity>, CirculationEntity>(GetAPIUrl(APIConstant.FLOW_GETFLOWLOG), cirEntity);
            if (flowLogList != null)
            {
                foreach (FlowLogInfoEntity item in flowLogList)
                {
                    # region 处理人角色

                    item.SendUserGroupName = GetRoleName(item.SendRoleID);
                    item.RecUserGroupName = GetRoleName(item.RecRoleID);

                    # endregion
                }
            }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:21,代码来源:FlowFacadeService.cs

示例15: AddRole

 /// <summary>
 /// 新增角色
 /// </summary>
 /// <param name="roleEntity"></param>
 /// <returns></returns>
 public ExecResult AddRole(RoleInfoEntity roleEntity)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     ExecResult execResult = clientHelper.PostAuth<ExecResult, RoleInfoEntity>(GetAPIUrl(APIConstant.SYSADDROLEINFO), roleEntity);
     return execResult;
 }
开发者ID:zhanglc8801,项目名称:WKT2015,代码行数:11,代码来源:SiteSystemFacadeAPIService.cs


注:本文中的HttpClientHelper.PostAuth方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。