コード例 #1
0
        /// <summary>
        /// 修改系统默认图形
        /// </summary>
        /// <param name="graphicsbaseinfrequest"></param>
        /// <returns></returns>
        public BasicResponse UpdateSystemDefaultGraphics(UpdateSystemDefaultGraphicsRequest graphicsbaseinfrequest)
        {
            var response = new BasicResponse();

            if (string.IsNullOrWhiteSpace(graphicsbaseinfrequest.Bz3) || string.IsNullOrWhiteSpace(graphicsbaseinfrequest.GraphId))
            {
                response.Code    = -100;
                response.Message = "参数错误!";
                return(response);
            }
            try
            {
                _Repository.UpdateSystemDefaultGraphics(graphicsbaseinfrequest.Bz3, graphicsbaseinfrequest.GraphId);
            }
            catch (Exception ex)
            {
                response.Code    = -100;
                response.Message = ex.Message;
                this.ThrowException("UpdateUserDefinedGraphics-修改用户自定义图形", ex);
            }
            return(response);
        }
コード例 #2
0
        public BasicResponse UpdateSystemDefaultGraphics(UpdateSystemDefaultGraphicsRequest graphicsbaseinfrequest)
        {
            var responsestr = HttpClientHelper.Post(Webapi + "/v1/graphicsbaseinf/updatesystemdefaultgraphics?token=" + Token, JSONHelper.ToJSONString(graphicsbaseinfrequest));

            return(JSONHelper.ParseJSONString <BasicResponse>(responsestr));
        }
コード例 #3
0
 public BasicResponse UpdateSystemDefaultGraphics(UpdateSystemDefaultGraphicsRequest graphicsbaseinfrequest)
 {
     return(graphicsbaseinfService.UpdateSystemDefaultGraphics(graphicsbaseinfrequest));
 }