123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import request from '@/utils/request'
- // 查询用户列表
- export function listUser(query) {
- return request({
- url: '/yq/gas/user/getList',
- method: 'get',
- params: query
- })
- }
- // 查询用户详细
- export function getUser(id) {
- return request({
- url: '/yq/gas/user/' + id,
- method: 'get'
- })
- }
- // 新增用户
- export function addUser(data) {
- return request({
- url: '/yq/gas/user',
- method: 'post',
- data: data
- })
- }
- // 修改用户
- export function updateUser(data) {
- return request({
- url: '/yq/gas/user',
- method: 'put',
- data: data
- })
- }
- // 删除用户
- export function delUser(id) {
- return request({
- url: '/yq/gas/user/' + id,
- method: 'delete'
- })
- }
- // 黑名单管理列表
- export function getBlacklist(query) {
- return request({
- url: '/yq/gas/user/getBlacklist',
- method: 'get',
- params: query
- })
- }
- // 手机号验证
- export function getForPhone(value,id) {
- return request({
- url: '/yq/gas/user/getForPhone?phone='+value+'&id='+id,
- method: 'get',
- })
- }
- // 工号验证
- export function getForJobnum(value,id) {
- return request({
- url: '/yq/gas/user/getForJobnum?jobNum='+value+'&id='+id,
- method: 'get',
- })
- }
|