api.dart 879 B

123456789101112131415161718192021
  1. import 'package:flutter_tracker/model/user_model.dart';
  2. /// Description:
  3. /// Time : 2021年12月03日 Friday
  4. /// Author : liuyuqi.gov@msncn
  5. abstract class Api {
  6. static const String _host = "http://flutter.yoqi.me/Track";
  7. // static const String _host = "http://httpd88.ok.yoqi.me:88/Track";
  8. static String loginUrl = _host + "/loginByPass";
  9. static String logoutUrl = _host + "/logout";
  10. static String registerUrl = _host + "/register";
  11. static String getUserInfoUrl = _host + "/getUserInfo";
  12. static String getUserByDeviceId = _host + "'getUserByDeviceId";
  13. static String uploadImgUrl = _host + "/uploadImg";
  14. static String uploadSubmitUrl = _host + "/uploadSubmitUrl";
  15. static String uploadContactUrl = _host + "/uploadContact";
  16. static String getContactListUrl = _host + "/getTrackList";
  17. Future<UserModel> login(String username, String password);
  18. }