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.

466 lines
13 KiB

3 years ago
import 'package:aku_new_community/widget/others/user_tool.dart';
part 'market_api.dart';
3 years ago
part 'profile_api.dart';
3 years ago
class SAASAPI {
///HOST
static const String host = 'http://121.41.26.225:8006';
///接口基础地址
static const String baseURL = '$host';
///静态资源路径
3 years ago
static String get resource =>
'https://saas.kaidalai.cn/resource/${UserTool.userProvider.userInfoModel!.communityCode}/';
static String image(String? path) => '$resource$path';
static String file(String? path) => '$resource$path';
static const int networkTimeOut = 10000;
3 years ago
///根分类
static _City city = _City();
static _Login login = _Login();
static _User user = _User();
3 years ago
static _House house = _House();
static _File uploadFile = _File();
static _Message message = _Message();
3 years ago
static _Community community = _Community();
static _Task task = _Task();
static _HomeCarouse homeCarouse = _HomeCarouse();
static _Activity activity = _Activity();
static _Announce announce = _Announce();
static _Information information = _Information();
3 years ago
static _WorkOrder workOrder = _WorkOrder();
static _Pay pay = _Pay();
3 years ago
static _LifePay lifePay = _LifePay();
static _Balance balance = _Balance();
static _CommunityIntroduce communityIntroduce = _CommunityIntroduce();
static _ConveniencePhone conveniencePhone = _ConveniencePhone();
static _CommitteeStaff committeeStaff = _CommitteeStaff();
static _Advice advice = _Advice();
3 years ago
static _Vote vote = _Vote();
static _Facilities facilities = _Facilities();
static _Bracelet bracelet = _Bracelet();
3 years ago
static _Updater updater = _Updater();
3 years ago
///二级分类
static _ProfileApi profile = _ProfileApi();
static _MarketApi market = _MarketApi();
3 years ago
}
class _City {
///查询所有的城市信息
String get allCity => '/app/city/allCity';
}
class _Bracelet {
///爱牵挂手环数据
String get data => '/app/user/elderlyCareEquipment/getAqgData';
///添加爱牵挂手环
String get add => '/app/user/elderlyCareEquipment/bind';
///绑定设备列表
String get list => '/app/user/elderlyCareEquipment/list';
}
class _User {
3 years ago
///app用户发送手机号验证码(修改手机号)
String get sendTelCodeUpdateTel => '/app/user/sendTelCodeUpdateTel';
///提交修改的新手机号(修改手机号)
String get updateTel => '/app/user/updateTel';
///修改性别
String get updateSex => '/app/user/updateSex';
///用户资料
String get userProfile => '/app/user/findDetail';
///设置密码(密码不存在时调用)
String get settingPsd => '/app/user/settingPassword';
///提交修改的新密码(忘记密码)
String get settingForgotPsd => '/app/user/forgetPassword';
///app用户发送手机号验证码(忘记密码)
String get sendForgotTelCode => '/app/user/sendTelCodeForgetPwd';
3 years ago
///检测昵称是否重复
String get checkNickRepeat => '/app/user/checkNickNameRepeat';
///设置昵称
String get setNickName => '/app/user/settingNickName';
///实名认证
String get certification => '/app/user/verified';
///修改用户头像
String get updateAvatar => '/app/user/updateAvatarImg';
2 years ago
///查询黑名单列表
String get blackList => '/app/user/community/blackList/list';
///取消拉黑用户
String get cancelBlock => '/app/user/community/blackList/cancelBlock';
///拉黑用户
String get Block => '/app/user/community/blackList/block';
}
class _Login {
///app用户退出
String get quit => '/app/user/quit';
///app用户注销
2 years ago
String get logOut => '/app/user/logout';
3 years ago
///查询所有小区信息
String get allCommunity => '/app/login/findAllCommunity';
///账号密码登录
String get login => '/app/login/loginTelPwd';
/// 获取手机验证码
String get sendSMSCode => '/app/login/sendTelCode';
///app用户手机号验证码登录
String get loginTelCode => '/app/login/loginTelCode';
3 years ago
}
3 years ago
class _House {
///查询所有的房屋(级联)
String get allHouses => '/app/estate/findEstateCascade';
}
class _File {
///上传app照片
String get uploadImg => '/app/user/upload/uploadImg';
}
class _Message {
///全部已读
String get allRead => '/app/user/message/allRead';
///已读
String get read => '/app/user/message/read';
///所有点赞消息
String get allLikes => '/app/user/message/likesMessage';
///所有评论消息
String get allComment => '/app/user/message/commentMessage';
///查询所有的app信息
String get list => '/app/user/message/list';
}
class _Community {
3 years ago
///删除用户评论
String get deleteComment => '/app/user/community/comment/delete';
///删除用户动态
String get deleteDynamic => '/app/user/community/dynamic/delete';
3 years ago
///查询动态下的单个评论信息
String get singleComment => '/app/user/community/comment/findById';
3 years ago
///话题详情
String get topicDetail => '/app/user/community/topic/findById';
///动态信息详情
String get dynamicDetail => '/app/user/community/dynamic/details';
///点赞动态
String get dynamicLike => '/app/user/community/dynamic/likes';
///点赞评论
String get commentLike => '/app/user/community/comment/likes';
///发送评论
String get commentInsert => '/app/user/community/comment/insert';
///查询动态下的评论信息列表
String get commentList => '/app/user/community/comment/list';
///发布动态
String get dynamicInsert => '/app/user/community/dynamic/insert';
///我的动态资料部分(头部)
String get dynamicMyListH => '/app/user/community/dynamic/myListH';
///我的动态信息部分(底部)
String get dynamicMyListL => '/app/user/community/dynamic/myListL';
///所有动态信息
String get dynamicList => '/app/user/community/dynamic/list';
///所有话题
String get topicList => '/app/user/community/topic/list';
///新鲜话题
String get topNewList => '/app/user/community/topic/newList';
3 years ago
///增加咨询浏览量
String get addViewNum => '/app/user/information/addViewNum';
///增加咨询浏览量
String get dynamicAddViewNum => '/app/user/community/dynamic/addViewNum';
}
class _Task {
3 years ago
///催促服务(发布者)
String get urgeService => '/app/user/taskRelease/urgeService';
///取消任务(发布者,接单者)
String get cancel => '/app/user/taskRelease/cancel';
///任务评价(发布者)
String get evaluation => '/app/user/taskRelease/evaluation';
///确认任务(发布者)
String get confirm => '/app/user/taskRelease/confirm';
///完成任务(接单者)
String get finish => '/app/user/taskRelease/finish';
///开始服务(接单者)
String get startService => '/app/user/taskRelease/startService';
///领取任务(接单者)
String get receive => '/app/user/taskRelease/receive';
///发布任务
String get insert => '/app/user/taskRelease/insert';
///查询任务发布信息列表
String get list => '/app/user/taskRelease/list';
}
class _HomeCarouse {
///获取首页轮播图列表
String get list => '/app/user/homepageCarousel/list';
}
class _Activity {
///查询活动详情
String get detail => '/app/user/activity/findById';
///活动报名
String get registration => '/app/user/activity/registration';
///查询所有的活动列表
String get list => '/app/user/activity/list';
}
class _Announce {
///查询通知公告列表
String get list => '/app/user/announcement/list';
///查询通知公告详情
String get detail => '/app/user/announcement/detail';
}
class _Information {
3 years ago
///app根据资讯主键id查询资讯信息
String get findById => '/app/user/information/findById';
///查询app资讯推荐阅读列表信息
String get recommendList => '/app/user/information/recommendList';
///查询app资讯列表信息
String get list => '/app/user/information/list';
///查询app所有的资讯分类信息
String get categoryList => '/app/user/information/categoryList';
}
3 years ago
class _WorkOrder {
///根据工单主键id查询工单账单
String get workOrderBill => '/app/user/workOrder/workOrderBill';
///根据工单主键id查询工单报告列表
String get findRRById => '/app/user/workOrder/findRRById';
///根据工单主键id查询工单信息
String get findById => '/app/user/workOrder/findById';
///根据工单主键id查询工单进度列表
String get findScheduleById => '/app/user/workOrder/findScheduleById';
///评价
String get evaluate => '/app/user/workOrder/evaluate';
///确认完成
String get confirmCompletion => '/app/user/workOrder/confirmCompletion';
///催促进度
String get promotionRate => '/app/user/workOrder/promotionRate';
///取消工单
String get cancel => '/app/user/workOrder/cancel';
///查询服务团队名单
String get findServiceTeamList => '/app/user/workOrder/findServiceTeamList';
///发布工单
String get insert => '/app/user/workOrder/insert';
///查询所有的工单类型信息
String get typeList => '/app/user/workOrder/typeList';
///查询所有的工单信息
String get list => '/app/user/workOrder/list';
}
class _Pay {
///app积分充值
String get createPointsOrder => '/app/user/alipay/createPointsOrder';
///app积分充值 向支付宝发起订单查询请求
String get pointsOrderCheckAlipay =>
'/app/user/alipay/pointsOrderCheckAlipay';
///app余额充值 创建订单
String get createBalanceOrder => '/app/user/alipay/createBalanceOrder';
///app余额充值 向支付宝发起订单查询请求
String get balanceOrderCheckAlipay =>
'/app/user/alipay/balanceOrderCheckAlipay';
///创建商品订单
String get createGoodsOrder => '/app/user/alipay/createGoodsOrder';
///app商品 向支付宝发起订单查询请求
String get jcookOrderCheckAlipay => '/app/user/alipay/jcookOrderCheckAlipay';
3 years ago
3 years ago
///创建预缴费订单
3 years ago
String get createPrepaymentOrder => '/app/user/alipay/createPrepaymentOrder';
3 years ago
///创建预缴费订单 向支付宝发起订单查询请求
3 years ago
String get prepaymentOrderCheckAlipay =>
'/app/user/alipay/prepaymentOrderCheckAlipay';
3 years ago
///创建缴费订单
3 years ago
String get createLivingExpensesOrder =>
'/app/user/alipay/createLivingExpensesOrder';
3 years ago
///创建缴费订单 向支付宝发起订单查询请求
3 years ago
String get livingExpensesOrderCheckAlipay =>
'/app/user/alipay/livingExpensesOrderCheckAlipay';
3 years ago
///购物车结算
String get settlement => '/app/user/shop/cart/settlement';
}
3 years ago
3 years ago
class _LifePay {
3 years ago
///查询该房屋下所有的未缴费的订单
String get livingExpensesList => '/app/user/livingExpenses/list';
///生活缴费支付记录
String get paymentRecordList => '/app/user/livingExpenses/paymentRecord';
3 years ago
///查询预交余额
String get findEstateBalance => '/app/user/livingExpenses/findEstateBalance';
3 years ago
}
class _Balance {
///设置余额支付密码
String get setBalancePayPsd => '/app/user/balance/settingBalancePayPwd';
///购买积分
String get buyPointsByBalance => '/app/user/balance/buyPoints';
///app用户交易记录
String get tradeRecordList => '/app/user/tradeRecord/tradeRecordList';
}
class _CommunityIntroduce {
///社区介绍
String get info => '/app/user/communityIntroduction/introductionInfo';
}
class _ConveniencePhone {
///查询app便民电话
String get list => '/app/user/conveniencePhone/list';
String get recordAlarmInfo => '/app/user/alarm/insertAlarmRecord';
}
class _CommitteeStaff {
///查询业委会列表
String get list => '/app/user/industryCommittee/list';
}
class _Advice {
///查询所有投诉的列表
String get list => '/app/user/advice/list';
///添加建议咨询/投诉表扬 信息
String get insert => '/app/user/advice/insert';
///根据咨询建议/投诉表扬主键id 查询 咨询建议/投诉表扬信息
String get find => '/app/user/advice/findById';
///继续提问
String get reQuestion => '/app/user/advice/reQuestion';
///完成反馈
String get complete => '/app/user/advice/complete';
///评价
String get evaluate => '/app/user/advice/evaluate';
///批量删除咨询建议/投诉表扬信息
String get delete => '/app/user/advice/delete';
3 years ago
}
class _Vote {
3 years ago
///查询所有投票的列表
String get list => '/app/user/vote/list';
3 years ago
///投票
String get vote => '/app/user/vote/vote';
3 years ago
///投票详情
String get details => '/app/user/vote/details';
}
class _Facilities {
///查询所有设施设备预约信息
String get list => '/app/user/facilities/list';
///查询所有设施设备分类信息
String get categoryList => '/app/user/facilities/categoryList';
///根据设施设备分类主键id查询所有设施设备
String get manageList => '/app/user/facilities/manageList';
///添加设施设备预约
String get insert => '/app/user/facilities/insert';
///查询该设备所有的已预约时段
String get allAppointmentPeriod =>
'/app/user/facilities/allAppointmentPeriod';
///扫码签到
String get signIn => '/app/user/facilities/signIn';
///结束使用
String get useStop => '/app/user/facilities/useStop';
///取消预约
String get cancel => '/app/user/facilities/cancel';
}
3 years ago
2 years ago
class _Updater {
3 years ago
///查询最新的app版本
String get findNewVersion => '/app/version/findNewVersion';
2 years ago
3 years ago
///添加新的app版本
String get insert => '/app/version/insert';
}