import { IUser, IUserDisplay } from './UserTypes';

export interface IManagedApp {
  appid: string;
  appname: string;
  domainurl: string;
  version: number;
  versionname?: string;
  user: IUser;
  updateuser: IUser;
  create_time: string;
  update_time: string;
  is_saved: boolean;
}

export interface IAppDisplay{
  id:string;
  sortId: number;
  name:string;
  url:string;
  updateUser: IUserDisplay;
  updateTime:string;
  version:number;
  versionName?: string;
  versionChanged: boolean;
}

export interface IVersionSubmit {
  appId: string;
  name?: string;
  comment?: string;
}

export interface IAppVersion {
  id: number;
  version: number;
  appid: string;
  versionname: string
  comment: string;
  updateuser: IUser;
  update_time: string;
  createuser: IUser;
  create_time: string;
}

export interface IAppVersionDisplay {
  id: number;
  version: number;
  appid: string;
  name: string
  comment: string;
  updater: IUserDisplay;
  updateTime: string;
  creator: IUserDisplay;
  createTime: string;
}