1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import { axios } from '@/utils/request'
- /* 用户管理 */
- // 用户列表
- export const customerList = (params) => {
- const url = `customer/query/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post'
- })
- }
- // 启用禁用
- export const changeStatus = (params) => {
- const url = `customer/enable/${params.id}/${params.state}`
- return axios({
- url: url,
- data: params,
- method: 'get'
- })
- }
- // 用户详情
- export const customerDetails = (params) => {
- const url = `customer/findById/${params.id}`
- return axios({
- url: url,
- data: params,
- method: 'get'
- })
- }
- // 导出
- export const customeExport = (params) => {
- return axios({
- url: `customer/export`,
- data: params,
- method: 'post',
- responseType: 'blob'
- })
- }
- // 乐豆详情
- export const customerGoldLogDetail = (params) => {
- const url = `customerGoldLog/query/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post'
- })
- }
- // 修改乐豆余额
- export const updateGold = (params) => {
- return axios({
- url: `customer/updateGold`,
- data: params,
- method: 'post'
- })
- }
|