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
7.3 KiB

4 years ago
class API {
///HOST
static const String host = 'http://192.168.2.201:8804';
///接口基础地址
static const String baseURL = '$host/IntelligentCommunity/app';
///静态资源路径
static String get resource => '$host/static';
static String image(String path) => '$resource$path';
4 years ago
static const int networkTimeOut = 10000;
static _Login login = _Login();
static _User user = _User();
static _Manager manager = _Manager();
static _Upload upload = _Upload();
static _Community community = _Community();
4 years ago
}
class _Login {
/// 获取手机验证码
String get sendSMSCode => '/login/sendMMSLogin';
/// 通过验证码短信登陆
4 years ago
String get loginBySMS => '/login/loginSMSUser';
/// 查询楼栋ID
String get buildingInfo => '/login/findAllBuildingIAN';
///查询单元ID
String get unitInfo => '/login/findEstateIANByBuilding';
/// app用户注册
String get signUp => '/login/register';
///通过新手机号发送修改验证码
String get sendNewMSCode => '/user/personalData/sendTelUpdateCode';
}
class _User {
///用户资料
String get userProfile => '/user/personalData/findPersonalData';
///用户详细资料
String get userDetail => '/user/personalData/getUserDetail';
///设置用户性别
String get setSex => '/user/personalData/updateSex';
///设置用户生日
String get setBirthday => '/user/personalData/updateBirthday';
///用户退出登陆
String get logout => '/user/signOut';
///修改用户昵称
String get updateNickName => '/user/personalData/updateNickName';
///修改用户手机号
String get updateTel => '/user/personalData/updateTel';
///修改头像
String get udpdateAvatar => '/user/personalData/updateHeadPortrait';
4 years ago
}
class _Manager {
///获取业委会列表
String get commiteeStaff => '/ownersCommittee/findAll';
///获取便民电话联系人列表
String get convenientPhone => '/convenientTelephone/list';
///查询当前用户的报事报修信息
String get fixedSubmit => '/user/reportRepair/list';
///访客通行:添加填写的访客信息
String get insertVisitorInfo => '/user/visitorAccess/insertVisitorInfo';
///访客通行:查询访客记录信息(包含条件搜索)
String get visitorAccessList => '/user/visitorAccess/list';
///物品出户:查询当前用户所有的物品出户信息
String get articleOut => '/user/articleOut/list';
///报事报修app提交报事报修信息
String get reportRepairInsert => '/user/reportRepair/insert';
///报事报修:批量删除报事报修信息(业主端)
String get reportRepairDelete => '/user/reportRepair/falseDelete';
///咨询建议/投诉表扬查询所有的app建议咨询/投诉表扬 信息(包含条件搜索 type 【类型(1.咨询2.建议3.投诉4.表扬)】)
String get advice => '/user/advice/list';
///报事报修app根据用户id和报事报修主键id查询报事报修详情报修信息详情
String get reportRepairFindBYLD => '/user/reportRepair/findById';
/// 咨询建议/投诉表扬:添加建议咨询/投诉表扬 信息
String get addAdvice => '/user/advice/insert';
///建议详情
String get adviceDetail => '/user/advice/findAdviceDetailByAdviceId';
///建议继续提问
String get adviceQuestion => '/user/advice/reQuestion';
///建议评价
String get adviceEvaluate => '/user/advice/evaluate';
///删除建议
String get deleteAdvice => '/user/advice/falseDelete';
///报事报修:取消订单
String get reportRepairCancel => '/user/reportRepair/cancel';
/// 报事报修:确认完成订单
String get reportRepairComplete => '/user/reportRepair/completeOrder';
///报事报修:用户评价
String get reportRepairEvaluate => '/user/reportRepair/evaluate';
///物品出户:获取搬家公司手机号
String get getMovingCompanyTel => '/user/articleOut/getMovingCompanyTel';
///物品出户:提交物品出户信息
String get articleOutSubmit => '/user/articleOut/submit';
///物品出户:查询二维码信息
String get getQRcode => '/user/articleOut/getQRCode';
4 years ago
///物品出户app批量删除物品出户信息
String get articleOutDelete => '/user/articleOut/falseDelete';
///借还管理:查询所有可借物品信息
String get articleBorrow => '/user/articleBorrow/list';
///借还管理:查询该用户的所有物品借还信息
String get articleBorrowMylist => '/user/articleBorrow/myList';
4 years ago
///借还管理:报损
String get fromLoss => '/user/articleBorrow/frmLoss';
///生活缴费查询生活缴费信息list
String get dailyPaymentList => '/user/dailyPayment/list';
///生活缴费:查询当前用户的房屋是否缴费
String get findEstatelsPament => '/user/dailyPayment/findEstateIsPayment';
///活动投票app查询所有活动投票信息
String get enventVotingList => '/user/eventVoting/list';
///活动投票:投票详情
String get voteDetail => '/user/eventVoting/voteDetail';
///活动投票:用户投票
String get vote => '/user/eventVoting/vote';
///问卷调查app查询所有的问卷调查list
String get questionnaireList => '/user/questionnaire/list';
///问卷调查根据问卷id查询问卷详情
String get questionnairefindById => '/user/questionnaire/findById';
///问卷调查app问卷调查提交
String get questionnaireSubmit => '/user/questionnaire/submit';
}
class _Community {
///社区活动:查询所有的活动信息
String get activityList => '/user/activity/list';
///社区活动根据社区活动主键id查询社区活动详情
String get activityDetail => '/user/activity/findById';
///社区活动:查看参与人数
String get activityPeopleList => '/user/activity/participantsList';
///社区公告:查询所有的社区公告
String get boardList => '/user/announcement/list';
///社区公告根据社区公告主键id查询社区公告信息
String get boardDetail => '/user/announcement/findById';
///社区话题:查询最新的所有主题信息
String get topicList => '/user/gambit/listGambit';
String get eventByTopicId => '/user/gambit/listByGambitId';
String get newEventList => '/user/gambit/list';
///社区活动: 写帖子(添加主题信息)
String get addEvent => '/user/gambit/writePost';
///社区话题app用户点赞/取消点赞
String get like => '/user/gambit/likes';
///社区话题查询活跃话题取前4个
String get hotTopic => '/user/gambit/findActivityGambit';
///社区话题:我的动态
String get myEvent => '/user/gambit/myTidings';
///社区话题:假删除主题信息(只能删除自己的)
String get deleteMyEvent => '/user/gambit/falseDelete';
///社区话题:查询主题信息详情
String get getEventDetail => '/user/gambit/GambitThemeDetail';
///社区话题:评论
String get sendAComment => '/user/gambit/comment';
///社区活动:报名
String get signUpActivity => '/user/activity/signUp';
}
class _Upload {
///上传咨询建议照片
String get uploadArticle => '/user/upload/uploadArticle';
///上传头像
String get uploadAvatar => '/user/upload/appHeadSculpture';
///上传报事报修信息 报事报修照片
String get uploadRepair => '/user/upload/uploadRepair';
String get uploadEvent => '/user/upload/uploadGambit';
}