Blame view

src/api/zsgl.js 3.27 KB
1
/*
2
 * @Description: 证书管理
3
 * @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 13
/**
 * @description: 证书管理-证书入库列表
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
14 15
export function getZsglrkList (data) {
    return request({
任超 committed
16
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglrkList',
蔡俊立 committed
17
        method: 'post',
任超 committed
18
        data
蔡俊立 committed
19 20
    })
}
21 22 23 24 25
/**
 * @description: 证书管理-新增证书入库
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
26 27
export function zsrk (data) {
    return request({
任超 committed
28
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsrk',
蔡俊立 committed
29
        method: 'post',
任超 committed
30
        data
蔡俊立 committed
31
    })
蔡俊立 committed
32
}
33 34 35 36 37
/**
 * @description: 证书管理-删除证书入库
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
38 39
export function removeZsgl (params) {
    return request({
任超 committed
40
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/removeZsgl',
蔡俊立 committed
41 42 43
        method: 'get',
        params: params
    })
蔡俊立 committed
44
}
45 46 47 48 49
/**
 * @description: 证书管理-审核证书入库
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
50 51
export function verifyZsrk (params) {
    return request({
任超 committed
52
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/verifyZsrk',
蔡俊立 committed
53 54 55 56
        method: 'get',
        params: params
    })
}
57 58 59 60 61
/**
 * @description: 证书管理-证书分发列表
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
62 63
export function getZsglffList (data) {
    return request({
任超 committed
64
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglffList',
蔡俊立 committed
65
        method: 'post',
任超 committed
66
        data
蔡俊立 committed
67 68
    })
}
69 70 71 72
/**
 * @description: 证书管理-证书分发列表
 * @author: renchao
 */
蔡俊立 committed
73 74
export function getZsStartNo () {
    return request({
任超 committed
75
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsStartNo',
蔡俊立 committed
76 77 78
        method: 'get'
    })
}
79 80 81 82 83
/**
 * @description: 证书管理-获取结束序列号
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
84 85
export function getZsEndNo (params) {
    return request({
任超 committed
86
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsEndNo',
蔡俊立 committed
87 88 89
        method: 'get',
        params
    })
蔡俊立 committed
90
}
91 92 93 94 95 96

/**
 * @description: 证书管理新增证书分发
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
97 98
export function zsff (data) {
    return request({
任超 committed
99
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsff',
蔡俊立 committed
100
        method: 'post',
任超 committed
101
        data
蔡俊立 committed
102 103
    })
}
104 105 106 107 108 109

/**
 * @description: 证书管理-确定分发
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
110 111
export function confirmZsff (params) {
    return request({
任超 committed
112
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/confirmZsff',
蔡俊立 committed
113 114 115 116
        method: 'get',
        params: params
    })
}
117 118 119 120 121 122

/**
 * @description: 证书管理-证书使用情况
 * @param {*} data
 * @author: renchao
 */
蔡俊立 committed
123 124
export function getZssyqkList (data) {
    return request({
任超 committed
125
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkList',
蔡俊立 committed
126
        method: 'post',
任超 committed
127
        data
蔡俊立 committed
128
    })
蔡俊立 committed
129
}
130 131 132 133 134 135

/**
 * @description: 证书使用情况详情
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
136 137
export function getZssyqkInfo (params) {
    return request({
任超 committed
138
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkInfo',
蔡俊立 committed
139 140 141
        method: 'get',
        params
    })
蔡俊立 committed
142
}
143 144 145 146 147
/**
 * @description: 证书入库/分发详情
 * @param {*} params
 * @author: renchao
 */
蔡俊立 committed
148 149
export function getZsglInfo (params) {
    return request({
任超 committed
150
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglInfo',
蔡俊立 committed
151 152 153
        method: 'get',
        params
    })
154
}