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.
228 lines
4.5 KiB
228 lines
4.5 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/echomeet_putrecords',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
// 获取会议助手数据
|
|
static getOperationRecord([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/echomeet_getrecords',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//获取渠道包信息
|
|
static getChannelApp([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_getchannelapp',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//绑定设备
|
|
static binddevice([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_binddevice',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//解绑定设备
|
|
static unbinddevice([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_unbinddevice',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
// 获取验证码
|
|
static getdevices([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_getdevices',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//绑定设备
|
|
static bindauthcode([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/user_bindauthcode',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//创建支付订单
|
|
static paycreateorder([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/pay_createorder',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//获取模版数据
|
|
static getEchomeetTemplates([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/echomeet_gettemplates',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//添加模版数据
|
|
static addEchomeetTemplates([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/echomeet_addtemplate',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//修改模版数据
|
|
static updateEchomeetTemplates([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/echomeet_updatetemplate',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//删除模版数据
|
|
static delEchomeetTemplates([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/echomeet_deltemplate',
|
|
params: params,
|
|
);
|
|
}
|
|
|
|
//获取商品列表
|
|
static getGoods([params]) {
|
|
return DioManager().request(
|
|
NWMethod.post,
|
|
'/api/home/pay_getgoodss',
|
|
params: params,
|
|
);
|
|
}
|
|
}
|
|
|