import type { PageParam } from '@/api';
import { Company } from '@/api/system/company/model';

/**
 * 订单
 */
export interface Order {
  orderId?: number;
  orderNo?: string;
  type?: number;
  logo?: string;
  money?: number;
  payPrice?: number;
  planId?: number;
  priceId?: number;
  gradeId?: number;
  userId?: number;
  companyId?: number;
  nickname?: string;
  username?: string;
  userAvatar?: string;
  shopId?: string;
  sortNumber?: number;
  comments?: string;
  status?: number;
  createTime?: string;
  updateTime?: string;
  company?: Company;
}

/**
 * 订单搜索条件
 */
export interface OrderParam extends PageParam {
  orderId?: number;
  orderNo?: string;
  type?: number;
  status?: string;
  sortNumber?: string;
  userId?: number;
  createTime?: string;
  username?: string;
  nickname?: string;
}
