/** * 实验组类型 * * - 0:控制组 * - 1:实验组 */ export declare type ExpGroupType = 0 | 1; /** * 实验组信息 */ export interface ExpGroup { /** 实验组ID */ expGroupId: number; /** 实验组名称 */ expGroupName: string; /** 实验组类型(1:实验组;0:控制组) */ expGroupType: ExpGroupType; /** 实验变量(Map结构的JSON字符串) */ varias: string; } /** * 实验信息 */ export interface ExpInfo { /** 实验ID */ expId: number; /** 实验别名 */ alias: string; /** 实验名称 */ expName: string; /** 全局隔离域ID */ globalIsolId: number; /** 业务隔离域ID */ businessIsolId: number; /** 实验组列表 */ expGroups: ExpGroup[]; } /** * 参与的实验信息 */ export interface UserMatchedExp { /** 全局隔离域ID */ globalIsolId: number; /** 业务隔离域ID */ businessIsolId: number; /** 实验层ID */ levelId: number; /** 实验ID */ expId: number; /** 实验组ID */ expGroupId: number; } /** * 用户参与所有实验信息 */ export interface UserMatchedExps { /** 园所参与实验列表 */ schoolExpList: UserMatchedExp[]; /** 班级参与实验列表 */ clazzExpList: UserMatchedExp[]; /** 用户参与实验列表 */ userExpList: UserMatchedExp[]; /** 所有全局隔离域信息 */ globalIsolList: string[]; /** 所有业务隔离域信息 */ businessIsolList: string[]; /** 所有实验信息 */ expList: string[]; } /** * 获取实验信息 * @see http://api.ztjy.cn:5000/project/1151/interface/api/71408 */ export declare const getExpInfo: (data: { expIds?: number[]; expAlias?: string[]; }) => Promise; /** * 获取指定别名的实验信息 * * @param expAlias 实验别名 * @returns */ export declare const getExpInfoByAlias: (expAlias: string) => Promise; /** * 获取指定别名实验匹配的实验组 * * @param expAlias 实验别名 * @returns */ export declare const getMatchedExpGroupOfAlias: (expAlias: string) => Promise;