/// <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); }
public BasicResponse UpdateSystemDefaultGraphics(UpdateSystemDefaultGraphicsRequest graphicsbaseinfrequest) { var responsestr = HttpClientHelper.Post(Webapi + "/v1/graphicsbaseinf/updatesystemdefaultgraphics?token=" + Token, JSONHelper.ToJSONString(graphicsbaseinfrequest)); return(JSONHelper.ParseJSONString <BasicResponse>(responsestr)); }
public BasicResponse UpdateSystemDefaultGraphics(UpdateSystemDefaultGraphicsRequest graphicsbaseinfrequest) { return(graphicsbaseinfService.UpdateSystemDefaultGraphics(graphicsbaseinfrequest)); }