chenyc
2023-07-31 b7d347e75d0aeebca06a4f12c7a2aba155c24b1e
src/api/user/index.ts
@@ -1,48 +1,9 @@
import request from '@/utils/axios'
export function signIn(params: string) {
    return request({
        url: '/user/info/login',
        method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
        data: params,
    })
}
export function getuserinfo() {
    return request({
        url: '/user/info/getUserInfo',
        method: 'post'
    })
}
export function getUsersByRoleCode(params: string) {
    return request({
        url: '/user/info/getUsersByRoleCode',
        method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
        data: params,
    })
}
export function getUsersByRoleGroup(params: Object) {
    return request({
        url: '/user/info/getUsersByRoleGroup',
        method: 'post',
        data: params,
    })
}
// 修改用户信息
export function editUserInfo(params:object) {
    return request({
        url: '/user/info/update',
        method: 'post',
        data: params
    })
}
import { confingInfoStore } from '@/stores/StoresConfing'
export function sendValidateCode(params: string) {
    return request({
        url: '/user/info/sendValidateCode',
        url: `${confingInfoStore().confingInfo.base_api}/user/info/sendValidateCode`,
        method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
@@ -52,14 +13,14 @@
}
export function getPatientInfo2(params: Object) {
    return request({
        url: '/topic/getPatientInfo2',
        url: `${confingInfoStore().confingInfo.base_api}/topic/getPatientInfo2`,
        method: 'post',
        data: params,
    })
}
export function updatePatient(params: Object) {
    return request({
        url: '/topic/updatePatient',
        url: `${confingInfoStore().confingInfo.base_api}/topic/updatePatient`,
        method: 'post',
        data: params,
    })