编译出enum类型的storage
This commit is contained in:
parent
86003d290f
commit
9543bf1538
|
|
@ -14,10 +14,7 @@ exports.desc = {
|
|||
type: "text"
|
||||
},
|
||||
type: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["web", "wechatMp", "wechatPublic"]
|
||||
},
|
||||
systemId: {
|
||||
|
|
|
|||
|
|
@ -44,10 +44,7 @@ exports.desc = {
|
|||
}
|
||||
},
|
||||
iState: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["online", "offline", "disabled"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -32,10 +32,7 @@ exports.desc = {
|
|||
type: "datetime"
|
||||
},
|
||||
iState: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["unsent", "sending", "sent", "failure"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@ exports.desc = {
|
|||
ref: "user"
|
||||
},
|
||||
ableState: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["enabled", "disabled"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@ exports.desc = {
|
|||
ref: "user"
|
||||
},
|
||||
ableState: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["enabled", "disabled"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -38,10 +38,7 @@ exports.desc = {
|
|||
type: "object"
|
||||
},
|
||||
iState: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["active", "applied", "abandoned"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -33,10 +33,7 @@ exports.desc = {
|
|||
type: "object"
|
||||
},
|
||||
ableState: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["enabled", "disabled"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -55,10 +55,7 @@ exports.desc = {
|
|||
ref: "user"
|
||||
},
|
||||
qrCodeType: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["wechatMpDomainUrl", "wechatMpWxaCode", "wechatPublic", "wechatPublicForMp", "webForWechatPublic"]
|
||||
},
|
||||
expiresAt: {
|
||||
|
|
|
|||
|
|
@ -13,10 +13,7 @@ exports.desc = {
|
|||
ref: "role"
|
||||
},
|
||||
relation: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["owner"]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -18,10 +18,7 @@ exports.desc = {
|
|||
}
|
||||
},
|
||||
type: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 24
|
||||
},
|
||||
type: "enum",
|
||||
enumeration: ["wechatMpDomainUrl", "wechatMpWxaCode", "wechatPublic", "wechatPublicForMp", "webForWechatPublic"]
|
||||
},
|
||||
allowShare: {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue