芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/modules/AdminPanelWebclient/vue/src/classes/group.js
import typesUtils from 'src/utils/types' class GroupModel { constructor (serverData = {}) { this.tenantId = typesUtils.pInt(serverData.TenantId) this.id = typesUtils.pInt(serverData.Id) this.name = typesUtils.pString(serverData.Name) this.isTeam = typesUtils.pBool(serverData.IsAll) } update (name) { this.name = typesUtils.pString(name) } copy (srcGroup) { this.id = srcGroup.id this.name = srcGroup.name } } export default GroupModel