工作区实例

字段名称 字段类型 字段说明
space_id integer 工作区ID
name string 工作区名称
allow_invite_code string 是否开启公开邀请
invite_code string 公开邀请码
rights array 当前用户在该工作区下权限。为一个数组,其元素如下:update(更新工作区), delete(删除工作区), app_create(创建表格), app_order(更改表格顺序), space_member_update(更改工作区成员角色), space_member_delete(删除成员), view(查看工作区), invite(邀请人加入工作区)
member_number integer 工作区成员数量,包含邀请中的
joined_member_number integer 加入工作区的成员数量
cover_image object 封面图片,文件对象
cover_source_image object 封面图片原图,文件对象
cover_name_color string 封面文字颜色, RRGGBB
cover_background_color string 封面背景颜色, RRGGBB
cover_crop object 封面的裁剪参数
created_on string 创建时间
created_by_id integer 创建人ID
table_ids array 工作区下表格ID
created_by object 创建人,用户对象,参考user实例
source integer 创建来源
{
  "space_id": 100001,
  "name": "测试",
  "cover_name_color": "FFFFFF",
  "cover_background_color": "79BEAF",
  "cover_crop": {
    "scale": 0.5,
    "x": 0,
    "y": 0,
    "width": 140,
    "height": 140
  },
  "created_on": "2016-07-08 09:59:19",
  "created_by_id": 100001,
  "member_number": 4,
  "joined_member_number": 3,
  "table_ids": [
    100001,
    100002,
    100003
  ],
  "allow_invite_code": false,
  "invite_code": "aDtrYF",
  "created_by": {
    "user_id": 100001,
    "name": "test1",
    "avatar": "http:\/\/f2.huoban.com\/30000\/user_avatar\/40000\/xxx"
  },
  "cover_image": {
    "file_id": 100001,
    "name": "default_cover.png",
    "size": 7812,
    "ref_id": 0,
    "ref_type": "",
    "created_on": "2015-11-24 16:16:58",
    "link": {
      "source": "http:\/\/f2.huoban.com\/30000\/user_avatar\/40000\/xxx",
      "square": null
    }
  },
  "cover_source_image": {
    "file_id": 100002,
    "name": "default_cover.png",
    "size": 7812,
    "ref_id": 0,
    "ref_type": "",
    "created_on": "2015-11-24 16:16:58",
    "link": {
      "source": "http:\/\/f2.huoban.com\/30000\/user_avatar\/40000\/xxx",
      "square": null
    }
  },
  "rights": [
    "update",
    "delete",
    "manage",
    "table_create",
    "table_order",
    "space_member_update",
    "space_member_delete",
    "view",
    "invite"
  ],
  "source": 2
}