示例#1
0
        /// <summary>
        /// 查询健康说详细
        /// </summary>
        /// <param name="tipsId">ID</param>
        /// <returns></returns>
        public TipsInfo Get(int tipsId)
        {
            TipsRequest request = new TipsRequest()
            {
                tipsId = tipsId
            };
            string       postData = JsonHelper.GetJson(request);
            TipsResponse response = client.Execute(request, get, postData);

            if (response != null && response.tips != null)
            {
                return(response.tips);
            }
            return(null);
        }
示例#2
0
        /// <summary>
        /// 审核健康说评论
        /// </summary>
        /// <param name="commentId">ID</param>
        /// <param name="status">1:审核通过,2屏蔽</param>
        /// <param name="changUser">操作人</param>
        /// <returns></returns>
        public bool VerifyComment(int commentId, int status, string changUser)
        {
            TipsRequest request = new TipsRequest()
            {
                tipsId  = commentId,
                type    = status,
                updater = changUser
            };
            string       postData = JsonHelper.GetJson(request);
            TipsResponse response = client.Execute(request, verifyComment, postData);

            if (response != null)
            {
                return(response.success);
            }
            return(false);
        }