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.
33 lines
672 B
33 lines
672 B
import 'dio_manager.dart';
|
|
import 'nw_method.dart';
|
|
|
|
class Api {
|
|
// 登录
|
|
static login([params]) {
|
|
print("请求后台数据params=${params}");
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_sgin',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
// 获取验证码
|
|
static getCode([params]) {
|
|
print("请求后台数据params=${params}");
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_verification',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
// 获取阿里token
|
|
static getAliToken([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/auth_alitoken',
|
|
params: params,
|
|
);
|
|
}
|
|
}
|
|
|