/// <summary> /// 获取师傅个人信息 /// </summary> /// <param name="pRequest"></param> /// <returns></returns> public string GetServicePerson(string pRequest) { var rd = new APIResponse <GetServicePersonRD>(); var rdData = new GetServicePersonRD(); ServicePersonViewModel m1 = new ServicePersonViewModel(); m1.ServicePersonId = "1"; m1.Name = "王明"; m1.Mobile = "123456"; m1.Picture = "Picture"; m1.Star = (decimal)10; m1.OrderCount = 1; m1.TodayOrder = 1; rdData.ServicePerson = m1; rd.Data = rdData; rd.ResultCode = 0; return(rd.ToJSON()); }
/// <summary> /// 获取接单师傅信息列表 /// </summary> /// <param name="pRequest"></param> /// <returns></returns> public string GetReceiveMaster(string pRequest) { var rd = new APIResponse <GetReceiveMasterRD>(); var rdData = new GetReceiveMasterRD(); ServicePersonViewModel m1 = new ServicePersonViewModel(); m1.ServicePersonId = "1"; m1.Name = "王明"; m1.Mobile = "123456"; m1.Picture = "Picture"; m1.Star = (decimal)10; m1.OrderCount = 1; m1.TodayOrder = 1; List <ServicePersonViewModel> list = new List <ServicePersonViewModel>(); list.Add(m1); rdData.ServicePersonList = list; rd.Data = rdData; rd.ResultCode = 0; return(rd.ToJSON()); }