ComplianceServer/oldcode/ZXDService/UserCenterResService.svc.cs

25 lines
899 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Text;
using WX.CRM.Common;
using ZXDService.Dto;
namespace ZXDService
{
// 注意: 使用“重构”菜单上的“重命名”命令可以同时更改代码、svc 和配置文件中的类名“UserCenterResService”。
// 注意: 为了启动 WCF 测试客户端以测试此服务,请在解决方案资源管理器中选择 UserCenterResService.svc 或 UserCenterResService.svc.cs然后开始调试。
public class UserCenterResService : IUserCenterResService
{
public UserCenterResResult Get(AllocateRes3RequestDto dto)
{
var url = "http://172.18.10.80:10061/usercenter/cgi/getConditionUserList";
var rsp = Utility.PostAjaxData(url, dto.ToJson(), Encoding.UTF8);
LogHelper.Info(rsp);
var data = Utility.JSONToObject<UserCenterResResult>(rsp);
return data;
}
}
}