办学质量监测教学评价系统
shenrongliang
2025-06-13 11d86cc6c26bb4f709e407acadf4805c2024e79f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import {LoginFrom} from "@/typings/user";
import request from '@/utils/request/req';
/**
 * 用户登录
 */
export function doLogin<T>(params:LoginFrom) {
    return request({
        url: '/auth/login',
        headers: {
            isToken: false
        },
        method: 'post',
        data: params
      });
}
 
/**
 * 用户注册
 */
export function doRegist<T>(username: string, password: string,code:string) {
    return request({
        url: '/auth/register',
        method: 'post',
        data: {username, password,code},
    })
}
 
/**
 * 重置密码
 */
export function reset<T>(username: string, password: string,code:string) {
    return request({
        url: '/auth/reset/password',
        method: 'post',
        data: {username, password,code},
    })
}
 
/**
 * 获取邮箱验证码
 */
export function getVerificationCode(username:string) {
    return request({
        url:'/resource/email/code',
        method: 'post',
        data:{username}
    })
}
 
 
/**
 * 获取用户登录信息
 */
export function getUserInfo() {
    return request({
        url:'/system/user/getInfo',
        method: 'get',
    })
}
 
/**
 * 修改用户名称
 */
export function editUserNmae(nickName:string) {
    return request({
        url:'/system/user/editName',
        method: 'post',
        data:{nickName}
    })
}
 
/**
 * 退出登录
 */
export function loginOut() {
    return request({
        url:'/auth/logout',
        method: 'post',
    })
}
 
// 根据参数键名查询参数值
export function getConfigKey(configKey: string){
    return request({
      url: '/chat/config/configKey/' + configKey,
      method: 'get'
    });
}
 
// 根据授权编码激活系统
export function authSystem(code: string){
    return request({
      url: '/chat/config/authSystem/' + code,
      method: 'post'
    });
}
 
// 获取登录二维码
export function getMpQrCode(){
    return request({
      url: '/user/qrcode',
      method: 'get'
    });
}
 
// 查询登陆状态
export function getLoginType(ticket:string){
    const encodedTicket = encodeURIComponent(ticket);
    return request({
        url: `/user/login/qrcode?ticket=${encodedTicket}`,
        method: 'get'
    });
}