<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2020/9/28
* Time: 14:47
*/
namespace app\common;
use think\exception\HttpResponseException;
use think\Request;
use think\Response;
class ApiResponse
{
public static $successCode = 200;
public static $errorCode = 400;
/**
* 构造函数
* ApiResponse constructor.
* @param int $code 返回码
* @param string $msg 返回信息
* @param array $data 返回数据
* @param array $header 设置跨域
*/
private function __construct($code = 0, $msg = "", $data = [], array $header
API接口通用返回类,TP通用
最新推荐文章于 2022-09-22 15:54:56 发布