| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import 'request.dart';
- import 'models.dart';
- const int limit = 5;
- //登录接口
- Future login(phone, passwrod) async {
- var response = await Http().post('app/uzer/logistics/phone_login', data: {
- "phone": phone,
- "password": passwrod
- });
- return response;
- }
- //获取接单列表
- Future getOrderList(String stationId, String lineId, int page) async {
- var response = await Http().post('app/order/wait_order_list_pages', data: {
- 'stationId': stationId,
- 'lineId': lineId,
- 'limit': limit,
- 'page': page
- });
- return response;
- }
- //获取所有站点
- Future getStationList() async {
- var response = await Http().get('app/station/station_list');
- return response;
- }
- //根据站点获取线路
- Future getLineFromStation(String stationId) async {
- var response = await Http().get('app/station/station_line_all_list', data: {
- 'stationId': stationId
- });
- return response;
- }
- //修改密码
- Future updataPasswrod(oldPassword, newPassword) async {
- var response = await Http().post('app/uzer/logistics/update_password', data: {
- 'oldPassword': oldPassword,
- 'newPassword': newPassword
- });
- return response;
- }
|