- 在 `UserEntity` 中添加 `canteenId` 字段以支持离线模式 - 新增 `ServiceMchRule` 模型和相关 API 方法用于获取商户规则 - 更新 `CanteenExtraPriceSetting` 模型以包含商户规则列表 - 在 `CanteenProductController` 中添加获取商户规则的逻辑 - 更新数据库表结构以支持 `canteenId` 字段
29 lines
733 B
Dart
29 lines
733 B
Dart
/// 常量
|
|
class Constants {
|
|
// oauth2 APP模式客户端信息
|
|
static const oauth2AppClient = 'mini:mini';
|
|
|
|
// oauth2 登录的url
|
|
static const oauth2AppApiUrl = 'auth/oauth2/token';
|
|
|
|
// 前端加密密钥
|
|
static const pwdEncKey = 'pigxpigxpigxpigx';
|
|
|
|
/// 服务 url
|
|
// static const apiUrl = 'https://stgl.pj.gov.cn/api';
|
|
|
|
static const apiUrl = 'http://192.168.101.125:9999';
|
|
|
|
/// 静态资源 url
|
|
static const ossUrl = apiUrl;
|
|
|
|
/// 人脸识别 插件方法管道
|
|
static const facePlugsMethodChannel = 'local/face_discern';
|
|
|
|
/// 人脸识别 插件回调管道
|
|
static const facePlugsEventChannel = 'local/face_discern_event';
|
|
|
|
/// 数据库名字
|
|
static const databaseName = 'cash_register.db';
|
|
}
|