yl 59d31d4b47 feat: 添加我的课程模块功能
- 新增我的课程列表API接口
- 支持按学习状态筛选(全部/学习中/已完结)
- 支持分页查询
- 包含课程基本信息、学习进度等数据
- 添加Apifox接口文档配置指南

文件变更:
- server/api/admin/mycourse/mycourse.go - API接口定义
- server/internal/controller/admin/mycourse/mycourse.go - 控制器层
- server/internal/service/mycourse.go - 服务层(模拟数据)
- server/internal/router/admin.go - 路由配置
- docs/apifox_config.md - 接口文档
2025-07-28 15:30:04 +08:00

60 lines
2.0 KiB
Go

// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
"hotgo/api/servmsg"
"hotgo/internal/library/cron"
"hotgo/internal/library/network/tcp"
)
type (
ITCPServer interface {
// OnAuthSummary 获取授权信息
OnAuthSummary(ctx context.Context, req *servmsg.AuthSummaryReq)
// CronDelete 删除任务
CronDelete(ctx context.Context, in *servmsg.CronDeleteReq) (err error)
// CronEdit 编辑任务
CronEdit(ctx context.Context, in *servmsg.CronEditReq) (err error)
// CronStatus 修改任务状态
CronStatus(ctx context.Context, in *servmsg.CronStatusReq) (err error)
// CronOnlineExec 执行一次任务
CronOnlineExec(ctx context.Context, in *servmsg.CronOnlineExecReq) (err error)
// DispatchLog 查看调度日志
DispatchLog(ctx context.Context, in *servmsg.CronDispatchLogReq) (log *cron.Log, err error)
// OnExampleHello 一个tcp请求例子
OnExampleHello(ctx context.Context, req *servmsg.ExampleHelloReq)
// OnExampleRPCHello 一个rpc请求例子
OnExampleRPCHello(ctx context.Context, req *servmsg.ExampleRPCHelloReq) (res *servmsg.ExampleRPCHelloRes, err error)
// Instance 获取实例
Instance() *tcp.Server
// Start 启动服务
Start(ctx context.Context)
// Stop 关闭服务
Stop(ctx context.Context)
// DefaultInterceptor 默认拦截器
DefaultInterceptor(ctx context.Context, msg *tcp.Message) (err error)
// PreFilterInterceptor 预处理
PreFilterInterceptor(ctx context.Context, msg *tcp.Message) (err error)
}
)
var (
localTCPServer ITCPServer
)
func TCPServer() ITCPServer {
if localTCPServer == nil {
panic("implement not found for interface ITCPServer, forgot register?")
}
return localTCPServer
}
func RegisterTCPServer(i ITCPServer) {
localTCPServer = i
}