Files
OMS/app/openapi/lib/api/params/v1/delivery.php
2026-01-04 19:08:31 +08:00

68 lines
2.8 KiB
PHP

<?php
/**
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
class openapi_api_params_v1_delivery extends openapi_api_params_abstract implements openapi_api_params_interface{
/**
* 检查Params
* @param mixed $method method
* @param mixed $params 参数
* @param mixed $sub_msg sub_msg
* @return mixed 返回验证结果
*/
public function checkParams($method,$params,&$sub_msg){
if(parent::checkParams($method,$params,$sub_msg)){
return true;
}else{
return false;
}
}
/**
* 获取AppParams
* @param mixed $method method
* @return mixed 返回结果
*/
public function getAppParams($method){
$params = array(
'getList'=>array(
'create_starttime'=>array('type'=>'date','required'=>'true','name'=>'创建时间(开始)','desc'=>'例如2012-12-08 18:50:30'),
'create_endtime'=>array('type'=>'date','required'=>'false','name'=>'创建时间(结束)','desc'=>'例如2012-12-08 18:50:30'),
'ship_starttime'=>array('type'=>'date','required'=>'false','name'=>'发货时间(开始)','desc'=>'例如2012-12-08 18:50:30'),
'ship_endtime'=>array('type'=>'date','required'=>'false','name'=>'发货时间(结束)','desc'=>'例如2012-12-08 18:50:30'),
'branch_name'=>array('type'=>'string','required'=>'false','name'=>'仓库'),
'shop_name'=>array('type'=>'string','required'=>'false','name'=>'来源店铺'),
'receive_area'=>array('type'=>'string','required'=>'false','name'=>'收货地区'),
'corp_name'=>array('type'=>'string','required'=>'false','name'=>'快递公司'),
),
);
return $params[$method];
}
/**
* description
* @param mixed $method method
* @return mixed 返回值
*/
public function description($method){
$description = array(
'getList'=>array('name'=>'发货单接口','description'=>'获取指定条件下的发货单列表'));
return $description[$method];
}
}