Exemplo n.º 1
0
        public void SearchStoreListAH()
        {
            //var RP = new SearchStoreListRP();
            //RP.CityCode = "-00";
            //RP.Position = "121.473704,31.230393";
            //var request = new APIRequest<SearchStoreListRP>();
            //string str = "{\"Locale\":\"ch\",\"CustomerID\":\"2582cf87839a414584294f57d3fccfbe\",\"UserID\":\"add73ef71c2c480c89b5a6941cb0dfc9\",\"OpenID\":\"ofUHqjgSme_qaNQN0oohrM7kX_Ck\",\"Token\":null,\"Parameters\":{\"type\":\"Product\",\"NameLike\":\"\",\"CityName\":\"附近\",\"Position\":\"31.230393,121.473704\",\"PageIndex\":1,\"PageSize\":99,\"StoreID\":\"\",\"IncludeHQ\":\"\"}}";
            //request = str.DeserializeJSONTo <APIRequest<SearchStoreListRP>>();
            //request.CustomerID = customerId;
            //request.Parameters = RP;
            //var rsp = APIClientProxy.CallAPI<SearchStoreListRP, SearchStoreListRD>(DTO.ValueObject.APITypes.Product, "UnitAndItem.Unit.SearchStoreList", request);
            //Console.WriteLine(rsp.ToJSON());

            var RP = new SearchStoreListRP();

            RP.CityCode  = "-00";
            RP.Position  = "121.441240,31.227995";
            RP.PageIndex = 0;
            RP.PageSize  = 15;
            var request = new APIRequest <SearchStoreListRP>();

            // request.CustomerID = "29E11BDC6DAC439896958CC6866FF64E";
            request.CustomerID = "e703dbedadd943abacf864531decdac1";
            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <SearchStoreListRP, SearchStoreListRD>(DTO.ValueObject.APITypes.Product, "UnitAndItem.Unit.SearchStoreList", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 2
0
        public void TestMergeVipInfo()
        {
            var req = HttpUtility.UrlDecode("%7B%22Locale%22%3Anull%2C%22CustomerID%22%3A%2257374a5f53f54191a728810618ec8276%22%2C%22UserID%22%3A%228f5595ac7c3541f39be5e7c6ff415d04%22%2C%22OpenID%22%3A%22ofUHqjgSme_qaNQN0oohrM7kX_Ck%22%2C%22Token%22%3Anull%2C%22Parameters%22%3A%7B%22Mobile%22%3A%2218616153083%22%2C%22AuthCode%22%3A%22%22%7D%7D").DeserializeJSONTo <APIRequest <MergeVipInfoRP> >();
            var rsp = APIClientProxy.CallAPI <MergeVipInfoRP, MergeVipInfoRD>(APITypes.Product, "VIP.Register.MergeVipInfo", req);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 3
0
        public void TestSetKeyWord()
        {
            var keywordList = new KeyWordInfo();

            keywordList.ReplyId       = "101E5AFA0D4E4CA9B738323A4B108357";
            keywordList.KeyWord       = "团购test";
            keywordList.BeLinkedType  = 2;
            keywordList.ApplicationId = "386D08D106C849A9ACAA6E493D23E853";
            keywordList.ReplyType     = 1;
            keywordList.DisplayIndex  = 10;
            keywordList.Text          = "xxxxx";

            var rp = new SetKeyWordRP {
            };

            rp.KeyWordList = keywordList;
            var request = new APIRequest <SetKeyWordRP> {
                CustomerID = CustomerId, Parameters = rp
            };

            var rsp = APIClientProxy.CallAPI <SetKeyWordRP, SetKeyWordRD>(APITypes.Product, "WX.KeyWord.SetKeyWord",
                                                                          request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 4
0
        public void TestSetMaterialText()
        {
            var paras = new List <object> {
            };

            paras.Add(new { Key = "eventId", Value = "" });
            var rp = new SetMaterialTextRP()
            {
                MaterialText = new MaterialTextInfo()
                {
                    Title         = "aaa",
                    ImageUrl      = "aaaa",
                    ApplicationId = "386D08D106C849A9ACAA6E493D23E853",
                    PageID        = new Guid("900209A3-791F-48DC-9D29-D9B8954A974B"),
                    PageParamJson = paras.ToJSON()
                }
            };
            var request = new APIRequest <SetMaterialTextRP>()
            {
                CustomerID = CustomerId
            };

            request.Parameters = rp;
            var reqstr = "{\"Locale\":null,\"CustomerID\":\"e703dbedadd943abacf864531decdac1\",\"UserID\":null,\"OpenID\":null,\"Token\":null,\"Parameters\":{\"MaterialText\":{\"UnionTypeId\":\"3\",\"TextId\":\"\",\"Title\":\"sfsfdsf\",\"Author\":\"\",\"ImageUrl\":\"http://dev.o2omarketing.cn:9004/Framework/Javascript/Other/kindeditor/asp.net/../attached/image/20140508/Thumb20140508181530_1536.jpg\",\"OriginalUrl\":null,\"Text\":null,\"ApplicationId\":\"386D08D106C849A9ACAA6E493D23E853\",\"TypeId\":\"D76030FDBA7140B89F804D68EDC3AE38\",\"PageId\":\"fcb5d3845146461eaadfa0ebce2b9cfc\",\"ModuleName\":\"微官网\",\"PageParamJson\":\"[{}]\"}}}";

            reqstr  = "{\"Parameters\":{\"MaterialText\":{\"UnionTypeId\":\"3\",\"TextId\":\"\",\"Title\":\"we sdf\",\"Author\":\"\",\"ImageUrl\":\"/Framework/Javascript/Other/kindeditor/asp.net/../attached/image/20140512/Thumb20140512121035_9317.jpg\",\"OriginalUrl\":null,\"Text\":null,\"ApplicationId\":\"386D08D106C849A9ACAA6E493D23E853\",\"TypeId\":\"D76030FDBA7140B89F804D68EDC3AE38\",\"PageId\":\"9aff5764ab2c4dd28fd05d158bb3719a\",\"ModuleName\":\"活动列表\",\"PageParamJson\":\"[{\\\"key\\\":\\\"eventType\\\",\\\"value\\\":\\\"1AB5D938-319E-4EC3-BB1F-7A4C55EBAD07\\\"},{\\\"key\\\":\\\"pageModule\\\",\\\"value\\\":{\\\"PageID\\\":\\\"9aff5764ab2c4dd28fd05d158bb3719a\\\",\\\"ModuleName\\\":\\\"活动列表\\\",\\\"PageCode\\\":\\\"EventList\\\",\\\"URLTemplate\\\":\\\"/HtmlApps/html/_pageName_?eventType={eventType}\\\"}},{\\\"key\\\":\\\"pageType\\\",\\\"value\\\":{\\\"EventTypeId\\\":\\\"1AB5D938-319E-4EC3-BB1F-7A4C55EBAD07\\\",\\\"EventTypeName\\\":\\\"体育爱好\\\"}}]\"}},\"CustomerId\":\"e703dbedadd943abacf864531decdac1\"}";
            request = reqstr.DeserializeJSONTo <APIRequest <SetMaterialTextRP> >();
            var rsp = APIClientProxy.CallAPI <SetMaterialTextRP, SetMaterialTextRD>(APITypes.Product, "WX.MaterialText.SetMaterialText", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 5
0
        public void GetVipInfoList()
        {
            var pr = new VipSearchListRP();

            pr.PageIndex = 1;
            pr.PageSize  = 10;
            pr.OrderBy   = "VipName";
            pr.SortType  = "ASC";
            var searchColumns = new List <SearchColumn>();

            //searchColumns.Add(new SearchColumn { ColumnName = "VipRealName", ColumnValue1 = "王", ControlType = 1 });
            //searchColumns.Add(new SearchColumn { ColumnName = "CouponInfo", ColumnValue1 = "559530955d704a54a5121e5fe588f78d", ControlType = 205 });
            //searchColumns.Add(new SearchColumn { ColumnName = "VipSourceId", ColumnValue1 = "3", ControlType = 5 });
            //searchColumns.Add(new SearchColumn { ColumnName = "Phone", ColumnValue1 = "189", ControlType = 7 });
            //searchColumns.Add(new SearchColumn { ColumnName = "VipLevel", ColumnValue1 = "2", ControlType = 5 });
            //searchColumns.Add(new SearchColumn { ColumnName = "Birthday", ColumnValue1 = "1973-01-23", ColumnValue2 = "1980-06-01", ControlType = 6 });
            searchColumns.Add(new SearchColumn {
                ColumnName = "Age", ColumnValue1 = "30", ControlType = 2
            });
            pr.SearchColumns = searchColumns.ToArray();
            var tags = new List <VipSearchTag>();

            //tags.Add(new VipSearchTag { LeftBracket="(", EqualFlag = "include", TagId = "4F15D3B2C3C94402A45F5F6F18891943", AndOrStr = "or", RightBracket = "" });
            //tags.Add(new VipSearchTag { LeftBracket="", EqualFlag = "include", TagId = "D3A9CAB819444E17B5B97BF3068133C3", AndOrStr = "", RightBracket = ")" });
            pr.VipSearchTags = tags.ToArray();
            var request = new APIRequest <VipSearchListRP>()
            {
                CustomerID = "e703dbedadd943abacf864531decdac1", UserID = "7c292994c45143028cbf0b60c9555aec"
            };

            request.Parameters = pr;
            var rsp = APIClientProxy.CallAPI <VipSearchListRP, VipSearchListRD>(APITypes.Product, "GetVipInfoList", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 6
0
        public void TestFormSave()
        {
            //new TestMemberLogin().TestSetSignIn();
            var RP = new FormSaveRP();

            RP.MobileModuleID = "90920285-B3DF-4EE2-AC19-4BC62875646A";
            var items = new List <MobileBunessDefinedSubInfo>();

            items.Add(new MobileBunessDefinedSubInfo
            {
                ColumnName  = "Name",
                ColumnDesc  = "姓名--1-1",
                ControlType = 1,
                ListOrder   = 1,
            });
            RP.Items = items.ToArray();
            var request = new APIRequest <FormSaveRP>();

            request.Parameters = RP;

            //request.CustomerID = customerId;
            var rsp = APIClientProxy.CallAPI <FormSaveRP, FormSaveRD>(APITypes.Product, "VIP.MobileModule.FormSave", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 7
0
        public void GetVipCoupon()
        {
            var rp    = new GetVipIntegralRP();
            var paras = new List <SkuIdAndQtyInfo>
            {
                new SkuIdAndQtyInfo()
                {
                    SkuId = "e31438aeb3c04dabbd56590bc27aa343", Qty = 1
                },
                new SkuIdAndQtyInfo()
                {
                    SkuId = "5eefddee28304752931169eb96f23c8b", Qty = 2
                },
                new SkuIdAndQtyInfo()
                {
                    SkuId = "7B165FBA093E4583A61F0A02AE5F0663", Qty = 3
                }
            };

            rp.SkuIdAndQtyList = paras.ToArray();
            var request = new APIRequest <GetVipIntegralRP>
            {
                CustomerID = customerId,
                UserID     = "5bacfc5d5e1b4d3685384ba0bccfca04",
                Parameters = rp
            };

            var rsp = APIClientProxy.CallAPI <GetVipIntegralRP, GetVipCouponRD>(APITypes.Product, "GetVipCoupon", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 8
0
        public void TestSetEventAdAPI()
        {
            var rp      = new SetEventAdRP();
            var request = new APIRequest <SetEventAdRP>();

            request.CustomerID = customerId;
            request.Parameters = rp;
            rp.OperateType     = 1;
            Guid homeId   = new Guid("D6350CAB-C3FA-4F16-846E-39103C5AC3F1");
            Guid adAreaId = Guid.NewGuid();

            rp.AdAreaInfoPara = new AdAreaInfoPara[] { };


            List <AdAreaInfoPara> para = new List <AdAreaInfoPara>();


            rp.AdAreaInfoPara[0].AdAreaId     = adAreaId;
            rp.AdAreaInfoPara[0].HomeID       = homeId;
            rp.AdAreaInfoPara[0].ImageUrl     = "xxx";
            rp.AdAreaInfoPara[0].ObjectID     = "xxx";
            rp.AdAreaInfoPara[0].ObjectTypeID = 2;
            rp.AdAreaInfoPara[0].DisplayIndex = 1;
            rp.AdAreaInfoPara[0].Url          = "xxxx";

            var rsp = APIClientProxy.CallAPI <SetEventAdRP, SetEventAdRD>(APITypes.Product, "AppConfig.HomePageConfig.SetEventAd", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 9
0
        public void UpdateVipInfo()
        {
            var pr = new VipEntityRP();

            pr.VipId = "003e30e7121741beb749a230eebecfe0";
            var columns = new List <SearchColumn>();

            columns.Add(new SearchColumn()
            {
                ColumnName = "VipName", ColumnValue1 = "EthanTestUpate", ControlType = 1
            });
            columns.Add(new SearchColumn()
            {
                ColumnName = "Qq", ColumnValue1 = "13434515", ControlType = 1
            });
            pr.Columns = columns.ToArray();
            var request = new APIRequest <VipEntityRP>()
            {
                CustomerID = "e703dbedadd943abacf864531decdac1", UserID = "B87FBC7A6D664F67B65F9AD747C5E5DD"
            };

            request.Parameters = pr;
            var rsp = APIClientProxy.CallAPI <VipEntityRP, EmptyResponseData>(APITypes.Product, "UpdateVipInfo", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 10
0
        public void AddVip()
        {
            var pr            = new VipEntityRP();
            var searchColumns = new List <SearchColumn>();

            searchColumns.Add(new SearchColumn()
            {
                ColumnName = "VipName", ColumnValue1 = "EthanTest", ControlType = 1
            });
            searchColumns.Add(new SearchColumn()
            {
                ColumnName = "VipCode", ColumnValue1 = "Vip-EthanTest", ControlType = 1
            });
            searchColumns.Add(new SearchColumn()
            {
                ColumnName = "Gender", ColumnValue1 = "2", ControlType = 2
            });
            pr.Columns = searchColumns.ToArray();
            var request = new APIRequest <VipEntityRP>()
            {
                CustomerID = "e703dbedadd943abacf864531decdac1", UserID = "B87FBC7A6D664F67B65F9AD747C5E5DD"
            };

            request.Parameters = pr;
            var rsp = APIClientProxy.CallAPI <VipEntityRP, EmptyResponseData>(APITypes.Product, "AddVip", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 11
0
        public void TestSetRegisterFormItems()
        {
            var RP = new SetRegisterFormItemsRP();
            //  RP.ID = new Guid("e19a3760-4d0c-40f4-b295-98d31c07abc0");
            var request = new APIRequest <SetRegisterFormItemsRP>();

            request.CustomerID = customerId;
            request.Parameters = RP;

            CommitFormItemInfo[] commitFormItemInfo = new CommitFormItemInfo[]
            {
                new CommitFormItemInfo()
                {
                    ID = "8754A2B9-F823-4DDC-8808-0798BFFA887F", IsMustDo = true, Value = "1871122"
                },
                new CommitFormItemInfo()
                {
                    ID = "8F8CBDD0-E8E8-46E1-AF63-153E4B212012", IsMustDo = true, Value = "xxx"
                }
            };
            RP.ItemList = commitFormItemInfo;

            request = "{\"Locale\":null,\"CustomerID\":\"8c6979db4acb4dd3909f5be67f433e67\",\"UserID\":\"e025b4bf885c4b7d8ecfc3373557cb20\",\"OpenID\":null,\"Token\":null,\"Parameters\":{\"ItemList\":[{\"ID\":\"791923cc-d94f-4bfe-b6f1-5c982975ad88\",\"IsMustDo\":false,\"Value\":\"阿萨德\"},{\"ID\":\"daf7bcdf-d904-4d05-854c-5fadbea42f0f\",\"IsMustDo\":false,\"Value\":\"阿萨德\"},{\"ID\":\"acacc0ef-6a97-43d6-bf7f-6c5e57ede5a3\",\"IsMustDo\":false,\"Value\":\"再不行弄死你\"},{\"ID\":\"1d5f307c-d07a-4776-acee-a81ed8f99e32\",\"IsMustDo\":false,\"Value\":\"实得分\"},{\"ID\":\"26dba0fa-71b2-4913-b8cc-c16e751e7d45\",\"IsMustDo\":false,\"Value\":\"丰盛的\"},{\"ID\":\"4c5adfa8-5f15-437b-97a5-ebbd6228529f\",\"IsMustDo\":false,\"Value\":\"1\"}],\"VipSource\":3}}".DeserializeJSONTo <APIRequest <SetRegisterFormItemsRP> >();
            var rsp = APIClientProxy.CallAPI <SetRegisterFormItemsRP, SetRegisterFormItemsRD>(APITypes.Product, "VIP.Register.SetRegisterFormItems", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 12
0
        public void TestSetMenuList()
        {
            var paras = new List <object> {
                new { Key = "eventId", Value = "adjkfjoioajfkljekloofa" }
            };

            var rp = new SetMenuRP
            {
                MenuId          = "CD57B6CBAC8044E293FD7F0772A51B8C",
                DisplayColumn   = "1",
                Name            = "我的战绩",
                Level           = 2,
                ApplicationId   = "386D08D106C849A9ACAA6E493D23E853",
                ImageUrl        = "xxx",
                ParentId        = "D13D8BFBF77F40748E95A702FD4DECE9",
                MenuUrl         = "http://www.baidu.com",
                MessageType     = "1",
                Status          = 1,
                Text            = "xxx",
                PageParamJson   = paras.ToJSON(),
                UnionTypeId     = 1,
                MaterialTextIds = null,
                PageId          = new Guid("9AFF5764-AB2C-4DD2-8FD0-5D158BB3719A")
            };

            var request = new APIRequest <SetMenuRP> {
                CustomerID = CustomerId, Parameters = rp
            };

            var rsp = APIClientProxy.CallAPI <SetMenuRP, SetMenuRD>(APITypes.Product, "WX.Menu.SetMenu",
                                                                    request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 13
0
        public void TestGetConfig()
        {
            EmptyRequest req = new EmptyRequest();

            req.CustomerID = "4638b8b9d8c1435e8618f892d44a17a1";
            var rsp = APIClientProxy.CallAPI <EmptyRequestParameter, GetConfigRD>(APITypes.Product, "HtmlApp.Config.GetConfig", req);

            Assert.IsTrue(rsp.IsSuccess);
        }
Exemplo n.º 14
0
        public void GetItemCategoryList()
        {
            var request = new APIRequest <EmptyRequestParameter>();

            request.CustomerID = "e703dbedadd943abacf864531decdac1";  //老窖
            var rsp = APIClientProxy.CallAPI <EmptyRequestParameter, JIT.CPOS.Web.ApplicationInterface.Module.UnitAndItem.Item.GetItemCategoryListRD>(DTO.ValueObject.APITypes.Product, "GetItemCategoryList", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 15
0
        public void GetOrderDeliveryRangeAH()
        {
            var RP      = new GetOrderDeliveryTimeRangeRP();
            var request = new APIRequest <GetOrderDeliveryTimeRangeRP>();

            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <GetOrderDeliveryTimeRangeRP, GetOrderDeliveryTimeRangeRD>(APITypes.Product, "Order.Delivery.GetOrderDeliveryTimeRange", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 16
0
        public void GetVipTotal()
        {
            EmptyRequestParameter RP = new EmptyRequestParameter();
            var request = new APIRequest <EmptyRequestParameter>();// { CustomerID = customerId };

            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <EmptyRequestParameter, GetVipTotalRD>(APITypes.Product, "GetVipTotal", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 17
0
        public void GetItemCategoryByParentId()
        {
            var request = new APIRequest <GetCategoryByParentIdRP>();

            request.CustomerID          = "e703dbedadd943abacf864531decdac1"; //老窖
            request.Parameters.ParentID = "27516921-0BDD-43EC-B709-EABEB386ADA2";
            var rsp = APIClientProxy.CallAPI <JIT.CPOS.Web.ApplicationInterface.Module.UnitAndItem.Item.GetCategoryByParentIdRP, JIT.CPOS.Web.ApplicationInterface.Module.UnitAndItem.Item.GetItemCategoryListRD>(DTO.ValueObject.APITypes.Product, "GetItemCategoryByParentId", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 18
0
        public void GetVocationVersionMappingListAH()
        {
            GetVocationVersionMappingListRP RP = new GetVocationVersionMappingListRP();
            //RP.PageIndex = 0;
            // RP.PageSize = 5;
            var request = new APIRequest <GetVocationVersionMappingListRP>();

            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <GetVocationVersionMappingListRP, GetVocationVersionMappingListRD>(APITypes.Product, "WX.SysPage.GetVocationVersionMappingList", request);
        }
Exemplo n.º 19
0
        public void TestGetHomePageActivityListAH()
        {
            var req = new EmptyRequest();

            req.CustomerID = "e703dbedadd943abacf864531decdac1";
            req.JSONP      = "test";
            var rd = APIClientProxy.CallAPI <EmptyRequestParameter, GetHomePageActivityListRD>(APITypes.Project, "LZLJ.Activity.Activity.GetHomePageActivityList", req);

            Assert.IsTrue(rd != null);
            Assert.IsTrue(rd.Data.Items != null);
        }
Exemplo n.º 20
0
        public void GetTypeList()
        {
            var RP      = new GetTypeListRP();
            var request = new APIRequest <GetTypeListRP>();

            request.CustomerID = customerId;
            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <GetTypeListRP, GetTypeListRD>(APITypes.Product, "Knowledge.Type.GetTypeList", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 21
0
        public void TestSetEventItemAPI()
        {
            var rp      = new SetEventItemRP();
            var request = new APIRequest <SetEventItemRP>();

            request.CustomerID = customerId;
            request.Parameters = rp;
            var rsp = APIClientProxy.CallAPI <SetEventItemRP, SetEventItemRD>(APITypes.Product, "AppConfig.HomePageConfig.SetEventItem", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 22
0
        public void SetCustomerModuleMappingAH()
        {
            SetCustomerModuleMappingRP RP = new SetCustomerModuleMappingRP();

            RP.VocaVerMappingID = "28A18577-38CB-486D-861C-0279B638807D";
            RP.CustomerID       = "92a251898d63474f96b2145fcee2860c"; //花间堂
            var request = new APIRequest <SetCustomerModuleMappingRP>();

            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <SetCustomerModuleMappingRP, SetCustomerModuleMappingRD>(APITypes.Product, "WX.SysPage.SetCustomerModuleMapping", request);
        }
Exemplo n.º 23
0
        public void SetModulePageMappingAH()
        {
            SetModulePageMappingRP RP = new SetModulePageMappingRP();

            RP.PageId           = "46b6a6ba-8c2b-4809-9185-de895de57589"; //门店详
            RP.VocaVerMappingID = new string[] { "28A18577-38CB-486D-861C-0279B638807D" };
            var request = new APIRequest <SetModulePageMappingRP>();

            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <SetModulePageMappingRP, EmptyResponseData>(APITypes.Product, "WX.SysPage.SetModulePageMapping", request);
        }
Exemplo n.º 24
0
        public void TestGetEventTypeList()
        {
            var rp = new GetEventTypeListRP();
            //  RP.ID = new Guid("e19a3760-4d0c-40f4-b295-98d31c07abc0");
            var request = new APIRequest <GetEventTypeListRP> {
                CustomerID = customerId
            };

            var rsp = APIClientProxy.CallAPI <GetEventTypeListRP, GetEventTypeListRD>(APITypes.Product, "WX.Event.GetEventTypeList", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 25
0
        public void GetDisplaynoneAH()
        {
            var RP      = new GetDisplaynoneRP();
            var request = new APIRequest <GetDisplaynoneRP>();

            request.CustomerID = customerId;
            request.Parameters = RP;
            request.CustomerID = "e703dbedadd943abacf864531decdac1";
            var rsp = APIClientProxy.CallAPI <GetDisplaynoneRP, GetDisplaynoneRD>(DTO.ValueObject.APITypes.Product, "UnitAndItem.Unit.GetDisplaynone", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 26
0
        [Test] //获取模板页明细
        public void GetSysPageDetailAH()
        {
            GetSysPageDetailRP RP = new GetSysPageDetailRP();

            RP.PageId = "99C3B0C3-F78A-4B54-AD2E-07C7D2AD34D4"; //积分商城
            var request = new APIRequest <GetSysPageDetailRP>();

            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <GetSysPageDetailRP, GetSysPageDetailRD>(APITypes.Product, "WX.SysPage.GetSysPageDetail", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 27
0
        public void GetCustomerPageSetting()  //获取客户化配置
        {
            var rp = new GetCustomerPageSettingRP {
                PageKey = "MyOrder"
            };
            var request = new APIRequest <GetCustomerPageSettingRP> {
                CustomerID = customerId, Parameters = rp
            };
            var rsp = APIClientProxy.CallAPI <GetCustomerPageSettingRP, GetCustomerPageSettingRD>(APITypes.Product, "WX.SysPage.GetCustomerPageSetting", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 28
0
        public void TestGetAttributeList()
        {
            var RP      = new GetAttributeListRP();
            var request = new APIRequest <GetAttributeListRP>();

            request.CustomerID = customerId;
            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <GetAttributeListRP, GetAttributeListRD>(DTO.ValueObject.APITypes.Product,
                                                                                      "VIP.Attribute.GetAttributeList", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 29
0
        public void TestGetForms()
        {
            // new TestMemberLogin().TestSetSignIn();
            var RP      = new GetFormsRP();
            var request = new APIRequest <GetFormsRP>();

            request.Parameters = RP;
            request.CustomerID = customerId;
            var rsp = APIClientProxy.CallAPI <GetFormsRP, JIT.CPOS.DTO.Module.VIP.MobileModule.Response.GetFormsRD>(DTO.ValueObject.APITypes.Product, "VIP.MobileModule.GetForms", request);

            Console.WriteLine(rsp.ToJSON());
        }
Exemplo n.º 30
0
        public void TestGetCityList()
        {
            var RP = new GetCityListRP();
            //  RP.ID = new Guid("e19a3760-4d0c-40f4-b295-98d31c07abc0");
            var request = new APIRequest <GetCityListRP>();

            request.CustomerID = customerId;
            request.Parameters = RP;
            var rsp = APIClientProxy.CallAPI <GetCityListRP, GetCityListRD>(APITypes.Product, "UnitAndItem.Area.GetCityList", request);

            Console.WriteLine(rsp.ToJSON());
        }