diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 7c8a4f1..02ae3e5 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -68,7 +68,7 @@ spring: # redis 配置 redis: # 地址 - host: 127.0.0.1 + host: 192.168.31.55 # 端口,默认为6379 port: 6379 # 数据库索引 diff --git a/ruoyi-ui/src/api/user/cuser.js b/ruoyi-ui/src/api/user/cuser.js new file mode 100644 index 0000000..bc5078a --- /dev/null +++ b/ruoyi-ui/src/api/user/cuser.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询会员列表 +export function listUser(query) { + return request({ + url: '/back/user/list', + method: 'get', + params: query + }) +} + +// 查询会员详细 +export function getUser(userId) { + return request({ + url: '/back/user/' + userId, + method: 'get' + }) +} + +// 修改会员 +export function updateUser(data) { + return request({ + url: '/back/user/update', + method: 'post', + data: data + }) +} + +// 修改会员状态 +export function changeUserStatus(data) { + return request({ + url: '/back/user/changeStatus', + method: 'post', + data: data + }) +} + +// 删除会员 +export function delUser(userId) { + return request({ + url: '/back/user/' + userId, + method: 'delete' + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 5c31196..c5eb36a 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -9,13 +9,13 @@