initital commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import http from './http.js'
|
||||
let URL_CONFIG = '/api/'
|
||||
const UserApi = {
|
||||
// 登录
|
||||
login: (params) => http.post(`${URL_CONFIG}sys/login`, params),
|
||||
// 获得公钥
|
||||
getRSAPublicKey: (params) => http.get(`${URL_CONFIG}sys/getRSAPublicKey`, params),
|
||||
// 图片的验证码
|
||||
getImgCode: (params, urlParam) => http.get(`${URL_CONFIG}sys/randomImage/${urlParam}`, params),
|
||||
// 退出
|
||||
logout: (params) => http.post(`${URL_CONFIG}sys/logout`, params),
|
||||
//修改密码
|
||||
upDatePass:(params) => http.put(`${URL_CONFIG}sys/user/updatePassword`, params),
|
||||
|
||||
}
|
||||
|
||||
export default UserApi
|
||||
Reference in New Issue
Block a user