actionAuth的初始数据修正
This commit is contained in:
parent
43a33da2bb
commit
43754a75ae
|
|
@ -4,31 +4,31 @@ exports.actionAuth = void 0;
|
|||
exports.actionAuth = [
|
||||
{
|
||||
id: 'message-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'message',
|
||||
deActions: ['select', 'remove', 'update'],
|
||||
},
|
||||
{
|
||||
id: 'mobile-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'mobile',
|
||||
deActions: ['create', 'update', 'remove', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'token-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'token',
|
||||
deActions: ['create', 'update', 'remove', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'wechatLogin-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'wechatLogin',
|
||||
deActions: ['create', 'update', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'wechatUser-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'wechatUser',
|
||||
deActions: ['create', 'update', 'select'],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ declare type Actions = string[];
|
|||
declare type Paths = string[];
|
||||
export declare type OpSchema = EntityShape & {
|
||||
relationId?: ForeignKey<"relation"> | null;
|
||||
path: String<256>;
|
||||
paths: Paths;
|
||||
destEntity: String<32>;
|
||||
deActions: Actions;
|
||||
|
|
@ -16,7 +15,6 @@ export declare type OpSchema = EntityShape & {
|
|||
export declare type OpAttr = keyof OpSchema;
|
||||
export declare type Schema = EntityShape & {
|
||||
relationId?: ForeignKey<"relation"> | null;
|
||||
path: String<256>;
|
||||
paths: Paths;
|
||||
destEntity: String<32>;
|
||||
deActions: Actions;
|
||||
|
|
@ -31,7 +29,6 @@ declare type AttrFilter = {
|
|||
$$updateAt$$: Q_DateValue;
|
||||
relationId: Q_StringValue;
|
||||
relation: Relation.Filter;
|
||||
path: Q_StringValue;
|
||||
paths: JsonFilter<Paths>;
|
||||
destEntity: Q_StringValue;
|
||||
deActions: JsonFilter<Actions>;
|
||||
|
|
@ -46,7 +43,6 @@ export declare type Projection = {
|
|||
$$seq$$?: number;
|
||||
relationId?: number;
|
||||
relation?: Relation.Projection;
|
||||
path?: number;
|
||||
paths?: number | JsonProjection<Paths>;
|
||||
destEntity?: number;
|
||||
deActions?: number | JsonProjection<Actions>;
|
||||
|
|
@ -69,8 +65,6 @@ export declare type SortAttr = {
|
|||
relationId: number;
|
||||
} | {
|
||||
relation: Relation.SortAttr;
|
||||
} | {
|
||||
path: number;
|
||||
} | {
|
||||
paths: number;
|
||||
} | {
|
||||
|
|
|
|||
|
|
@ -8,13 +8,6 @@ exports.desc = {
|
|||
type: "ref",
|
||||
ref: "relation"
|
||||
},
|
||||
path: {
|
||||
notNull: true,
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 256
|
||||
}
|
||||
},
|
||||
paths: {
|
||||
notNull: true,
|
||||
type: "object"
|
||||
|
|
@ -35,7 +28,7 @@ exports.desc = {
|
|||
actions: action_1.genericActions,
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_entity_relation_path',
|
||||
name: 'index_entity_relation',
|
||||
attributes: [
|
||||
{
|
||||
name: 'destEntity'
|
||||
|
|
@ -43,9 +36,6 @@ exports.desc = {
|
|||
{
|
||||
name: "relationId"
|
||||
},
|
||||
{
|
||||
name: 'path'
|
||||
},
|
||||
],
|
||||
config: {
|
||||
unique: true
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{ "name": "用户授权", "attr": { "relation": "关系", "path": "路径", "paths": "路径", "destEntity": "目标对象", "deActions": "目标对象动作" } }
|
||||
{ "name": "用户授权", "attr": { "relation": "关系", "paths": "路径", "destEntity": "目标对象", "deActions": "目标对象动作" } }
|
||||
|
|
|
|||
|
|
@ -3,31 +3,31 @@ import { CreateOperationData as ActionAuth } from '../general-app-domain/ActionA
|
|||
export const actionAuth: ActionAuth[] = [
|
||||
{
|
||||
id: 'message-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'message',
|
||||
deActions: ['select', 'remove', 'update'],
|
||||
},
|
||||
{
|
||||
id: 'mobile-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'mobile',
|
||||
deActions: ['create', 'update', 'remove', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'token-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'token',
|
||||
deActions: ['create', 'update', 'remove', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'wechatLogin-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'wechatLogin',
|
||||
deActions: ['create', 'update', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'wechatUser-user',
|
||||
path: 'user',
|
||||
paths: ['user'],
|
||||
destEntity: 'wechatUser',
|
||||
deActions: ['create', 'update', 'select'],
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue