// @ts-ignore /* eslint-disable */ declare namespace API { type CurrentUser = { id: string; // 数据库 id userId: string; userName: string; created: string; updated: string; avatar?: string; }; interface LoginParams { userName?: string; pwd?: string; } interface LoginResult { token?: string; expires?: number; } interface PageParams { // proTable 给的分页页数 current?: number; pageSize?: number; // 实际接口需要的分页页数 page?: number; } interface JobListItem { // 数据库 id id: string; // 小程序用户 id appUid: string; // 通告 id jobId: string; // 通告标题 title: string; // 简介 jobDescription: string; // 详细描述(原始信息) sourceText: string; // 城市 code,查询时必传:默认为 ALL cityCode: string; // 品类,查询时必传:默认为 ALL category: string; // 工作类型,查询时必传:默认为 ALL employType: string; // 发布人微信昵称 publisher: string; // 发布人 id blPublisherId: string; // 发布人微信号 publisherAcctNo: string; // 群昵称 imGroupNick: string; // 微信群id imGroupId: string; // 播络群 id blGroupId: string; // 机器人 id robotId: string; // 机器人微信昵称 robotImNick: string; // 机器人微信号 robotImNo: string; // 通告发布群数量 relateGroupCount: number; // 创建时间,时间戳 created: string; // 更新时间,时间戳 updated: string; // 是否禁用,默认为 false disable: boolean; } interface GroupListItem { // 播络群 id id: string; // 微信群id imGroupId: string; // 群昵称 imGroupNick: string; groupType: string; // 群主微信昵称 groupOwnerNick: string; // 群主微信号 groupOwnerImAcctNo: string; // 群主boluo账号 groupOwnerAcctNo: string; // 机器人 id robotId: string; // 机器人微信昵称 robotImNick: string; // 机器人微信号 robotImNo: string; // 城市 code city: string; // 通告数量 jobCount: number; // 创建时间,时间戳 created: string; // 更新时间,时间戳 updated: string; // 是否禁用,默认为 false disable: boolean; // 是否删除 isDeleted: boolean; } interface AnchorGroupListItem { // 主播用户 id userId: string; // 主播昵称 nickName: string; // 主播手机号 userPhone: string; // 群名称 imGroupNick: string; // 微信群id imGroupId: string; // 播络群 id blGroupId: string; // 是否已经支付 payed: boolean; // 支付方式, vx、alipay、other payType: string; // 群定制时间,时间戳 created: string; // 绑定群的客服操作人员 creator: string; // 备注 mark?: string; // 加群状态:0 已申请加群 1已申请加群未进群 2 已申请加群已进群 status: number; } interface PublisherListItem { // 发布人微信昵称 publisher: string; // 发布人 id blPublisherId: string; // 小程序用户 id appUid: string; // 发布人微信号 publisherAcctNo: string; // 发布人微信状态, 0 空,1 非空 publisherAcctStatus: number; // 账号状态: 0 正常,1 暂停 status: number; // 申请好友状态: 0 待申请,1 已申请,2 不能添加,3 被封号 addAcctStatus: number; phone: string; email: string; // 机器人微信昵称 robotImNick: string; // 客服操作人员 operator: string; // 群名称 imGroupNick: string; // 微信群id imGroupId: string; // 播络群 id blGroupId: string; // 创建时间 created: string; // 更新时间 updated: string; // 是否有报单 hasDeclareOrder?: boolean; // 最新报单时间 declareTime?: string; jobId?: string; } interface AnchorListItem { // 主播用户 id userId: string; // 主播昵称 nickName: string; // 主播手机号 userPhone: string; // 是否绑定了手机号 isBindPhone: boolean; // 注册时间 created: string; // 最后一次登录时间 lastLoginDate: string; // 状态: 0 正常,1 封禁 status: number; // 所属城市 code city: string; } interface DeclarationListItem { // 报单 id id: string; // 报单类型 type: number; // 主播用户 id userId: string; // 主播昵称 nickName: string; // 主播手机号 userPhone: string; // 通告 id jobId: string; // 通告标题 title: string; // 解锁时间 useDate: string; // 发布人微信昵称 publisher: string; // 发布人 id blPublisherId: string; // 发布人微信号 publisherAcctNo: string; // 报单时间 declarationDate: string; // 报单处理状态 declaredStatus: number; // 报单处理时间 declaredDate: string; // 备注 declaredMark?: string; // 加企微状态 weComStatus: number; // 通告城市信息,如 400100 jobCityCode: string; } interface MaterialVideoInfo { url: string; coverUrl: string; type: 'image' | 'video'; title: string; isDefault: boolean; } interface MaterialProfile { materialVideoInfoList: MaterialVideoInfo[]; // 基础信息 id: string; userId: string; name: string; age: number; height: number; // cm weight: number; // kg gender: GenderType; shoeSize: number; // 鞋码 // 求职意向 employType: EmployType; // 工作类型 fullTimeMinPrice: number; // 全职期望薪资下限 fullTimeMaxPrice: number; // 全职期望薪资上限 partyTimeMinPrice: number; // 兼职期望薪资下限 partyTimeMaxPrice: number; // 兼职期望薪资上限 cityCode: string; // 城市 cityCodes: string; // 城市。多个城市用 、分割,如 '110100、141100' acceptWorkForSit: boolean; // 是否接受坐班 // 直播经验 workedYear: WorkedYears; // 工作年限,单位年,无为0、半年 0.5、1、2、3、4、5年及以上用100表示,默认为1年 workedAccounts: string; // 直播过的账号 newAccountExperience: number; // 是否有起号经验,0无 1有 workedCategory: string; // 直播过的品类 workedSecCategoryStr: string; // 直播过的二级品类 style: string; // 风格。多个分割用 、分割 maxGmv: number; // 最高 GMV,单位 w maxOnline: number; // 最高在线人数 // 自身优势 advantages: string; // 其他 approveStatus: boolean; // 审核状态:0 待审 ,1 成功 ,2 不通过 isOpen: boolean; // 整体状态是否开放 1开放 0不开放 createType: ProfileCreateSource; creator: string; // 创建人id progressBar: number; // 进度百分比 filledItems: number; // 已填资料项数 created: number; // 时间戳 updated: number; // 时间戳 } interface MaterialListItem extends MaterialProfile { // 主播用户 id userId: string; // 主播昵称 nickname: string; // 主播手机号 userPhone: string; userOpen: boolean; adminOpen: boolean; // 后台控制是否开放 1开放 0不开放 } interface ListResult { data: T[]; total: number; hasMore: boolean; page: number; pageSize: number; // 排序字段 sortField: string; // 是否升序 asc: string; } interface TableList extends ListResult { success?: boolean; } type UpdateJobParams = Pick; type UpdateGroupParams = Pick; type UpdatePublisherParams = Pick< PublisherListItem, 'blPublisherId' | 'publisherAcctNo' | 'status' | 'addAcctStatus' >; type UpdateAnchorParams = Pick; type UpdateDeclarationParams = Pick; type UpdateMaterialParams = Pick & { adminOpen: number }; }