You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.9 KiB
PHP
57 lines
1.9 KiB
PHP
<?php
|
|
class ManageGoodsConst {
|
|
const editGoodsTypeSku = 'sku';
|
|
const editGoodsTypeSkuAlias = 'skuAlias';
|
|
const editGoodsTypeBaseInfo = 'baseInfo';
|
|
const editGoodsTypeTitleAndAttr = 'titleAndAttr';
|
|
const editGoodsTypeTitle = 'title';
|
|
const editGoodsTypeProps = 'props';
|
|
const editGoodsTypeMainImg = 'mainImg';
|
|
const editGoodsTypeDetailImg = 'detailImg';
|
|
const editGoodsTypeSkuImg = 'skuImg';
|
|
const editGoodsTypeSourceInfo = 'sourceInfo';
|
|
const editGoodsTypeEditHistory = 'editHistory';
|
|
|
|
const editGoodsTypeWithoutSkuStock = 'withoutSkuStock';
|
|
const editGoodsTypeSkuStock = 'skuStock';
|
|
|
|
const goodsSignTypeIsBeautify = 'isBeautify';
|
|
const goodsSignTypeNotIsBeautify = 'notIsBeautify';
|
|
|
|
const signImageOperateTypeIsSign = 'sign';
|
|
const signImageOperateTypeIsCancel = 'cancel';
|
|
|
|
const isPreSaleTrue = 1;
|
|
const isPreSaleFalse = 0;
|
|
|
|
const imageTypeMainImg = 'mainImg';
|
|
const imageTypeDetailImg = 'detailImg';
|
|
const imageTypeCarouselImg = 'carouselImg';
|
|
const imageTypeColorImg = 'colorImg';
|
|
const imageTypeSkuImg = 'skuImg';
|
|
|
|
const skuStatusOnline = 1;
|
|
const skuStatusOffline = 0;
|
|
|
|
const imageUseTypeReplace = 'replace';
|
|
const imageUseTypeUploadNew = 'uploadNew';
|
|
|
|
public static function getSkuStatusName($skuStatusI) {
|
|
$map = [
|
|
self::skuStatusOnline => '上架',
|
|
self::skuStatusOffline => '下架',
|
|
];
|
|
return $map[$skuStatusI];
|
|
}
|
|
|
|
const manageGoodsSortFieldPrice = 'price';
|
|
const manageGoodsSortFieldQuantity = 'quantity';
|
|
const manageGoodsSortFieldGoodsName = 'goodsName';
|
|
const manageGoodsSortFieldGoodsId = 'goodsId';
|
|
const manageGoodsSortFieldModifyTime = 'modifyTime';
|
|
|
|
const manageGoodsSortTypeAsc = 'ASC';
|
|
const manageGoodsSortTypeDesc = 'DESC';
|
|
|
|
const goodsListMaxTimeSpan = 7 * 86400; // pdd.goods.list.get商品列表接口 查询最大时间跨度7天
|
|
} |