/** * AMTool auto generate model */ import { AMModel, AMProp } from "../../decorator"; @AMModel({ ref: "AmAuthority", showName: "权限", manageable:true, editable:true, }) export class MdlAmAuthority { @AMProp({ showName: "权限Id", showInGrid: true, showInDetail: true, isId: true, editable: false, type: "int" }) public authorityId; @AMProp({ showName: "权限名称", showInGrid: true, showInDetail: true, editable: true, showInRef: true, editOption: { type: "text" }, validator: ["require", "maxLength:64"], type: "string" }) public authority; @AMProp({ showName: "所属组", showInGrid: true, showInDetail: true, editable: true, type:'ref', ref: "MdlAmGroup", editOption: { type: "select", option: { multi: true, refModel: "MdlAmGroup", valueProp: "groupId", displayProp: "groupName" } }, validator: ["require"], }) public amGroups; }