修改了常量的长度

This commit is contained in:
Xu Chang 2022-09-24 15:46:00 +08:00
parent 80ab6ddfcf
commit 6907d88d1d
18 changed files with 25 additions and 22 deletions

View File

@ -14,7 +14,10 @@ exports.desc = {
type: "text" type: "text"
}, },
type: { type: {
type: "object" type: "varchar",
params: {
length: 24
}
}, },
systemId: { systemId: {
type: "ref", type: "ref",

View File

@ -13,7 +13,7 @@ exports.desc = {
level: { level: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
depth: { depth: {

View File

@ -37,7 +37,7 @@ exports.desc = {
iState: { iState: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
} }
}, },

View File

@ -34,7 +34,7 @@ exports.desc = {
iState: { iState: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
} }
}, },

View File

@ -19,7 +19,7 @@ exports.desc = {
protocol: { protocol: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
port: { port: {

View File

@ -17,7 +17,7 @@ exports.desc = {
ableState: { ableState: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
} }
}, },

View File

@ -7,13 +7,13 @@ exports.desc = {
origin: { origin: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
type: { type: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
bucket: { bucket: {

View File

@ -19,7 +19,7 @@ exports.desc = {
liveonly: { liveonly: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
hub: { hub: {

View File

@ -17,7 +17,7 @@ exports.desc = {
ableState: { ableState: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
} }
}, },

View File

@ -40,7 +40,7 @@ exports.desc = {
iState: { iState: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
} }
}, },

View File

@ -34,7 +34,7 @@ exports.desc = {
ableState: { ableState: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
} }
}, },

View File

@ -29,7 +29,7 @@ exports.desc = {
gender: { gender: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
avatar: { avatar: {
@ -38,7 +38,7 @@ exports.desc = {
idCardType: { idCardType: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
idNumber: { idNumber: {
@ -58,13 +58,13 @@ exports.desc = {
idState: { idState: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
userState: { userState: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
} }
}, },

View File

@ -25,7 +25,7 @@ exports.desc = {
type: { type: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
number: { number: {

View File

@ -15,7 +15,7 @@ exports.desc = {
relation: { relation: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
} }
}, },

View File

@ -15,7 +15,7 @@ exports.desc = {
relation: { relation: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
} }
}, },

View File

@ -19,7 +19,7 @@ exports.desc = {
type: { type: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
allowShare: { allowShare: {

View File

@ -7,7 +7,7 @@ exports.desc = {
origin: { origin: {
type: "varchar", type: "varchar",
params: { params: {
length: 16 length: 24
} }
}, },
openId: { openId: {

View File

@ -87,7 +87,7 @@ export class BackendRuntimeContext<ED extends EntityDict> extends UniversalConte
id: tokenValue, id: tokenValue,
}, },
}, this, {}); }, this, {});
assert(result.length > 0, `构建BackendRuntimeContext对应tokenValue「${tokenValue}user`); assert(result.length > 0, `构建BackendRuntimeContext对应tokenValue「${tokenValue}找不到相关的user`);
const token = result[0] as SelectRowShape<ED['token']['Schema'], GetTokeShape2>; const token = result[0] as SelectRowShape<ED['token']['Schema'], GetTokeShape2>;
if (token.ableState === 'disabled') { if (token.ableState === 'disabled') {
throw new OakTokenExpiredException(); throw new OakTokenExpiredException();