动态路由大体实现

This commit is contained in:
pixelqm
2019-09-14 22:30:04 +08:00
parent 6738d0eb1a
commit a0fab80d28
10 changed files with 298 additions and 72 deletions

View File

@@ -2,12 +2,24 @@ import service from '@/utils/request'
// @Summary 用户登录
// @Produce application/json
// @Param data body {userName:"string",passWord:"string"}
// @Param data body {username:"string",password:"string"}
// @Router /base/login [post]
export const login = (data) => {
service({
return service({
url: "/base/login",
method: 'post',
data: data
})
}
// @Summary 用户注册
// @Produce application/json
// @Param data body {username:"string",password:"string"}
// @Router /base/resige [post]
export const regist = (data) => {
return service({
url: "/base/regist",
method: 'post',
data: data
})
}