mm_os 4.1.5 → 4.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/com/db/drive.js +39 -23
- package/com/db/index.js +1 -1
- package/package.json +1 -1
- package/common/handler/msg/handler.json +0 -22
- package/common/handler/msg/index.js +0 -23
- package/common/handler/player/handler.json +0 -22
- package/common/handler/player/index.js +0 -287
- package/common/handler/user/handler.json +0 -22
- package/common/handler/user/index.js +0 -23
- package/common/model/msg/index.js +0 -88
- package/common/model/msg/model.json +0 -401
- package/common/model/player/index.js +0 -63
- package/common/model/player/model.json +0 -185
- package/common/model/user/index.js +0 -11
- package/common/model/user/model.json +0 -219
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// 名称
|
|
3
|
-
"name": "user",
|
|
4
|
-
// 标题
|
|
5
|
-
"title": "用户账户模型",
|
|
6
|
-
// 描述
|
|
7
|
-
"description": "定于用户账户模型的组件",
|
|
8
|
-
// 主文件
|
|
9
|
-
"main": "index.js",
|
|
10
|
-
// 状态 0:禁用 1:启用
|
|
11
|
-
"state": 1,
|
|
12
|
-
// 排序,越小越靠前
|
|
13
|
-
"sort": 100,
|
|
14
|
-
// 模型包含字段
|
|
15
|
-
"fields": {
|
|
16
|
-
"user_id": {
|
|
17
|
-
// 值类型
|
|
18
|
-
"type": "number",
|
|
19
|
-
// 数据类型
|
|
20
|
-
"data_type": "int",
|
|
21
|
-
// 标题
|
|
22
|
-
"title": "用户ID",
|
|
23
|
-
// 描述
|
|
24
|
-
"description": "用户的唯一标识符",
|
|
25
|
-
// 最小值
|
|
26
|
-
"min": 1,
|
|
27
|
-
// 最大值
|
|
28
|
-
"max": 10000000,
|
|
29
|
-
// 默认值
|
|
30
|
-
"default": 0,
|
|
31
|
-
// 是否主键
|
|
32
|
-
"primary_key": true,
|
|
33
|
-
// 是否自动增长
|
|
34
|
-
"auto": true
|
|
35
|
-
},
|
|
36
|
-
"username": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"data_type": "varchar",
|
|
39
|
-
"title": "用户名",
|
|
40
|
-
"description": "用户的显示名称",
|
|
41
|
-
// 最小长度
|
|
42
|
-
"min": 1,
|
|
43
|
-
// 最大长度
|
|
44
|
-
"max": 24,
|
|
45
|
-
"default": ""
|
|
46
|
-
},
|
|
47
|
-
"password": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"data_type": "varchar",
|
|
50
|
-
"title": "密码",
|
|
51
|
-
"description": "用户的密码",
|
|
52
|
-
"min": 1,
|
|
53
|
-
"max": 32,
|
|
54
|
-
"default": "123456"
|
|
55
|
-
},
|
|
56
|
-
"salt": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"data_type": "varchar",
|
|
59
|
-
"title": "盐值",
|
|
60
|
-
"description": "用户密码的盐值",
|
|
61
|
-
"min": 1,
|
|
62
|
-
"max": 32,
|
|
63
|
-
"default": "mm2025"
|
|
64
|
-
},
|
|
65
|
-
"state": {
|
|
66
|
-
"type": "number",
|
|
67
|
-
"data_type": "int",
|
|
68
|
-
"title": "状态",
|
|
69
|
-
"description": "账户的状态",
|
|
70
|
-
"min": 1,
|
|
71
|
-
"max": 10000000,
|
|
72
|
-
"default": 1,
|
|
73
|
-
"enum": [
|
|
74
|
-
{
|
|
75
|
-
"value": 1,
|
|
76
|
-
"label": "可用"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"value": 2,
|
|
80
|
-
"label": "异常"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"value": 3,
|
|
84
|
-
"label": "已冻结"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"value": 4,
|
|
88
|
-
"label": "已注销"
|
|
89
|
-
}
|
|
90
|
-
]
|
|
91
|
-
},
|
|
92
|
-
"avatar": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"data_type": "varchar",
|
|
95
|
-
"title": "头像",
|
|
96
|
-
"description": "用户的头像",
|
|
97
|
-
"min": 1,
|
|
98
|
-
"max": 255,
|
|
99
|
-
"default": "/avatar.jpg"
|
|
100
|
-
},
|
|
101
|
-
"nickname": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"data_type": "varchar",
|
|
104
|
-
"title": "昵称",
|
|
105
|
-
"description": "用户的昵称",
|
|
106
|
-
"min": 1,
|
|
107
|
-
"max": 24,
|
|
108
|
-
"default": ""
|
|
109
|
-
},
|
|
110
|
-
"vip": {
|
|
111
|
-
"type": "number",
|
|
112
|
-
"data_type": "int",
|
|
113
|
-
"title": "会员等级",
|
|
114
|
-
"description": "用户的会员等级",
|
|
115
|
-
"min": 0,
|
|
116
|
-
"max": 10000000,
|
|
117
|
-
"default": 0
|
|
118
|
-
},
|
|
119
|
-
"gm": {
|
|
120
|
-
"type": "number",
|
|
121
|
-
"data_type": "int",
|
|
122
|
-
"title": "管理员等级",
|
|
123
|
-
"description": "用户的管理员等级",
|
|
124
|
-
"min": 0,
|
|
125
|
-
"max": 10000000,
|
|
126
|
-
"default": 0
|
|
127
|
-
},
|
|
128
|
-
"mc": {
|
|
129
|
-
"type": "number",
|
|
130
|
-
"data_type": "int",
|
|
131
|
-
"title": "商家等级",
|
|
132
|
-
"description": "用户的商家等级",
|
|
133
|
-
"min": 0,
|
|
134
|
-
"max": 10000000,
|
|
135
|
-
"default": 0
|
|
136
|
-
},
|
|
137
|
-
"email": {
|
|
138
|
-
"type": "string",
|
|
139
|
-
"data_type": "varchar",
|
|
140
|
-
"title": "邮箱",
|
|
141
|
-
"description": "用户的邮箱",
|
|
142
|
-
"min": 1,
|
|
143
|
-
"max": 255,
|
|
144
|
-
"default": ""
|
|
145
|
-
},
|
|
146
|
-
"phone": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"data_type": "varchar",
|
|
149
|
-
"title": "手机号",
|
|
150
|
-
"description": "用户的手机号",
|
|
151
|
-
"min": 1,
|
|
152
|
-
"max": 11,
|
|
153
|
-
"default": ""
|
|
154
|
-
},
|
|
155
|
-
"admins": {
|
|
156
|
-
"type": "string",
|
|
157
|
-
"data_type": "varchar",
|
|
158
|
-
"title": "管理员组",
|
|
159
|
-
"description": "用户所属的管理员组集合",
|
|
160
|
-
"min": 0,
|
|
161
|
-
"max": 255,
|
|
162
|
-
"default": ""
|
|
163
|
-
},
|
|
164
|
-
"groups": {
|
|
165
|
-
"type": "string",
|
|
166
|
-
"data_type": "varchar",
|
|
167
|
-
"title": "用户组",
|
|
168
|
-
"description": "用户所属的用户组集合",
|
|
169
|
-
"min": 0,
|
|
170
|
-
"max": 255,
|
|
171
|
-
"default": ""
|
|
172
|
-
},
|
|
173
|
-
"referee_id": {
|
|
174
|
-
"type": "number",
|
|
175
|
-
"data_type": "int",
|
|
176
|
-
"title": "推荐人ID",
|
|
177
|
-
"description": "用户的推荐人ID",
|
|
178
|
-
"min": 1,
|
|
179
|
-
"max": 10000000,
|
|
180
|
-
"default": 0
|
|
181
|
-
},
|
|
182
|
-
"login_ip": {
|
|
183
|
-
"type": "string",
|
|
184
|
-
"data_type": "varchar",
|
|
185
|
-
"title": "登录IP",
|
|
186
|
-
"description": "用户最近一次登录的IP地址",
|
|
187
|
-
"min": 0,
|
|
188
|
-
"max": 255,
|
|
189
|
-
"default": "127.0.0.1"
|
|
190
|
-
},
|
|
191
|
-
"login_time": {
|
|
192
|
-
"type": "string",
|
|
193
|
-
"data_type": "datetime",
|
|
194
|
-
"title": "登录时间",
|
|
195
|
-
"description": "用户最近一次登录的时间",
|
|
196
|
-
"min": 1,
|
|
197
|
-
"max": 20,
|
|
198
|
-
"default": "1970-01-01 00:00:00"
|
|
199
|
-
},
|
|
200
|
-
"time_create": {
|
|
201
|
-
"type": "string",
|
|
202
|
-
"data_type": "datetime",
|
|
203
|
-
"title": "创建时间",
|
|
204
|
-
"description": "用户账户的创建时间",
|
|
205
|
-
"min": 1,
|
|
206
|
-
"max": 20,
|
|
207
|
-
"default": "now()"
|
|
208
|
-
},
|
|
209
|
-
"time_update": {
|
|
210
|
-
"type": "string",
|
|
211
|
-
"data_type": "datetime",
|
|
212
|
-
"title": "更新时间",
|
|
213
|
-
"description": "用户账户的更新时间",
|
|
214
|
-
"min": 1,
|
|
215
|
-
"max": 20,
|
|
216
|
-
"default": "1970-01-01 00:00:00"
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|