开始做登录

This commit is contained in:
2024-03-15 17:20:54 +08:00
parent b9335b4ff8
commit 633cff358d
1423 changed files with 35817 additions and 19 deletions

32
service/user.js Normal file
View File

@@ -0,0 +1,32 @@
import apis from '../utils/request';
const { GET, POST, PUT, DELETE } = apis
// 保存用户信息
export const login = async function(data) {
return await POST('/wx/login', data);
}
// 非管理员验证
export const userValidate = async function(data) {
return await POST('/wx/user/validate', data);
}
// 获取用户邀请二维码
export const getWxCode = async function(data) {
return await GET('/wx/getWxCode', data);
}
// 获取扫描二维码的列表
export const getApproveList = async function(data) {
return await GET('/wx/getApproveList', data);
}
// 审批用户加入
export const approveUser = async function(data) {
return await POST('/wx/approve', data);
}
// 移除用户
export const removeUser = async function(data) {
return await DELETE(`/wx/removeUser/${uid}`);
}