This commit is contained in:
wenjiarui 2023-04-12 23:02:10 +08:00
parent 17faf4bc26
commit b113760f34
4 changed files with 12 additions and 15 deletions

View File

@ -9,7 +9,7 @@ export interface Schema extends EntityShape {
entity: String<32>;
entityId: String<64>;
name: String<32>;
description: Text;
config: WechatPublicConfig;
offset: Int<4>;
description?: Text;
config?: WechatPublicConfig;
offset?: Int<4>;
}

View File

@ -13,18 +13,18 @@ export declare type OpSchema = EntityShape & {
entity: String<32>;
entityId: String<64>;
name: String<32>;
description: Text;
config: WechatPublicConfig;
offset: Int<4>;
description?: Text | null;
config?: WechatPublicConfig | null;
offset?: Int<4> | null;
};
export declare type OpAttr = keyof OpSchema;
export declare type Schema = EntityShape & {
entity: String<32>;
entityId: String<64>;
name: String<32>;
description: Text;
config: WechatPublicConfig;
offset: Int<4>;
description?: Text | null;
config?: WechatPublicConfig | null;
offset?: Int<4> | null;
} & {
[A in ExpressionKey]?: any;
};

View File

@ -26,15 +26,12 @@ exports.desc = {
}
},
description: {
notNull: true,
type: "text"
},
config: {
notNull: true,
type: "object"
},
offset: {
notNull: true,
type: "int",
params: {
width: 4,

View File

@ -19,9 +19,9 @@ export interface Schema extends EntityShape {
entity: String<32>;
entityId: String<64>;
name: String<32>;
description: Text;
config: WechatPublicConfig;
offset: Int<4>;
description?: Text;
config?: WechatPublicConfig;
offset?: Int<4>;
};