/**
 * 数据方向
 */
const DATA_DIRECTION = {
  UP: 'UP',
  DOWN: 'DOWN'
}

/**
 * 数据排序
 */
const DATA_ORDER_BY = {
  ASC: 'ASC',
  DESC: 'DESC'
}

/**
 * 字符串样式
 */
const StringStyle = {
  UPPER: 'UPPER', // 大写
  LOWER: 'LOWER'  // 小写
}

/**
 * 数据类型
 */
const DataType = {
  JSON: 'Json',
  ARRAY: 'Array',
  DATE: 'Date',
  STRING: 'String',
  NUMBER: 'Number',
  file:'file'
}

/**
 * HTTP请求Header类型
 */
const ContentType = {
  FORM: 'application/x-www-form-urlencoded',
  FORM_UTF8: 'application/x-www-form-urlencoded;charset=utf-8',
  JSON: 'application/json',
  JSON_UTF8: 'application/json;charset=utf-8',
  MULTIPART_FORM: 'mutipart/form-data'
}

/**
 * 订单状态
 * 0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单
 */
const OrderStatus = {
	UNPAY: 0,
	UNDELIVER: 1,
	DELIVER: 2,
	FINISH: 3,
	CLOSED: 4,
	INVALID: 5
}

export default {
  DATA_DIRECTION,
  DATA_ORDER_BY,
  StringStyle,
  DataType,
  ContentType,
  //公共枚举值
  TRUE: true,
  FALSE: false,
  STR_TRUE: '1',
  STR_FALSE: '0',
  N_TRUE: 1,
  N_FALSE: 0,
  YES: 1,
  NO: 0,
  STR_YES: '1',
  STR_NO: '0',
  ZERO: 0,
	OrderStatus
}
