作者 liyuhang

gx

... ... @@ -8,8 +8,8 @@ use Throwable;
/**
* @notes: B端接口统一错误格式
* @author:wlj
* @date: 2022/6/2 16:32
* Class AsideGlobalException
* @package App\Exceptions
*/
class AsideGlobalException extends Exception
{
... ...
... ... @@ -8,8 +8,8 @@ use Throwable;
/**
* @notes: B端接口统一错误格式
* @author:wlj
* @date: 2022/6/2 16:32
* Class BsideGlobalException
* @package App\Exceptions
*/
class BsideGlobalException extends Exception
{
... ...
... ... @@ -7,17 +7,21 @@ use App\Exceptions\AsideGlobalException;
/**
* @notes: 逻辑层基类 控制器调用 统一返回 统一抛出异常
* @author:wlj
* @date: 2022/6/7 17:37
* Class BaseLogic
* @package App\Http\Logic\Aside
*/
class BaseLogic
{
protected $requestAll;
public function __construct()
{
$this->requestAll=request()->all();
}
/**
* @notes: 请简要描述方法功能
* @param array $data
* @return array
* @author:wlj
* @date: 2022/7/19 12:25
*/
public function success(array $data): array
{
... ... @@ -29,8 +33,6 @@ class BaseLogic
* @param string $code
* @param string $message
* @throws AsideGlobalException
* @author:wlj
* @date: 2022/7/19 12:28
*/
public function fail(string $code = Code::SYSTEM_ERROR, $message = "")
{
... ... @@ -40,8 +42,6 @@ class BaseLogic
/**
* @notes: 统一格式化分页返回
* @return array
* @author:wlj
* @date: 2022/7/11 15:34
*/
function getPageData($pagninate): array
{
... ...
... ... @@ -7,17 +7,19 @@ use App\Exceptions\BsideGlobalException;
/**
* @notes: 逻辑层基类 控制器调用 统一返回 统一抛出异常
* @author:wlj
* @date: 2022/6/7 17:37
*/
class BaseLogic
{
protected $requestAll;
public function __construct()
{
$this->requestAll = request()->all();
}
/**
* @notes: 请简要描述方法功能
* @param array $data
* @return array
* @author:wlj
* @date: 2022/7/19 12:25
*/
public function success(array $data): array
{
... ... @@ -29,8 +31,6 @@ class BaseLogic
* @param string $code
* @param string $message
* @throws BsideGlobalException
* @author:wlj
* @date: 2022/7/19 12:28
*/
public function fail(string $code = Code::SYSTEM_ERROR, $message = "")
{
... ...
... ... @@ -13,6 +13,8 @@ class User extends Base
{
use HasApiTokens, HasFactory, Notifiable;
protected $table = 'gl_project_user';
/**
* The attributes that are mass assignable.
*
... ...
... ... @@ -18,8 +18,6 @@ class EncryptUtils
* @param $iv
* @param string $algo
* @return string
* @author:wlj
* @date: 2022/6/10 15:03
*/
function openssl_en($data, $key, $iv, $algo = 'DES-EDE3-CBC')
{
... ...
... ... @@ -15,10 +15,8 @@ class HttpUtils
/**
* @notes: 异常处理
* @param \Illuminate\Http\Client\Response $response
* @return bool|void
* @return bool
* @throws BsideGlobalException
* @author:wlj
* @date: 2022/6/7 16:34
*/
public static function checkSuccess(Response $response)
{
... ...
<?php
/**
* @author:wlj
* @date: 2022/6/7 16:39
*/
namespace App\Utils;
use App\Enums\Common\Common;
... ...