소스 검색

增加查询游戏信息

alexzy 4 년 전
부모
커밋
1a3a283c90
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. 16 0
      src/GameServiceInterface.php

+ 16 - 0
src/GameServiceInterface.php

@@ -0,0 +1,16 @@
+<?php
+
+
+namespace Yxy\Service;
+
+
+interface GameServiceInterface
+{
+    /**
+     * 根据游戏ID获取游戏信息
+     * @param int $id
+     * @param array $field
+     * @return mixed
+     */
+    public function getById(int $id, array $field = ['*']): array;
+}