41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
|
|
declare namespace ApiTypes {
|
||
|
|
namespace Login {
|
||
|
|
namespace Auth {
|
||
|
|
type Login = {
|
||
|
|
"code": string; // 微信code
|
||
|
|
};
|
||
|
|
type BindPhoneNumber = {
|
||
|
|
"code"?: string; // 微信code
|
||
|
|
"phone"?: string; // 手机号
|
||
|
|
"phone_validate_code"?: string; // 手机验证码
|
||
|
|
};
|
||
|
|
type GetAccessToken = {
|
||
|
|
"user_name": string; // 用户名
|
||
|
|
"password": string; // 密码
|
||
|
|
};
|
||
|
|
type WorkLogin = {
|
||
|
|
"code": string; // 企业微信code
|
||
|
|
"work_marker": string; // 企业标记
|
||
|
|
"phone"?: string; // 手机号
|
||
|
|
"real_name"?: string; // 真实姓名
|
||
|
|
};
|
||
|
|
type BindWork = {
|
||
|
|
"session_key": string; // -
|
||
|
|
"iv": string; // -
|
||
|
|
"encrypted_data": string; // -
|
||
|
|
};
|
||
|
|
type GetWorkAccessToken = {
|
||
|
|
"user_name": string; // 用户名
|
||
|
|
"password": string; // 密码
|
||
|
|
"work_marker": string; // 企业标记
|
||
|
|
};
|
||
|
|
type PreUpload = {
|
||
|
|
"file_ext": string; // -
|
||
|
|
};
|
||
|
|
type DoUpload = {
|
||
|
|
"upload_file": File; // 上传文件
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|