You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
599 B
26 lines
599 B
11 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface PassWordConfigVO {
|
||
|
id: number
|
||
|
status: boolean
|
||
|
ruleLevel: string
|
||
|
ruleDesc: string
|
||
|
tryCount: number
|
||
|
lockMinutes: number
|
||
|
updatePeriod: number
|
||
|
}
|
||
|
// 获取密码策略
|
||
|
export const getConfig = () => {
|
||
|
return request.get({ url: '/system/password/getConfig' })
|
||
|
}
|
||
|
|
||
|
// 设置密码策略
|
||
|
export const setConfig = (data: PassWordConfigVO) => {
|
||
|
return request.post({ url: '/system/password/setConfig', data })
|
||
|
}
|
||
|
|
||
|
// 获取密码复杂度
|
||
|
export const getRuleList = () => {
|
||
|
return request.get({ url: '/system/password/getRuleList'})
|
||
|
}
|