| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- /// API 接口常量
- class ApiConstants {
- ApiConstants._();
- // ==================== 基础配置 ====================
-
- /// API 基础地址(需要根据实际环境配置)
- /// qa
- static const String baseUrl = 'https://qaapi.lightcura.com';
- // ==================== 认证相关 ====================
-
- /// 登录接口
- static const String login = 'api/his-auth/user/login/';
- /// 发送验证码接口
- static const String sendSmsCode = 'api/his-auth/send/sms-code/';
-
- /// 刷新 Token 接口
- static const String refreshToken = '/auth/refresh';
-
- /// 登出接口
- static const String logout = 'api/his-auth/user/logout/';
-
- /// 忘记密码接口
- static const String forgotPassword = 'api/his-user/institution_users/change-password/';
-
- /// 重置密码接口
- static const String resetPassword = '/auth/password/reset';
- // ==================== 用户相关 ====================
-
- /// 获取用户信息
- static const String getUserInfo = '/user/info';
-
- /// 更新用户信息
- static const String updateUserInfo = '/user/info';
-
- /// 修改密码
- static const String changePassword = '/user/password';
- // ==================== 请求头 ====================
-
- /// Token 请求头名称
- static const String tokenHeader = 'Authorization';
-
- /// Token 前缀
- static const String tokenPrefix = 'Bearer';
-
- /// Content-Type
- static const String contentType = 'Content-Type';
-
- /// Application JSON
- static const String applicationJson = 'application/json';
- // ==================== 首页(工作台)相关 ====================
- /// 今日概况
- static const String getTodayOverview = 'api/his-clinic/work-bench/today-overview';
- /// 今日代办
- static const String getTodayWait = 'api/his-clinic/work-bench/today-wait';
- /// 今日患者
- static const String getTodayPatient = 'api/his-clinic/work-bench/today-patient';
- // ==================== 超时配置 ====================
-
- /// 连接超时时间(秒)
- static const int connectTimeout = 30;
-
- /// 接收超时时间(秒)
- static const int receiveTimeout = 30;
-
- /// 发送超时时间(秒)
- static const int sendTimeout = 30;
- }
|