refactor: 确立独立子工程架构 (backend, admin, mpuniapp) 并同步更新 AGENTS.md 规范
这个提交包含在:
@@ -0,0 +1,12 @@
|
||||
// 本文件用于,使用JQL语法操作项目关联的uniCloud空间的数据库,方便开发调试和远程数据库管理
|
||||
// 编写clientDB的js API(也支持常规js语法,比如var),可以对云数据库进行增删改查操作。不支持uniCloud-db组件写法
|
||||
// 可以全部运行,也可以选中部分代码运行。点击工具栏上的运行按钮或者按下【F5】键运行代码
|
||||
// 如果文档中存在多条JQL语句,只有最后一条语句生效
|
||||
// 如果混写了普通js,最后一条语句需是数据库操作语句
|
||||
// 此处代码运行不受DB Schema的权限控制,移植代码到实际业务中注意在schema中配好permission
|
||||
// 不支持clientDB的action
|
||||
// 数据库查询有最大返回条数限制,详见:https://uniapp.dcloud.net.cn/uniCloud/cf-database.html#limit
|
||||
// 详细JQL语法,请参考:https://uniapp.dcloud.net.cn/uniCloud/jql.html
|
||||
|
||||
// 下面示例查询uni-id-users表的所有数据
|
||||
db.collection('uni-id-users').get();
|
||||
@@ -0,0 +1,25 @@
|
||||
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": true,
|
||||
"update": true,
|
||||
"delete": true
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"id": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"tag": {
|
||||
"bsonType": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": true,
|
||||
"update": true,
|
||||
"delete": true
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"id": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"tag": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"foreign_id": {
|
||||
"foreignKey": "foreign.id"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": true,
|
||||
"update": true,
|
||||
"delete": true
|
||||
},
|
||||
"required": ["username", "mobile"],
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "存储文档 ID(用户 ID),系统自动生成"
|
||||
},
|
||||
"username": {
|
||||
"bsonType": "string",
|
||||
"title": "姓名",
|
||||
"description": "姓名",
|
||||
"order": 1,
|
||||
"trim": "both"
|
||||
},
|
||||
"gender": {
|
||||
"bsonType": "int",
|
||||
"title": "性别",
|
||||
"description": "用户性别:0 未知 1 男性 2 女性",
|
||||
"order": 2,
|
||||
"defaultValue": 0,
|
||||
"enum": [{
|
||||
"text": "未知",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"text": "男",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"text": "女",
|
||||
"value": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"mobile": {
|
||||
"bsonType": "string",
|
||||
"title": "电话",
|
||||
"order": 3,
|
||||
"description": "电话",
|
||||
"pattern": "^\\+?[0-9-]{3,20}$",
|
||||
"trim": "both"
|
||||
},
|
||||
"email": {
|
||||
"bsonType": "string",
|
||||
"format": "email",
|
||||
"title": "邮箱",
|
||||
"order": 4,
|
||||
"description": "邮箱地址",
|
||||
"trim": "both"
|
||||
},
|
||||
"comment": {
|
||||
"bsonType": "string",
|
||||
"title": "备注",
|
||||
"order": 5,
|
||||
"description": "备注",
|
||||
"trim": "both",
|
||||
"component": {
|
||||
"name": "textarea"
|
||||
}
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": "0.0.1"
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": true,
|
||||
"update": true,
|
||||
"delete": true
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"num": {
|
||||
"bsonType": "int"
|
||||
},
|
||||
"tag": {
|
||||
"bsonType": "string",
|
||||
"maxLength": 50,
|
||||
"minLength": 0
|
||||
},
|
||||
"date": {
|
||||
"bsonType": "date"
|
||||
},
|
||||
"point": {
|
||||
"bsonType": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": true,
|
||||
"update": true,
|
||||
"delete": true
|
||||
},
|
||||
"required": ["title", "comment"],
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "存储文档 ID(用户 ID),系统自动生成"
|
||||
},
|
||||
"title": {
|
||||
"bsonType": "string",
|
||||
"title": "姓名",
|
||||
"description": "姓名",
|
||||
"order": 1,
|
||||
"trim": "both"
|
||||
},
|
||||
"comment": {
|
||||
"bsonType": "string",
|
||||
"title": "备注",
|
||||
"order": 5,
|
||||
"description": "备注",
|
||||
"trim": "both",
|
||||
"component": {
|
||||
"name": "textarea"
|
||||
}
|
||||
},
|
||||
"create_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": "0.0.1"
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户