py-uni
Version:
py-uni
39 lines (36 loc) • 1.15 kB
text/typescript
import {AuthRoleList} from "./authRoleList.domain";
export class AuthRole{
public OrderId: number;
public ExtAttrib: string;
public Description: string;
public Childs: AuthRoleList;
public OrgId: string;
public ParentId: number;
public AdminIds: string;
public ResIds: string;
public Name: string;
public NodeId: number;
constructor(opts: {
OrderId?: number;
ExtAttrib?: string;
Description?: string;
Childs?: AuthRoleList;
OrgId?: string;
ParentId?: number;
AdminIds?: string;
ResIds?: string;
Name?: string;
NodeId?: number;
} = {}) {
this.OrderId = opts.OrderId || 0;
this.ExtAttrib = opts.ExtAttrib || '';
this.Description = opts.Description || '';
this.Childs = new AuthRoleList(opts.Childs);
this.OrgId = opts.OrgId || '';
this.ParentId = opts.ParentId || 0;
this.AdminIds = opts.AdminIds || '';
this.ResIds = opts.ResIds || '';
this.Name = opts.Name || '';
this.NodeId = opts.NodeId || 0;
}
}