api.dart 666 B

1234567891011121314151617
  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 String loginUrl = "$_host/loginByPass";
  8. static String logoutUrl = "$_host/logout";
  9. static String registerUrl = "$_host/register";
  10. static String getUserInfoUrl = "$_host/getUserInfo";
  11. static String getUserByDeviceId = "$_host'getUserByDeviceId";
  12. static String uploadImgUrl = "$_host/uploadImg";
  13. static String uploadTrackUrl = "$_host/uploadTrack";
  14. Future<UserModel> login(String username, String password);
  15. }