shichongfu
2023-04-25 ce0b49552668d3331055e2b1a1447a743dc54939
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.product.admin.test;
 
import com.product.common.utils.HttpTest;
import java.util.HashMap;
import java.util.Map;
 
/**
 * @Description: 栏目配置测试类
 */
public class PagesTest extends HttpTest {
 
    public static void main(String[] args) {
        //pagetypeList();
        //pageListByPagetype();
        //pageList();
        pageInfo();
        //addpage();
        //updatepage();
        //deletepage();
    }
    //获取栏目类型列表
    public static void pagetypeList() {
        Map m = new HashMap();
        m.put("url/api", "/api/pages/list-pagetype/v1");
        m.put("~table~", "product_sys_portal_column_config");
 
        testPost(m);
    }
    //根据栏目类型获取栏目列表
    public static void pageListByPagetype() {
        Map m = new HashMap();
        m.put("url/api", "/api/pages/list-pagesBytype/v1");
        m.put("~table~", "product_sys_portal_column_config");
        m.put("page_type","2");
        m.put("pagesize", "25");
        m.put("cpage", "1");
 
        testPost(m);
    }
    //栏目列表
    public static void pageList() {
        Map m = new HashMap();
        m.put("url/api", "/api/pages/list-pages/v1");
        m.put("~table~", "product_sys_portal_column_config");
        m.put("pagesize", "25");
        m.put("cpage", "1");
 
        testPost(m);
    }
    //栏目详情
    public static void pageInfo() {
        Map m = new HashMap();
        m.put("url/api", "/api/pages/find-pages/v1");
        m.put("~table~", "product_sys_portal_column_config");
        m.put("uuid", "9663dbb7-b87c-49cf-82ea-f664203d7af8");
 
        testPost(m);
    }
    //新增栏目配置
    public static void addpage() {
        Map m = new HashMap();
        m.put("url/api", "/api/pages/add-pages/v1");
        m.put("~table~", "product_sys_portal_column_config");
        m.put("page_name", "测试栏目20210320");
        m.put("page_type", "02");
 
        testPost(m);
    }
    //栏目修改
    public static void updatepage() {
        Map m = new HashMap();
        m.put("url/api", "/api/pages/update-pages/v1");
        m.put("~table~", "product_sys_portal_column_config");
        m.put("uuid", "9663dbb7-b87c-49cf-82ea-f664203d7af8");
        m.put("page_name", "测试栏目1X");
        m.put("page_type", "01");
        m.put("is_use", "1");
        m.put("show_column_name", "测试修改显示列01");
 
        testPost(m);
    }
    //栏目删除
    public static void deletepage() {
        Map m = new HashMap();
        m.put("url/api", "/api/pages/delete-pages/v1");
        m.put("~table~", "product_sys_portal_column_config");
        m.put("uuid", "501caa7a-b856-49a4-a0e4-cd59e39cf06d");
 
        testPost(m);
    }
}