This commit is contained in:
Jacky 2021-08-31 12:13:12 +08:00
parent ad421905a8
commit dd6e19657a
162 changed files with 15071 additions and 932 deletions

23
frontend/src/api/user.js Normal file
View file

@ -0,0 +1,23 @@
import http from '@/lib/http'
const base_url = '/user'
const user = {
get_list(params) {
return http.get(base_url + 's', {params: params})
},
get(id) {
return http.get(base_url + '/' + id)
},
save(id = null, data) {
return http.post(base_url + (id ? '/' + id : ''), data)
},
destroy(id) {
return http.delete(base_url + '/' + id)
}
}
export default user