mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 19:05:55 +02:00
23 lines
423 B
JavaScript
23 lines
423 B
JavaScript
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
|