You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
344 B
TypeScript
15 lines
344 B
TypeScript
import { fetch } from '_p/index/axios-config/axios'
|
|
|
|
interface PropsData {
|
|
params?: any
|
|
data?: any
|
|
}
|
|
|
|
export const loginApi = ({ data }: PropsData) => {
|
|
return fetch({ url: '/user/login', method: 'post', data })
|
|
}
|
|
|
|
export const getRoleDetApi = ({ params }: PropsData) => {
|
|
return fetch({ url: '/role/detail', method: 'get', params })
|
|
}
|