diff --git a/src/checkers/userEntityGrant.ts b/src/checkers/userEntityGrant.ts new file mode 100644 index 000000000..a5f648b20 --- /dev/null +++ b/src/checkers/userEntityGrant.ts @@ -0,0 +1,23 @@ +import { checkFilterContains } from 'oak-domain/lib/store/actionDef'; +import { + Checker, +} from 'oak-domain/lib/types'; +import { EntityDict } from 'oak-app-domain'; +import { GeneralRuntimeContext } from '../RuntimeContext'; + +const checkers: Checker< + EntityDict, + 'userEntityGrant', + GeneralRuntimeContext +>[] = [ + { + type: 'data', + action: 'create', + entity: 'userEntityGrant', + checker: async ({ operation }, context) => { + return 0; + }, + }, +]; + +export default checkers; diff --git a/src/checkers/wechatQrCode b/src/checkers/wechatQrCode new file mode 100644 index 000000000..e87fe934b --- /dev/null +++ b/src/checkers/wechatQrCode @@ -0,0 +1,23 @@ +import { checkFilterContains } from 'oak-domain/lib/store/actionDef'; +import { + Checker, +} from 'oak-domain/lib/types'; +import { EntityDict } from 'oak-app-domain'; +import { GeneralRuntimeContext } from '../RuntimeContext'; + +const checkers: Checker< + EntityDict, + 'wechatQrCode', + GeneralRuntimeContext +>[] = [ + { + type: 'data', + action: 'create', + entity: 'wechatQrCode', + checker: async ({ operation }, context) => { + return 0; + }, + }, +]; + +export default checkers; diff --git a/src/entities/UserEntityGrant.ts b/src/entities/UserEntityGrant.ts new file mode 100644 index 000000000..07eba9579 --- /dev/null +++ b/src/entities/UserEntityGrant.ts @@ -0,0 +1,39 @@ +import { String, Text } from 'oak-domain/lib/types/DataType'; +import { EntityShape } from 'oak-domain/lib/types/Entity'; +import { Index } from 'oak-domain/lib/types/Storage'; +import { Schema as User } from './User'; + +export interface Schema extends EntityShape { + entity: String<32>; + entityId: String<64>; + relation: String<32>; + action: String<32>; + remark?: Text; + uuid: String<32>; + granter: User; + grantee?: User; +} + + +const indexes: Index[] = [ + { + name: 'index_entity_entityId', + attributes: [ + { + name: 'entity', + }, + { + name: 'entityId', + }, + ], + }, + { + name: 'index_uuid', + attributes: [ + { + name: 'uuid', + }, + ], + }, +]; + diff --git a/src/entities/WechatQrCode.ts b/src/entities/WechatQrCode.ts new file mode 100644 index 000000000..8e9fb53fc --- /dev/null +++ b/src/entities/WechatQrCode.ts @@ -0,0 +1,49 @@ +import { String, Text, Datetime, Boolean } from 'oak-domain/lib/types/DataType'; +import { EntityShape } from 'oak-domain/lib/types/Entity'; +import { Index } from 'oak-domain/lib/types/Storage'; + +export interface Schema extends EntityShape { + entity: String<32>; + entityId: String<64>; + type?: String<32>; //类型 + expiresAt: Datetime; // 过期时间 + expired: Boolean; //是否过期 + autoExtend: Boolean; + sceneStr?: Text; + ticket?: Text; + url: String<64>; + isPermanent: Boolean; //是否永久码 +} + +const indexes: Index[] = [ + { + name: 'index_entity_entityId', + attributes: [ + { + name: 'entity', + }, + { + name: 'entityId', + }, + ], + }, + { + name: 'index_expired_expiresAt', + attributes: [ + { + name: 'expired', + }, + { + name: 'expiresAt', + }, + ], + }, + { + name: 'index_url', + attributes: [ + { + name: 'url', + }, + ], + }, +]; diff --git a/wechatMp/components/Func/file-list/index.ts b/wechatMp/components/Func/file-list/index.ts index 0d1976a95..5faa02f77 100644 --- a/wechatMp/components/Func/file-list/index.ts +++ b/wechatMp/components/Func/file-list/index.ts @@ -6,7 +6,7 @@ Component({ // 根据 size 不同,计算的图片显示大小不同 itemSizePercentage: '', }, - externalClasses: ['l-container-class', 'l-item-class'], + externalClasses: ['l-class', 'l-item-class'], properties: { oakFullpath: String, oakUpdateData: Object, diff --git a/wechatMp/components/Func/file-list/index.wxml b/wechatMp/components/Func/file-list/index.wxml index 18d49afa1..ae48a17b8 100644 --- a/wechatMp/components/Func/file-list/index.wxml +++ b/wechatMp/components/Func/file-list/index.wxml @@ -1,4 +1,4 @@ - +