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

79 lines
3.2 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.
*/
/**
* 退款单获取Lib类
*/
class openapi_api_params_v1_refunds 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(
'start_time' => array('type' => 'date', 'required' => 'true', 'name' => '开始时间(完成状态)', 'desc' => '例如2012-12-08 00:00:00'),
'end_time' => array('type' => 'date', 'required' => 'true', 'name' => '结束时间(完成状态)', 'desc' => '例如2012-12-08 23:59:59'),
'page_no' => array('type' => 'number', 'required' => 'false', 'name' => '页码', 'desc' => '默认1,第一页'),
'page_size' => array('type' => 'number', 'required' => 'false', 'name' => '每页数量', 'desc' => '最大100'),
),
'getDetailList' => array(
'start_time' => array('type' => 'date', 'required' => 'true', 'name' => '开始时间(完成状态)', 'desc' => '例如2012-12-08 00:00:00'),
'end_time' => array('type' => 'date', 'required' => 'true', 'name' => '结束时间(完成状态)', 'desc' => '例如2012-12-08 23:59:59'),
'page_no' => array('type' => 'number', 'required' => 'false', 'name' => '页码', 'desc' => '默认1,第一页'),
'page_size' => array('type' => 'number', 'required' => 'false', 'name' => '每页数量', 'desc' => '最大100'),
),
);
return $params[$method];
}
/**
* description
* @param mixed $method method
* @return mixed 返回值
*/
public function description($method)
{
$desccription = array(
'getList' => array('name' => '查询退款单明细', 'description' => '根据退款单创建时间来查询该时间段内的明细'),
'getDetailList' => array('name' => '查询退款单明细', 'description' => '根据退款单创建时间来查询该时间段内的明细')
);
return $desccription[$method];
}
}