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.
 
 

59 lines
1.5 KiB

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