public object Any(BasicRequest request) { DTOResponseLayUI dtoResponseLayUi = new DTOResponseLayUI(); BasicService service = new BasicService(); DTOResponse response = new DTOResponse(); if (request.ACTION == OPAction.QUERY) { response = service.GetList(request); } else if (request.ACTION == OPAction.AFFIRM) { response = service.SaveBasicObject(request); } else if (request.ACTION == OPAction.OP_01) { response = service.GetSysparamsList(request); } else if (request.ACTION == OPAction.OP_02) { response = service.SaveSysparams(request); } else { dtoResponseLayUi.code = -1; dtoResponseLayUi.msg = "未定义的操作类型:" + request.ACTION.ToString(); return(dtoResponseLayUi); } return(this.ConvertTo(response)); }