// 活动-裂变优惠券下拉类型
import { InterFunction, InterItemFunction } from "~/api/interface";
import { SplitCouponItemType } from "~/api/interface/couponManage";

// 裂变优惠券-下拉
export type splitCouponDownType = InterFunction<
  { type: number },
  SplitCouponItemType[]
>;

// 活动新增-type
export type addActivityItemType = {
  activityImg: string;
  activityName: string;
  bindingCouponId?: number;
  activityType: number;
  endTime: string;
  helpType: number;
  limitNum: number;
  shareNum: number;
  show: number;
  startTime: string;
  time?: any[];
  redirectPath?: "";
};
export type addActivityType = InterFunction<addActivityItemType, null>;
// 活动-列表
export type activityItemType = addActivityItemType & {
  bindingCouponName: string;
  couponActivityDTO: SplitCouponItemType;
  activityStatus: number;
  activityType: number;
  id: number;
};
export type activeTableItemType = InterItemFunction<any, activityItemType[]>;
// 活动-结束
export type endActivityType = InterFunction<{ activityId: number }, null>;
// 活动-数据
export type activityDataType = InterFunction<
  { activityId: number },
  { countFinishParticipate: number; countParticipate: number }
>;
// 活动-编辑
export type activityEditType = InterFunction<
  addActivityItemType & { id: number },
  null
>;
