编译出enum类型的storage

This commit is contained in:
Xu Chang 2023-02-21 17:56:23 +08:00
parent 86003d290f
commit 9543bf1538
14 changed files with 18 additions and 69 deletions

View File

@ -14,10 +14,7 @@ exports.desc = {
type: "text"
},
type: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["web", "wechatMp", "wechatPublic"]
},
systemId: {

View File

@ -44,10 +44,7 @@ exports.desc = {
}
},
iState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["online", "offline", "disabled"]
}
},

View File

@ -32,10 +32,7 @@ exports.desc = {
type: "datetime"
},
iState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["unsent", "sending", "sent", "failure"]
}
},

View File

@ -15,10 +15,7 @@ exports.desc = {
ref: "user"
},
ableState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["enabled", "disabled"]
}
},

View File

@ -27,10 +27,7 @@ exports.desc = {
}
},
weight: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["high", "medium", "low"]
},
restriction: {
@ -52,17 +49,11 @@ exports.desc = {
type: "object"
},
iState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["sending", "success", "failure"]
},
visitState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["unvisited", "visited"]
}
},

View File

@ -15,10 +15,7 @@ exports.desc = {
ref: "user"
},
ableState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["enabled", "disabled"]
}
},

View File

@ -38,10 +38,7 @@ exports.desc = {
type: "object"
},
iState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["active", "applied", "abandoned"]
}
},

View File

@ -5,10 +5,7 @@ var Action_1 = require("./Action");
exports.desc = {
attributes: {
channel: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["wechatPublic", "jPush", "jim", "wechatMp", "sms"]
},
applicationId: {
@ -35,10 +32,7 @@ exports.desc = {
}
},
iState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["sending", "success", "failure"]
}
},

View File

@ -33,10 +33,7 @@ exports.desc = {
type: "object"
},
ableState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["enabled", "disabled"]
}
},

View File

@ -49,17 +49,11 @@ exports.desc = {
ref: "user"
},
idState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["unverified", "verified", "verifying"]
},
userState: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["shadow", "normal", "disabled", "merged"]
}
},

View File

@ -55,10 +55,7 @@ exports.desc = {
ref: "user"
},
qrCodeType: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["wechatMpDomainUrl", "wechatMpWxaCode", "wechatPublic", "wechatPublicForMp", "webForWechatPublic"]
},
expiresAt: {

View File

@ -13,10 +13,7 @@ exports.desc = {
ref: "role"
},
relation: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["owner"]
}
},

View File

@ -18,10 +18,7 @@ exports.desc = {
}
},
type: {
type: "varchar",
params: {
length: 24
},
type: "enum",
enumeration: ["wechatMpDomainUrl", "wechatMpWxaCode", "wechatPublic", "wechatPublicForMp", "webForWechatPublic"]
},
allowShare: {

View File

@ -147,7 +147,7 @@ exports.default = OakComponent({
}
},
relations: function (prev, next) {
if (this.state.oakFullpath && ((0, lodash_1.difference)(prev.relations, next.relations).length > 0)) {
if (this.state.oakFullpath && (prev.relations.length !== next.relations.length || (0, lodash_1.difference)(prev.relations, next.relations).length > 0)) {
this.refresh();
}
}