You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5 KiB

1 year ago
// http.prefix:/api/v1/sendmail
2 years ago
// @ts-ignore
2 years ago
import {Config,http} from "./http";
2 years ago
export interface request {
1 year ago
userId: string
1 year ago
userPassword: string
2 years ago
}
2 years ago
export interface response {
2 years ago
//密钥
token: string
2 years ago
}
2 years ago
export class userService{
1 year ago
static async list(data :Partial<request>, param?: Partial<Config>):Promise<response>{
return http<response>('/api/v1/sendmail/api/v1/user/list', {
2 years ago
...param,
data: data,
method:'GET'
})
}
1 year ago
static async all(data :Partial<request>, param?: Partial<Config>):Promise<response>{
return http<response>('/api/v1/sendmail/api/v1/user/all', {
2 years ago
...param,
data: data,
2 years ago
method:'GET'
2 years ago
})
}
1 year ago
static async auto(data :Partial<request>, param?: Partial<Config>):Promise<response>{
return http<response>('/api/v1/sendmail/api/v1/user/auto', {
2 years ago
...param,
data: data,
method:'GET'
})
}
2 years ago
//有 "user:list"
1 year ago
static async loginWithList(data :Partial<request>, param?: Partial<Config>):Promise<response>{
return http<response>('/api/v1/sendmail/api/v1/user/login_list', {
2 years ago
...param,
data: data,
method:'GET'
})
}
2 years ago
// 没有 "user:list" 权限
1 year ago
static async login(data :Partial<request>, param?: Partial<Config>):Promise<response>{
return http<response>('/api/v1/sendmail/api/v1/user/login', {
2 years ago
...param,
data: data,
method:'GET'
})
}
1 year ago
static async login1(data :Partial<request>, param?: Partial<Config>):Promise<response>{
return http<response>('/api/v1/sendmail/api/v1/user/login1', {
1 year ago
...param,
data: data,
method:'POST'
})
}
2 years ago
}