加上 super

This commit is contained in:
Wang Kejun 2022-12-02 19:20:01 +08:00
parent 8546164412
commit 397613b639
6 changed files with 29 additions and 19 deletions

View File

@ -27,6 +27,7 @@ function getApplication(params, context) {
platformId: 1,
style: 1,
folder: 1,
super: 1,
platform: {
id: 1,
config: 1,

View File

@ -45,6 +45,7 @@ var BackendRuntimeContext = /** @class */ (function (_super) {
platformId: 1,
style: 1,
folder: 1,
super: 1,
platform: {
id: 1,
config: 1,

View File

@ -18,6 +18,7 @@ var projection = {
platformId: 1,
style: 1,
folder: 1,
super: 1,
platform: {
id: 1,
config: 1,

View File

@ -34,6 +34,7 @@ export async function getApplication<
platformId: 1,
style: 1,
folder: 1,
super: 1,
platform: {
id: 1,
config: 1,

View File

@ -22,35 +22,40 @@ export class BackendRuntimeContext<ED extends EntityDict> extends AsyncContext<E
try {
const { a: appId, t: tokenValue } = data;
if (appId) {
const result = await this.select('application', {
data: {
id: 1,
name: 1,
config: 1,
type: 1,
systemId: 1,
style: 1,
system: {
const result = await this.select(
'application',
{
data: {
id: 1,
name: 1,
config: 1,
platformId: 1,
type: 1,
systemId: 1,
style: 1,
folder: 1,
platform: {
system: {
id: 1,
name: 1,
config: 1,
platformId: 1,
style: 1,
folder: 1,
super: 1,
platform: {
id: 1,
config: 1,
style: 1,
},
},
},
filter: {
id: appId,
},
},
filter: {
id: appId,
},
}, {
dontCollect: true,
blockTrigger: true,
});
{
dontCollect: true,
blockTrigger: true,
}
);
assert(result.length > 0, `构建BackendRuntimeContext对应appId「${appId}」找不到application`);
this.application = result[0];
}

View File

@ -24,6 +24,7 @@ const projection: EntityDict['application']['Selection']['data'] = {
platformId: 1,
style: 1,
folder: 1,
super: 1,
platform: {
id: 1,
config: 1,