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.
165 lines
3.2 KiB
165 lines
3.2 KiB
import 'dio_manager.dart';
|
|
import 'nw_method.dart';
|
|
|
|
class Api {
|
|
// 登录
|
|
static login([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_sgin',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
// 获取验证码
|
|
static getCode([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_verification',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
static tokenlogin([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_getinfo',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
// 获取阿里token
|
|
static getAliToken([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/auth_alitoken',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//更新用户设置
|
|
static updateUserSetting([dynamic params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_setting',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//注销账号
|
|
static deleteUser([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_del',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//用户反馈
|
|
static feedback([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_feedback',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//app配置
|
|
static getappconfig([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_getappconfig',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//app获取设备信息
|
|
static getproduct([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_getproduct',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//app获取设备信息
|
|
static getproducts([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_getproducts',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//举报AI内容
|
|
static reportAiContent([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_reportaicontent',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//获取音乐连接
|
|
static getMusicUrl([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/music_getmusicurl',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
// 上传会议助手操作记录
|
|
static putOperationRecord([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/record_put',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
// 获取会议助手数据
|
|
static getOperationRecord([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/record_get',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//获取渠道包信息
|
|
static getChannelApp([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_getchannelapp',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//绑定设备
|
|
static bindearphone([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_bindearphone',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//解绑定设备
|
|
static unbindearphone([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_unbindearphone',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//绑定设备
|
|
static bindauthcode([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_bindauthcode',
|
|
params: params,
|
|
);
|
|
}
|
|
}
|
|
|