mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-01 05:26:43 +08:00
45 lines
874 B
PHP
45 lines
874 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
/**
|
||
* 抽象类
|
||
*
|
||
* @author wangbiao@shopex.cn
|
||
* @version 2025.02.28
|
||
*/
|
||
abstract class ome_order_abstract
|
||
{
|
||
public $page_size = 100;
|
||
|
||
public function __construct()
|
||
{
|
||
//--
|
||
}
|
||
|
||
/**
|
||
* 成功输出
|
||
*
|
||
* @param string $msg
|
||
* @param string $data
|
||
* @return array
|
||
*/
|
||
final public function succ($msg='', $data=null)
|
||
{
|
||
return array('rsp'=>'succ', 'msg'=>$msg, 'data'=>$data);
|
||
}
|
||
|
||
/**
|
||
* 失败输出
|
||
*
|
||
* @param string $msg
|
||
* @param string $data
|
||
* @return array
|
||
*/
|
||
final public function error($error_msg, $data=null)
|
||
{
|
||
return array('rsp'=>'fail', 'msg'=>$error_msg, 'error_msg'=>$error_msg, 'data'=>$data);
|
||
}
|
||
} |