-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from Qsnh/dev
Dev
- Loading branch information
Showing
14 changed files
with
158 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Qsnh/meedu. | ||
* | ||
* (c) XiaoTeng <[email protected]> | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
namespace App\Http\Controllers\Api\V2; | ||
|
||
use App\Services\Base\Services\ConfigService; | ||
use App\Services\Base\Interfaces\ConfigServiceInterface; | ||
|
||
class OtherController extends BaseController | ||
{ | ||
|
||
/** | ||
* @var ConfigService | ||
*/ | ||
protected $configService; | ||
|
||
public function __construct(ConfigServiceInterface $configService) | ||
{ | ||
$this->configService = $configService; | ||
} | ||
|
||
/** | ||
* @OA\Get( | ||
* path="/other/userProtocol", | ||
* summary="用户协议", | ||
* tags={"其它"}, | ||
* @OA\Response( | ||
* description="",response=200, | ||
* @OA\JsonContent( | ||
* @OA\Property(property="code",type="integer",description="状态码"), | ||
* @OA\Property(property="message",type="string",description="消息"), | ||
* @OA\Property(property="data",type="string",description="用户协议内容"), | ||
* ) | ||
* ) | ||
* ) | ||
* | ||
* @return \Illuminate\Http\JsonResponse | ||
*/ | ||
public function userProtocol() | ||
{ | ||
$protocol = $this->configService->getMemberProtocol(); | ||
return $this->data($protocol); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.