diff --git a/src/api/system/password/index.ts b/src/api/system/password/index.ts new file mode 100644 index 000000000..cc2495169 --- /dev/null +++ b/src/api/system/password/index.ts @@ -0,0 +1,25 @@ +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'}) +} diff --git a/src/views/system/passwordRule/index.vue b/src/views/system/passwordRule/index.vue index 85c56771c..274a90235 100644 --- a/src/views/system/passwordRule/index.vue +++ b/src/views/system/passwordRule/index.vue @@ -9,21 +9,21 @@ > - - + + - + - + - + - - + + @@ -60,7 +60,7 @@