This commit is contained in:
wyf
2025-05-13 11:59:04 +08:00
parent eae7a2284d
commit fb5c3864a3
101 changed files with 8427 additions and 1953 deletions

View File

@@ -16,8 +16,14 @@ class ServiceConstant {
static String sleep_report = "/api/device/sleep/data";//睡眠报告
static String device_share = "/api/device/share";//分享设备
static String message_list = "/api/mesasge/list";//消息列表
static String message_read = "/api/mesasge/read";//消息未读数量
static String device_show = "/api/device/bind";//更新设备绑定
static String disease_list = "/api/personnel/disease/list";//获取疾病类型
static String share_deleted = "";//删除分享
static String start_calibration = "";//开始校准
static String calibration_process = "";//校准进度
static String submit_repair = "";//提交报修

View File

@@ -23,4 +23,8 @@ class AppConstants {
double small_text_fontSize = 20.rpx; //普通文字字号
double normal_text_fontSize = 26.rpx; //普通文字字号
double title_text_fontSize = 30.rpx; //标题文字字号
double dropdown_height = 90.rpx; //标题文字字号
}

View File

@@ -1,32 +0,0 @@
// lib/api_endpoints.dart
import 'package:vbvs_app/common/util/CommonVariables.dart';
class ApiEndpoints {
// Base URL of the API
static String baseUrl = '${CommonVariables.apiUrl}/api';
// Endpoints
static String signIn = '$baseUrl/auth/account/info/signIn'; //登录
static String getUserInfo = '$baseUrl/user/info'; //获取用户信息
static String updateProfile = '$baseUrl/user/updateProfile'; //更新用户信息
static String login_code = '$baseUrl/auth/msg/signIn'; //登录验证码
static String wx_auth_code = '$baseUrl/auth/msg/wxAuth'; //微信授权验证码
static String register = '$baseUrl/auth/account/info/signUp'; //注册
static String reset_code = '$baseUrl/auth/msg/restore'; //重置验证码
static String reset_pd = '$baseUrl/auth/account/info/restore/pw'; //重置密码
static String updateUserInfo =
'$baseUrl/auth/account/info/nameAndHead'; //更新用户资料
static String autoLogin = '$baseUrl/auth/account/info/autoLogin'; //自动登录
//订单管理
static String orderList = "/api/order/info/list"; //订单列表
static String orderQianshou = "/api/order/info/get"; //签收
//分享设备
static String deviceInvite = '$baseUrl/api/device/info/share'; //分享设备
// Add more endpoints as needed
//添加/床垫控制日志
static String addLog = '$baseUrl/oplog/add';
}