src/Biz/Course/Service/CourseSetService.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

namespace Biz\Course\Service;

use Biz\User\UserException;
use Biz\System\Annotation\Log;

interface CourseSetService
{
    const NONE_SERIALIZE_MODE = 'none';
    const SERIALIZE_SERIALIZE_MODE = 'serialized';
    const FINISH_SERIALIZE_MODE = 'finished';

    const DRAFT_STATUS = 'draft';
    const PUBLISH_STATUS = 'published';
    const CLOSE_STATUS = 'closed';

    const NORMAL_TYPE = 'normal';
    const LIVE_TYPE = 'live';

    /**
     * collect course set.
     *
     * @param  $id
     *
     * @throws UserException
     *
     * @return bool
     */
    public function favorite($id);

    /**
     * cancel collected course set.
     *
     * @param  $id
     *
     * @throws UserException
     *
     * @return bool
     */
    public function unfavorite($id);

    /**
     * @param int $userId
     * @param int $courseSetId
     *
     * @return bool
     */
    public function isUserFavorite($userId, $courseSetId);

    public function tryManageCourseSet($id);

    public function hasCourseSetManageRole($courseSetId = 0);

    /**
     * @param int $userId
     *
     * @return int
     */
    public function countUserLearnCourseSets($userId);

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。