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
package com.product.admin.test;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
import com.product.common.utils.HttpTest;
 
public class ParamsSettingTest extends HttpTest {
    public static void main(String[] args) {
//        getParamsSettingAll();//获取所有系统参数
//        getParamsSettingInfo();//获取参数详情
        addParamsSetting();//新增系统参数
//        upParamsSetting();//修改系统参数
//        delParamsSetting();//删除系统参数
        
    }
    /**
     * 获取所有系统参数
     */
    public static void getParamsSettingAll() {
        Map m=new HashMap();
        List sub = new ArrayList();
        m.put("url/api", "/api/systemParameter/getAll/v1");
        m.put("version","V1");
        testPost(m);
    }
    /**
     * 获取系统参数详情
     */
    public static void getParamsSettingInfo() {
        Map m=new HashMap();
        m.put("url/api", "/api/systemParameter/getInfo/v1");
        m.put("version","V1");
        m.put("~table~", "product_sys_params_setting");
        m.put("uuid", "");
        testPost(m);
    }
    /**
     * 新增系统参数
     */
    public static void addParamsSetting() {
        Map m=new HashMap();
        List sub = new ArrayList();
        m.put("url/api", "/api/systemParameter/add/v1");
        m.put("version","V1");
        m.put("~table~", "product_sys_params_setting");
        //m.put("product_sys_swift_config", sub);
        m.put("param_code","GZH");//参数分类
        m.put("param_key","G");//参数键名key
        m.put("param_key_value","A");//参数键值
        m.put("param_name","1");//参数名称
        m.put("business_type","1");//业务类型
        testPost(m);
    }
    /**
     * 修改系统参数
     */
    public static void upParamsSetting() {
        Map m=new HashMap();
        List sub = new ArrayList();
        m.put("url/api", "/api/systemParameter/update/v1");
        m.put("version","V1");
        m.put("~table~", "product_sys_params_setting");
        m.put("uuid", "");
        m.put("param_code","GZH");//参数分类
        m.put("param_key","G");//参数键名key
        m.put("param_key_value","A");//参数键值
        m.put("param_name","1");//参数名称
        m.put("param_description","G");//参数描述
        m.put("business_type","1");//业务类型
        testPost(m);
    }
    /**
     * 删除系统参数
     */
    public static void delParamsSetting() {
        Map m=new HashMap();
        List sub = new ArrayList();
        m.put("url/api", "/api/systemParameter/delete/v1");
        m.put("version","V1");
        m.put("~table~", "product_sys_params_setting");
        m.put("uuid", "");//uuid 唯一标识
        testPost(m);
    }
}