Blame view

src/api/zsgl.js 3.55 KB
1 2 3
/*
 * @Description: 
 * @Autor: renchao
4
 * @LastEditTime: 2023-05-17 10:24:24
5
 */
蔡俊立 committed
6
import request from '@/utils/request'
7
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
8 9 10 11 12
/**
 * @description: 证书管理-获取序列号
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
13 14
export function getSysSerialSingle (params) {
    return request({
任超 committed
15
        url: SERVER.SERVERAPI + '/rest/system/sysSerial/getSysSerialSingle',
蔡俊立 committed
16 17 18 19
        method: 'get',
        params: params
    })
}
20 21 22 23 24
/**
 * @description: 证书管理-证书入库列表
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
25 26
export function getZsglrkList (data) {
    return request({
任超 committed
27
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglrkList',
蔡俊立 committed
28
        method: 'post',
任超 committed
29
        data
蔡俊立 committed
30 31
    })
}
32 33 34 35 36
/**
 * @description: 证书管理-新增证书入库
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
37 38
export function zsrk (data) {
    return request({
任超 committed
39
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsrk',
蔡俊立 committed
40
        method: 'post',
任超 committed
41
        data
蔡俊立 committed
42
    })
蔡俊立 committed
43
}
44 45 46 47 48
/**
 * @description: 证书管理-删除证书入库
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
49 50
export function removeZsgl (params) {
    return request({
任超 committed
51
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/removeZsgl',
蔡俊立 committed
52 53 54
        method: 'get',
        params: params
    })
蔡俊立 committed
55
}
56 57 58 59 60
/**
 * @description: 证书管理-审核证书入库
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
61 62
export function verifyZsrk (params) {
    return request({
任超 committed
63
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/verifyZsrk',
蔡俊立 committed
64 65 66 67
        method: 'get',
        params: params
    })
}
68 69 70 71 72
/**
 * @description: 证书管理-证书分发列表
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
73 74
export function getZsglffList (data) {
    return request({
任超 committed
75
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglffList',
蔡俊立 committed
76
        method: 'post',
任超 committed
77
        data
蔡俊立 committed
78 79
    })
}
80 81 82 83
/**
 * @description: 证书管理-证书分发列表
 * @author: renchao
 */
蔡俊立 committed
84 85
export function getZsStartNo () {
    return request({
任超 committed
86
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsStartNo',
蔡俊立 committed
87 88 89
        method: 'get'
    })
}
90 91 92 93 94
/**
 * @description: 证书管理-获取结束序列号
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
95 96
export function getZsEndNo (params) {
    return request({
任超 committed
97
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsEndNo',
蔡俊立 committed
98 99 100
        method: 'get',
        params
    })
蔡俊立 committed
101
}
102 103 104 105 106 107

/**
 * @description: 证书管理新增证书分发
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
108 109
export function zsff (data) {
    return request({
任超 committed
110
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsff',
蔡俊立 committed
111
        method: 'post',
任超 committed
112
        data
蔡俊立 committed
113 114
    })
}
115 116 117 118 119 120

/**
 * @description: 证书管理-确定分发
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
121 122
export function confirmZsff (params) {
    return request({
任超 committed
123
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/confirmZsff',
蔡俊立 committed
124 125 126 127
        method: 'get',
        params: params
    })
}
128 129 130 131 132 133

/**
 * @description: 证书管理-证书使用情况
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
134 135
export function getZssyqkList (data) {
    return request({
任超 committed
136
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkList',
蔡俊立 committed
137
        method: 'post',
任超 committed
138
        data
蔡俊立 committed
139
    })
蔡俊立 committed
140
}
141 142 143 144 145 146

/**
 * @description: 证书使用情况详情
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
147 148
export function getZssyqkInfo (params) {
    return request({
任超 committed
149
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkInfo',
蔡俊立 committed
150 151 152
        method: 'get',
        params
    })
蔡俊立 committed
153
}
154 155 156 157 158
/**
 * @description: 证书入库/分发详情
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
159 160
export function getZsglInfo (params) {
    return request({
任超 committed
161
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglInfo',
蔡俊立 committed
162 163 164
        method: 'get',
        params
    })
蔡俊立 committed
165
}