mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 19:05:34 +08:00
60 lines
2.1 KiB
PHP
60 lines
2.1 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class openapi_api_params_v1_member 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(
|
||
'add'=>array(
|
||
'uname' => array('type'=>'string', 'required'=>'true', 'name'=>'会员名'),
|
||
'name' => array('type'=>'string', 'required'=>'true', 'name'=>'会员昵称'),
|
||
'shop_bn' => array('type'=>'string', 'required'=>'true', 'name'=>'店铺编码'),
|
||
// 'buyer_open_uid' => array('type'=>'string', 'required'=>'true', 'name'=>'买家open_uid'),
|
||
),
|
||
'edit'=>array(
|
||
'uname' => array('type'=>'string', 'required'=>'true', 'name'=>'会员名'),
|
||
'name' => array('type'=>'string', 'required'=>'true', 'name'=>'会员昵称'),
|
||
'shop_bn' => array('type'=>'string', 'required'=>'true', 'name'=>'店铺编码'),
|
||
// 'buyer_open_uid' => array('type'=>'string', 'required'=>'true', 'name'=>'买家open_uid'),
|
||
),
|
||
);
|
||
|
||
return $params[$method];
|
||
}
|
||
|
||
/**
|
||
* description
|
||
* @param mixed $method method
|
||
* @return mixed 返回值
|
||
*/
|
||
public function description($method){
|
||
$desccription = array(
|
||
'add'=>array('name'=>'新建会员','description'=>'新建会员'),
|
||
'edit'=>array('name'=>'编辑会员','description'=>'编辑会员'),
|
||
);
|
||
return $desccription[$method];
|
||
}
|
||
} |