/**
 * Namespace Api
 *
 * All backend api type
 */
declare namespace Api {
  /**
   * namespace Art
   *
   * backend api module: "Art"
   */
  namespace Art {
    /** school dorm */
    type SchoolDorm = Common.CommonRecord<{
      /** 主键ID */
      dormId: CommonType.IdType;
      /** 租户编号 */
      tenantId: CommonType.IdType;
      /** 校区ID */
      campusId: CommonType.IdType;
      /** 几人间(4/6/8...) */
      roomSize: number;
      /** 是否上床下桌(0否1是) */
      bunkBedDesk: number;
      /** 是否独立卫浴(0否1是) */
      privateBath: number;
      /** 宿舍标签(冗余文本：空调/热水/洗衣房...) */
      tags: string;
      /** 补充说明 */
      description: string;
      /** 删除标志（0代表存在 1代表删除） */
      delFlag: string;
      /** 备注 */
      remark: string;
    }>;

    /** school dorm search params */
    type SchoolDormSearchParams = CommonType.RecordNullable<
      Pick<Api.Art.SchoolDorm, 'campusId' | 'roomSize' | 'bunkBedDesk' | 'privateBath' | 'tags' | 'description'> &
        Api.Common.CommonSearchParams
    >;

    /** school dorm operate params */
    type SchoolDormOperateParams = CommonType.RecordNullable<
      Pick<
        Api.Art.SchoolDorm,
        'dormId' | 'campusId' | 'roomSize' | 'bunkBedDesk' | 'privateBath' | 'tags' | 'description' | 'remark'
      >
    >;

    /** school dorm list */
    type SchoolDormList = Api.Common.PaginatingQueryRecord<SchoolDorm>;
  }
}
