blog/app/functions.php

14 lines
311 B
PHP
Raw Normal View History

2024-06-08 15:54:41 +08:00
<?php
/**
* Here is your custom functions.
*/
function show(bool $bool, string $msg, array $data = []):array
{
return ['result' => $bool, 'msg' => $msg, 'data' => $data];
}
function retData(int $code, string $msg, array $data = []):array
{
return ['code' => $code, 'msg' => $msg, 'data' => $data];
}