zsgl.js 3.27 KB
/*
 * @Description: 证书管理
 * @Autor: renchao
 * @LastEditTime: 2023-05-17 10:24:24
 */
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))

/**
 * @description: 证书管理-证书入库列表
 * @param {*} data
 * @author: renchao
 */
export function getZsglrkList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglrkList',
        method: 'post',
        data
    })
}
/**
 * @description: 证书管理-新增证书入库
 * @param {*} data
 * @author: renchao
 */
export function zsrk (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsrk',
        method: 'post',
        data
    })
}
/**
 * @description: 证书管理-删除证书入库
 * @param {*} params
 * @author: renchao
 */
export function removeZsgl (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/removeZsgl',
        method: 'get',
        params: params
    })
}
/**
 * @description: 证书管理-审核证书入库
 * @param {*} params
 * @author: renchao
 */
export function verifyZsrk (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/verifyZsrk',
        method: 'get',
        params: params
    })
}
/**
 * @description: 证书管理-证书分发列表
 * @param {*} data
 * @author: renchao
 */
export function getZsglffList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglffList',
        method: 'post',
        data
    })
}
/**
 * @description: 证书管理-证书分发列表
 * @author: renchao
 */
export function getZsStartNo () {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsStartNo',
        method: 'get'
    })
}
/**
 * @description: 证书管理-获取结束序列号
 * @param {*} params
 * @author: renchao
 */
export function getZsEndNo (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsEndNo',
        method: 'get',
        params
    })
}

/**
 * @description: 证书管理新增证书分发
 * @param {*} data
 * @author: renchao
 */
export function zsff (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsff',
        method: 'post',
        data
    })
}

/**
 * @description: 证书管理-确定分发
 * @param {*} params
 * @author: renchao
 */
export function confirmZsff (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/confirmZsff',
        method: 'get',
        params: params
    })
}

/**
 * @description: 证书管理-证书使用情况
 * @param {*} data
 * @author: renchao
 */
export function getZssyqkList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkList',
        method: 'post',
        data
    })
}

/**
 * @description: 证书使用情况详情
 * @param {*} params
 * @author: renchao
 */
export function getZssyqkInfo (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkInfo',
        method: 'get',
        params
    })
}
/**
 * @description: 证书入库/分发详情
 * @param {*} params
 * @author: renchao
 */
export function getZsglInfo (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglInfo',
        method: 'get',
        params
    })
}