36c506f4bf
- Introduced `note_audio` table for storing audio attachments related to notes. - Implemented audio upload endpoint in `Note` controller to handle audio file uploads. - Added sharing functionality with `note_share` table to manage share tokens and view counts. - Updated API routes to include endpoints for audio uploads and share creation. - Enhanced documentation to reflect new audio and sharing features.
36 lines
710 B
PHP
36 lines
710 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace app\note\controller\v1;
|
|
|
|
use app\api\common\Response;
|
|
use app\note\controller\BaseController;
|
|
use app\note\service\PlanningService;
|
|
use think\App;
|
|
|
|
/**
|
|
* 笔记模块元信息控制器
|
|
*/
|
|
class c extends BaseController
|
|
{
|
|
/**
|
|
* @var PlanningService
|
|
*/
|
|
protected $planningService;
|
|
|
|
public function __construct(App $app)
|
|
{
|
|
parent::__construct($app);
|
|
$this->planningService = new PlanningService();
|
|
}
|
|
|
|
/**
|
|
* 获取 note 模块接口规划概览
|
|
* GET /note/v1/meta/interfaces
|
|
*/
|
|
public function interfaces()
|
|
{
|
|
return Response::success($this->planningService->getModuleOverview());
|
|
}
|
|
}
|