repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/watcher.php | user-srv/config/autoload/watcher.php | <?php
declare(strict_types=1);
use Hyperf\Watcher\Driver\ScanFileDriver;
return [
'driver' => ScanFileDriver::class,
'bin' => 'php',
'watch' => [
'dir' => ['app', 'config'],
'file' => ['.env'],
'scan_interval' => 2000,
],
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/processes.php | user-srv/config/autoload/processes.php | <?php
declare(strict_types=1);
return [
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/config_center.php | user-srv/config/autoload/config_center.php | <?php
declare(strict_types=1);
use Hyperf\ConfigCenter\Mode;
return [
'enable' => (bool) env('CONFIG_CENTER_ENABLE', true),
'driver' => env('CONFIG_CENTER_DRIVER', 'nacos'),
'mode' => env('CONFIG_CENTER_MODE', Mode::PROCESS),
'drivers' => [
'nacos' => [
'driver' => Hyperf\ConfigNa... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/tracer.php | user-srv/config/autoload/tracer.php | <?php
/**
* @user: DoubleJin
* @date: 2022/5/25
* @create: 11:29
*/
return [
// 选择默认的 Tracer
'default' => env('TRACER_DRIVER', 'jaeger'),
// 这里的代码演示不对 enable 内的配置进行展开
'enable' => [],
'tracer' => [
// Zipkin 驱动配置
'zipkin' => [
// 当前应用的配置
'app' => [
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/config/autoload/auth.php | user-srv/config/autoload/auth.php | <?php
declare(strict_types=1);
/**
* This file is part of qbhy/hyperf-auth.
*
* @link https://github.com/qbhy/hyperf-auth
* @document https://github.com/qbhy/hyperf-auth/blob/master/README.md
* @contact qbhy0715@qq.com
* @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
*/
use Qbhy\SimpleJw... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/seeders/user_stored_log_seeder.php | user-srv/seeders/user_stored_log_seeder.php | <?php
declare(strict_types=1);
use Hyperf\Database\Seeders\Seeder;
class UserStoredLogSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
for ($i = 0;$i <20;$i++){
\Hyperf\DbConnection\Db::table('user_stored_log')->inse... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/seeders/user_bonus_log_seeder.php | user-srv/seeders/user_bonus_log_seeder.php | <?php
declare(strict_types=1);
use Hyperf\Database\Seeders\Seeder;
class UserBonusLogSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
for ($i = 0;$i <20;$i++){
\Hyperf\DbConnection\Db::table('user_bonus_log')->insert... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/user-srv/seeders/user_seeder.php | user-srv/seeders/user_seeder.php | <?php
declare(strict_types=1);
use Hyperf\Database\Seeders\Seeder;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
\Hyperf\DbConnection\Db::table('user')->insert([
'user_name' => 'DoubleJin',
'... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Log.php | task-srv/app/Log.php | <?php
/**
* @user: DoubleJin
* @date: 2022/5/26
* @create: 14:54
*/
namespace App;
use Hyperf\Logger\LoggerFactory;
use Hyperf\Utils\ApplicationContext;
class Log
{
public static function get(string $name = 'app')
{
return ApplicationContext::getContainer()->get(LoggerFactory::class)->get($name);... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Model/Model.php | task-srv/app/Model/Model.php | <?php
declare(strict_types=1);
namespace App\Model;
use Hyperf\DbConnection\Model\Model as BaseModel;
use Hyperf\ModelCache\Cacheable;
use Hyperf\ModelCache\CacheableInterface;
abstract class Model extends BaseModel implements CacheableInterface
{
use Cacheable;
}
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Process/AsyncQueueConsumer.php | task-srv/app/Process/AsyncQueueConsumer.php | <?php
declare(strict_types=1);
namespace App\Process;
use Hyperf\AsyncQueue\Process\ConsumerProcess;
use Hyperf\Process\Annotation\Process;
#[Process]
class AsyncQueueConsumer extends ConsumerProcess
{
}
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Controller/IndexController.php | task-srv/app/Controller/IndexController.php | <?php
declare(strict_types=1);
namespace App\Controller;
class IndexController extends AbstractController
{
public function index()
{
$user = $this->request->input('user', 'Hyperf');
$method = $this->request->getMethod();
return [
'method' => $method,
'message... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Controller/AbstractController.php | task-srv/app/Controller/AbstractController.php | <?php
declare(strict_types=1);
namespace App\Controller;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Contract\ResponseInterface;
use Psr\Container\ContainerInterface;
abstract class AbstractController
{
#[Inject]
protected ContainerInterface $conta... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Amqp/Consumer/UserConsumer.php | task-srv/app/Amqp/Consumer/UserConsumer.php | <?php
declare(strict_types=1);
namespace App\Amqp\Consumer;
use App\Log;
use Hyperf\Amqp\Result;
use Hyperf\Amqp\Annotation\Consumer;
use Hyperf\Amqp\Message\ConsumerMessage;
use PhpAmqpLib\Message\AMQPMessage;
/**
* 用户订阅消息消费者
* Class UserConsumer
* @package App\Amqp\Consumer
*/
#[Consumer(exchange: 'user', rou... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Amqp/Consumer/OrderConsumer.php | task-srv/app/Amqp/Consumer/OrderConsumer.php | <?php
declare(strict_types=1);
namespace App\Amqp\Consumer;
use App\Log;
use Hyperf\Amqp\Result;
use Hyperf\Amqp\Annotation\Consumer;
use Hyperf\Amqp\Message\ConsumerMessage;
use PhpAmqpLib\Message\AMQPMessage;
/**
* 订单订阅消息消费者
* Class OrderConsumer
* @package App\Amqp\Consumer
*/
#[Consumer(exchange: 'order', r... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Exception/Handler/AppExceptionHandler.php | task-srv/app/Exception/Handler/AppExceptionHandler.php | <?php
declare(strict_types=1);
namespace App\Exception\Handler;
use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\ExceptionHandler\ExceptionHandler;
use Hyperf\HttpMessage\Stream\SwooleStream;
use Psr\Http\Message\ResponseInterface;
use Throwable;
class AppExceptionHandler extends ExceptionHandler
{
public ... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Listener/DbQueryExecutedListener.php | task-srv/app/Listener/DbQueryExecutedListener.php | <?php
declare(strict_types=1);
namespace App\Listener;
use Hyperf\Database\Events\QueryExecuted;
use Hyperf\Event\Annotation\Listener;
use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Logger\LoggerFactory;
use Hyperf\Utils\Arr;
use Hyperf\Utils\Str;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInte... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Listener/QueueHandleListener.php | task-srv/app/Listener/QueueHandleListener.php | <?php
declare(strict_types=1);
namespace App\Listener;
use Hyperf\AsyncQueue\AnnotationJob;
use Hyperf\AsyncQueue\Event\AfterHandle;
use Hyperf\AsyncQueue\Event\BeforeHandle;
use Hyperf\AsyncQueue\Event\Event;
use Hyperf\AsyncQueue\Event\FailedHandle;
use Hyperf\AsyncQueue\Event\RetryHandle;
use Hyperf\Event\Annotat... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/app/Command/TestCommand.php | task-srv/app/Command/TestCommand.php | <?php
declare(strict_types=1);
namespace App\Command;
use App\Log;
use Hyperf\Command\Command as HyperfCommand;
use Psr\Container\ContainerInterface;
use Hyperf\Command\Annotation\Command;
#[Command]
class TestCommand extends HyperfCommand
{
/**
* @var ContainerInterface
*/
protected $container;
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/test/HttpTestCase.php | task-srv/test/HttpTestCase.php | <?php
declare(strict_types=1);
namespace HyperfTest;
use Hyperf\Testing\Client;
use PHPUnit\Framework\TestCase;
/**
* Class HttpTestCase.
* @method get($uri, $data = [], $headers = [])
* @method post($uri, $data = [], $headers = [])
* @method json($uri, $data = [], $headers = [])
* @method file($uri, $data = [... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/test/bootstrap.php | task-srv/test/bootstrap.php | <?php
declare(strict_types=1);
ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');
error_reporting(E_ALL);
date_default_timezone_set('Asia/Shanghai');
! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_A... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/test/Cases/ExampleTest.php | task-srv/test/Cases/ExampleTest.php | <?php
declare(strict_types=1);
namespace HyperfTest\Cases;
use HyperfTest\HttpTestCase;
/**
* @internal
* @coversNothing
*/
class ExampleTest extends HttpTestCase
{
public function testExample()
{
$this->assertTrue(true);
$this->assertTrue(is_array($this->get('/')));
}
}
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/bin/hyperf.php | task-srv/bin/hyperf.php | #!/usr/bin/env php
<?php
ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');
ini_set('memory_limit', '1G');
error_reporting(E_ALL);
! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL);
require BASE_P... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/config.php | task-srv/config/config.php | <?php
declare(strict_types=1);
use Hyperf\Contract\StdoutLoggerInterface;
use Psr\Log\LogLevel;
return [
'app_name' => env('APP_NAME', 'skeleton'),
'app_env' => env('APP_ENV', 'dev'),
'scan_cacheable' => env('SCAN_CACHEABLE', false),
StdoutLoggerInterface::class => [
'log_level' => [
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/routes.php | task-srv/config/routes.php | <?php
declare(strict_types=1);
use Hyperf\HttpServer\Router\Router;
Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');
Router::get('/favicon.ico', function () {
return '';
});
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/container.php | task-srv/config/container.php | <?php
/**
* Initialize a dependency injection container that implemented PSR-11 and return the container.
*/
declare(strict_types=1);
use Hyperf\Di\Container;
use Hyperf\Di\Definition\DefinitionSourceFactory;
use Hyperf\Utils\ApplicationContext;
$container = new Container((new DefinitionSourceFactory(true))());
i... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/nacos.php | task-srv/config/autoload/nacos.php | <?php
declare(strict_types=1);
return [
// nacos server url like https://nacos.hyperf.io, Priority is higher than host:port
// 'url' => '',
// The nacos host info
'host' => env('NACOS_HOST'),
'port' => env('NACOS_PORT'),
// The nacos account info
'username' => env('NACOS_USERNAME'),
'p... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/commands.php | task-srv/config/autoload/commands.php | <?php
declare(strict_types=1);
return [
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/logger.php | task-srv/config/autoload/logger.php | <?php
declare(strict_types=1);
return [
'default' => [
'handler' => [
'class' => Monolog\Handler\RotatingFileHandler::class,
'constructor' => [
'filename' => BASE_PATH . '/runtime/logs/hyperf.log',
'level' => Monolog\Logger::DEBUG,
],
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/listeners.php | task-srv/config/autoload/listeners.php | <?php
declare(strict_types=1);
return [
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/devtool.php | task-srv/config/autoload/devtool.php | <?php
declare(strict_types=1);
return [
'generator' => [
'amqp' => [
'consumer' => [
'namespace' => 'App\\Amqp\\Consumer',
],
'producer' => [
'namespace' => 'App\\Amqp\\Producer',
],
],
'aspect' => [
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/cache.php | task-srv/config/autoload/cache.php | <?php
declare(strict_types=1);
return [
'default' => [
'driver' => Hyperf\Cache\Driver\RedisDriver::class,
'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class,
'prefix' => 'c:',
],
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/middlewares.php | task-srv/config/autoload/middlewares.php | <?php
declare(strict_types=1);
return [
'http' => [
],
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/annotations.php | task-srv/config/autoload/annotations.php | <?php
declare(strict_types=1);
return [
'scan' => [
'paths' => [
BASE_PATH . '/app',
],
'ignore_annotations' => [
'mixin',
],
],
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/aspects.php | task-srv/config/autoload/aspects.php | <?php
declare(strict_types=1);
return [
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/dependencies.php | task-srv/config/autoload/dependencies.php | <?php
declare(strict_types=1);
return [
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/amqp.php | task-srv/config/autoload/amqp.php | <?php
declare(strict_types=1);
return [
'default' => [
'host' => env('AMQP_HOST', 'localhost'),
'port' => (int) env('AMQP_PORT', 5672),
'user' => env('AMQP_USER', 'guest'),
'password' => env('AMQP_PASSWORD', 'guest'),
'vhost' => env('AMQP_VHOST', '/'),
'concurrent' ... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/redis.php | task-srv/config/autoload/redis.php | <?php
declare(strict_types=1);
return [
'default' => [
'host' => env('REDIS_HOST', 'localhost'),
'auth' => env('REDIS_AUTH', null),
'port' => (int) env('REDIS_PORT', 6379),
'db' => (int) env('REDIS_DB', 0),
'pool' => [
'min_connections' => 1,
'max_co... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/server.php | task-srv/config/autoload/server.php | <?php
declare(strict_types=1);
use Hyperf\Server\Event;
use Hyperf\Server\Server;
use Swoole\Constant;
return [
'mode' => SWOOLE_PROCESS,
'servers' => [
[
'name' => 'http',
'type' => Server::SERVER_HTTP,
'host' => '0.0.0.0',
'port' => 9506,
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/databases.php | task-srv/config/autoload/databases.php | <?php
declare(strict_types=1);
return [
'default' => [
'driver' => env('DB_DRIVER', 'mysql'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 3306),
'database' => env('DB_DATABASE', 'hyperf'),
'username' => env('DB_USERNAME', 'root'),
'password' => e... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/opentracing.php | task-srv/config/autoload/opentracing.php | <?php
declare(strict_types=1);
use Zipkin\Samplers\BinarySampler;
return [
'default' => env('TRACER_DRIVER', 'zipkin'),
'enable' => [
'guzzle' => env('TRACER_ENABLE_GUZZLE', false),
'redis' => env('TRACER_ENABLE_REDIS', false),
'db' => env('TRACER_ENABLE_DB', false),
'method' ... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/exceptions.php | task-srv/config/autoload/exceptions.php | <?php
declare(strict_types=1);
return [
'handler' => [
'http' => [
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
App\Exception\Handler\AppExceptionHandler::class,
],
],
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/crontab.php | task-srv/config/autoload/crontab.php | <?php
/**
* @user: DoubleJin
* @date: 2022/6/23
* @create: 14:55
*/
use Hyperf\Crontab\Crontab;
return [
// 是否开启定时任务
'enable' => true,
'crontab' => [
(new Crontab())->setType('command')
->setName('TestCommand')
->setRule('* * * * *')->setCallback([
'comm... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/processes.php | task-srv/config/autoload/processes.php | <?php
declare(strict_types=1);
return [
Hyperf\Crontab\Process\CrontabDispatcherProcess::class,
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/config_center.php | task-srv/config/autoload/config_center.php | <?php
declare(strict_types=1);
use Hyperf\ConfigCenter\Mode;
return [
'enable' => (bool) env('CONFIG_CENTER_ENABLE', true),
'driver' => env('CONFIG_CENTER_DRIVER', 'nacos'),
'mode' => env('CONFIG_CENTER_MODE', Mode::PROCESS),
'drivers' => [
'nacos' => [
'driver' => Hyperf\ConfigNa... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/task-srv/config/autoload/async_queue.php | task-srv/config/autoload/async_queue.php | <?php
declare(strict_types=1);
return [
'default' => [
'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class,
'redis' => [
'pool' => 'default',
],
'channel' => '{queue}',
'timeout' => 2,
'retry_seconds' => 5,
'handle_timeout' => 10,
'pr... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/.watcher.php | file-srv/.watcher.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use Hyperf\Watcher\Driver\ScanFileDriver;
return [
'driver' => ScanFileDriver... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Log.php | file-srv/app/Log.php | <?php
/**
* @user: DoubleJin
* @date: 2022/5/26
* @create: 14:54
*/
namespace App;
use Hyperf\Logger\LoggerFactory;
use Hyperf\Utils\ApplicationContext;
class Log
{
public static function get(string $name = 'app')
{
return ApplicationContext::getContainer()->get(LoggerFactory::class)->get($name);... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Model/Model.php | file-srv/app/Model/Model.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace App\Model;
use Hyperf\DbConnection\Model\Model as BaseModel;
use Hyperf... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Controller/IndexController.php | file-srv/app/Controller/IndexController.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace App\Controller;
class IndexController extends AbstractController
{
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Controller/AbstractController.php | file-srv/app/Controller/AbstractController.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace App\Controller;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Services/FileService.php | file-srv/app/Services/FileService.php | <?php
namespace App\Services;
use App\Exception\JsonRpcException;
use App\Log;
/**
* 文件service
* Class UserService
* @package App\Services
*/
class FileService
{
/**
* 上传文件
* @param $type 文件类型
* @param $base64string base64数据
* @param $fileName 文件名
* @return array|mixed[]
*/
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/JsonRpc/FileRpcService.php | file-srv/app/JsonRpc/FileRpcService.php | <?php
/**
* @user: DoubleJin
* @date: 2022/5/24
* @create: 09:31
*/
namespace App\JsonRpc;
use App\Services\AuthService;
use App\Services\FileService;
use Hyperf\RpcServer\Annotation\RpcService;
use App\Services\UserService;
use Hyperf\Di\Annotation\Inject;
/**
* 文件rpc服务
* Class OrderRpcService
* @package App... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/JsonRpc/FileRpcServiceInterface.php | file-srv/app/JsonRpc/FileRpcServiceInterface.php | <?php
/**
* @user: DoubleJin
* @date: 2022/12/20
* @create: 09:31
*/
namespace App\JsonRpc;
interface FileRpcServiceInterface
{
public function uploadFile(string $type, string $base64string, string $fileName): array;
} | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Exception/BusinessException.php | file-srv/app/Exception/BusinessException.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace App\Exception;
use App\Constants\ErrorCode;
use Hyperf\Server\Exception... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Exception/JsonRpcException.php | file-srv/app/Exception/JsonRpcException.php | <?php
declare(strict_types=1);
namespace App\Exception;
use App\Constants\ErrorCode;
use Hyperf\Server\Exception\ServerException;
use Throwable;
class JsonRpcException extends ServerException
{
public function __construct(int $code = 0, string $message = null, Throwable $previous = null)
{
if (is_nu... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Exception/Handler/AppExceptionHandler.php | file-srv/app/Exception/Handler/AppExceptionHandler.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace App\Exception\Handler;
use Hyperf\Contract\StdoutLoggerInterface;
use H... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Listener/DbQueryExecutedListener.php | file-srv/app/Listener/DbQueryExecutedListener.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace App\Listener;
use Hyperf\Database\Events\QueryExecuted;
use Hyperf\Even... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Listener/ResumeExitCoordinatorListener.php | file-srv/app/Listener/ResumeExitCoordinatorListener.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace App\Listener;
use Hyperf\Command\Event\AfterExecute;
use Hyperf\Coordin... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/app/Constants/ErrorCode.php | file-srv/app/Constants/ErrorCode.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace App\Constants;
use Hyperf\Constants\AbstractConstants;
use Hyperf\Const... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/test/HttpTestCase.php | file-srv/test/HttpTestCase.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace HyperfTest;
use Hyperf\Testing\Client;
use PHPUnit\Framework\TestCase;
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/test/bootstrap.php | file-srv/test/bootstrap.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');
error_r... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/test/Cases/ExampleTest.php | file-srv/test/Cases/ExampleTest.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace HyperfTest\Cases;
use HyperfTest\HttpTestCase;
/**
* @internal
* @co... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/bin/hyperf.php | file-srv/bin/hyperf.php | #!/usr/bin/env php
<?php
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');
ini_set('memory... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/config.php | file-srv/config/config.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use Hyperf\Contract\StdoutLoggerInterface;
use Psr\Log\LogLevel;
return [
'ap... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/routes.php | file-srv/config/routes.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use Hyperf\HttpServer\Router\Router;
Router::addRoute(['GET', 'POST', 'HEAD'], '/... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/container.php | file-srv/config/container.php | <?php
/**
* Initialize a dependency injection container that implemented PSR-11 and return the container.
*/
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/b... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/nacos.php | file-srv/config/autoload/nacos.php | <?php
declare(strict_types=1);
return [
// nacos server url like https://nacos.hyperf.io, Priority is higher than host:port
// 'url' => '',
// The nacos host info
'host' => env('NACOS_HOST'),
'port' => env('NACOS_PORT'),
// The nacos account info
'username' => env('NACOS_USERNAME'),
'p... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/commands.php | file-srv/config/autoload/commands.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/logger.php | file-srv/config/autoload/logger.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'default' => [
'handler' => [
'class' => Monolog\... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/listeners.php | file-srv/config/autoload/listeners.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
Hyperf\ExceptionHandler\Listener\ErrorExceptionHandler::class,
Hy... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/devtool.php | file-srv/config/autoload/devtool.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'generator' => [
'amqp' => [
'consumer' => [
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/cache.php | file-srv/config/autoload/cache.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'default' => [
'driver' => Hyperf\Cache\Driver\RedisDriver::c... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/middlewares.php | file-srv/config/autoload/middlewares.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'http' => [
],
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/annotations.php | file-srv/config/autoload/annotations.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'scan' => [
'paths' => [
BASE_PATH . '/app',
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/file.php | file-srv/config/autoload/file.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'default' => 'local',
'storage' => [
'local' => [
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/aspects.php | file-srv/config/autoload/aspects.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/services.php | file-srv/config/autoload/services.php | <?php
/**
* @user: DoubleJin
* @date: 2022/5/24
* @create: 09:35
*/
return [
'enable' => [
// 开启服务发现
'discovery' => true,
// 开启服务注册
'register' => true,
],
// 服务消费者相关配置
'consumers' => [],
// 服务提供者相关配置
'providers' => [],
// 服务驱动相关配置
'drivers' => [
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/dependencies.php | file-srv/config/autoload/dependencies.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/redis.php | file-srv/config/autoload/redis.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'default' => [
'host' => env('REDIS_HOST', 'localhost'),
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/server.php | file-srv/config/autoload/server.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use Hyperf\Server\Event;
use Hyperf\Server\Server;
use Swoole\Constant;
return [
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/databases.php | file-srv/config/autoload/databases.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'default' => [
'driver' => env('DB_DRIVER', 'mysql'),
... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/opentracing.php | file-srv/config/autoload/opentracing.php | <?php
declare(strict_types=1);
use Zipkin\Samplers\BinarySampler;
return [
'default' => env('TRACER_DRIVER', 'zipkin'),
'enable' => [
'guzzle' => env('TRACER_ENABLE_GUZZLE', false),
'redis' => env('TRACER_ENABLE_REDIS', false),
'db' => env('TRACER_ENABLE_DB', false),
'method' ... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/exceptions.php | file-srv/config/autoload/exceptions.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'handler' => [
'http' => [
Hyperf\HttpServer\Exce... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/processes.php | file-srv/config/autoload/processes.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
];
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/file-srv/config/autoload/config_center.php | file-srv/config/autoload/config_center.php | <?php
declare(strict_types=1);
use Hyperf\ConfigCenter\Mode;
return [
'enable' => (bool) env('CONFIG_CENTER_ENABLE', true),
'driver' => env('CONFIG_CENTER_DRIVER', 'nacos'),
'mode' => env('CONFIG_CENTER_MODE', Mode::PROCESS),
'drivers' => [
'nacos' => [
'driver' => Hyperf\ConfigNa... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Log.php | api-gateway/app/Log.php | <?php
/**
* @user: DoubleJin
* @date: 2022/5/26
* @create: 14:54
*/
namespace App;
use Hyperf\Logger\LoggerFactory;
use Hyperf\Utils\ApplicationContext;
class Log
{
public static function get(string $name = 'app')
{
return ApplicationContext::getContainer()->get(LoggerFactory::class)->get($name);... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Model/Model.php | api-gateway/app/Model/Model.php | <?php
declare (strict_types=1);
namespace App\Model;
use Hyperf\DbConnection\Model\Model as BaseModel;
use Hyperf\ModelCache\Cacheable;
use Hyperf\ModelCache\CacheableInterface;
abstract class Model extends BaseModel implements CacheableInterface
{
use Cacheable;
} | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Process/AsyncQueueConsumer.php | api-gateway/app/Process/AsyncQueueConsumer.php | <?php
declare(strict_types=1);
namespace App\Process;
use Hyperf\AsyncQueue\Process\ConsumerProcess;
use Hyperf\Process\Annotation\Process;
/**
* @Process
*/
class AsyncQueueConsumer extends ConsumerProcess
{
}
| php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Kernel/Functions.php | api-gateway/app/Kernel/Functions.php | <?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://doc.hyperf.io
* @contact group@hyperf.io
*/
use GuzzleHttp\Exception\GuzzleException;
use Hyperf\Redis\Redis;
use Hyperf\Logger\LoggerFactory;
use Hyperf\Utils\ApplicationContext;
use Hype... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Controller/CircuitBreakerController.php | api-gateway/app/Controller/CircuitBreakerController.php | <?php
declare(strict_types=1);
namespace App\Controller;
use App\Services\UserService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\CircuitBreaker\Annotation\CircuitBreaker;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
/**
* 服务降级控制器
* Class CircuitBreakerController
* @... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Controller/ConfigController.php | api-gateway/app/Controller/ConfigController.php | <?php
declare(strict_types=1);
namespace App\Controller;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Contract\RequestInterface;
/**
* 配置控制器
* Class ConfigController
* @package App\Controller
*/
#[Controller(prefix: '/Config')]
class ConfigContr... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Controller/OrderController.php | api-gateway/app/Controller/OrderController.php | <?php
declare(strict_types=1);
namespace App\Controller;
use App\Services\OrderService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Annotation\PostMapping;
use Hyperf\HttpServer\Contract\RequestInterface;
/**
* 订单控... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Controller/UserController.php | api-gateway/app/Controller/UserController.php | <?php
declare(strict_types=1);
namespace App\Controller;
use App\Services\UserService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Contract\RequestInterface;
/**
* 用户控制器
* Class UserController
* @package App\Cont... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Controller/RateLimitController.php | api-gateway/app/Controller/RateLimitController.php | <?php
declare(strict_types=1);
namespace App\Controller;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\RateLimit\Annotation\RateLimit;
/**
* 限流控制器
* Class RateLimitController
* @package App\Controller
*/
#[Controller(prefix: '/RateLimit')]
class RateLimitCo... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Controller/AuthController.php | api-gateway/app/Controller/AuthController.php | <?php
declare(strict_types=1);
namespace App\Controller;
use App\Middleware\UserAuthMiddleware;
use App\Services\AuthService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Annotation\Middleware;
use Hyperf\HttpServer\C... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Controller/CommonController.php | api-gateway/app/Controller/CommonController.php | <?php
namespace App\Controller;
/**
* 通用控制器
* Class CommonController
* @package App\Controller
*/
class CommonController extends AbstractController
{
public function success($data = [])
{
return $this->response->json(responseSuccess(200, '', $data));
}
} | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Controller/AbstractController.php | api-gateway/app/Controller/AbstractController.php | <?php
declare(strict_types=1);
namespace App\Controller;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Contract\ResponseInterface;
use Psr\Container\ContainerInterface;
abstract class AbstractController
{
#[Inject]
protected ContainerInterface $conta... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Controller/FileController.php | api-gateway/app/Controller/FileController.php | <?php
declare(strict_types=1);
namespace App\Controller;
use App\Services\FileService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\PostMapping;
use Hyperf\HttpServer\Contract\RequestInterface;
/**
* 文件控制器
* Class FileController
* @package App\Con... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Double-Jin/jin-microservices | https://github.com/Double-Jin/jin-microservices/blob/15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a/api-gateway/app/Services/AuthService.php | api-gateway/app/Services/AuthService.php | <?php
namespace App\Services;
use App\Exception\ServiceException;
use App\JsonRpc\UserRpcServiceInterface;
use App\Log;
use Hyperf\Di\Annotation\Inject;
use Swoole\Coroutine;
/**
* 用户权限service
* Class AuthService
* @package App\Services
*/
class AuthService
{
/**
* 注入UserRpcServiceInterface
* @va... | php | MIT | 15c02c8d0bb68ee4f326c249dc3dfeb144b6c81a | 2026-01-05T02:43:47.435515Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.