
- 新增我的课程列表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 - 接口文档
58 lines
1006 B
Go
58 lines
1006 B
Go
// Package servmsg
|
|
// @Link https://github.com/bufanyun/hotgo
|
|
// @Copyright Copyright (c) 2023 HotGo CLI
|
|
// @Author Ms <133814250@qq.com>
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
package servmsg
|
|
|
|
import (
|
|
"hotgo/internal/library/network/tcp"
|
|
"hotgo/internal/model/input/sysin"
|
|
)
|
|
|
|
// CronDeleteReq 删除任务
|
|
type CronDeleteReq struct {
|
|
*sysin.CronDeleteInp
|
|
}
|
|
|
|
type CronDeleteRes struct {
|
|
tcp.ServerRes
|
|
}
|
|
|
|
// CronEditReq 编辑任务
|
|
type CronEditReq struct {
|
|
*sysin.CronEditInp
|
|
}
|
|
|
|
type CronEditRes struct {
|
|
tcp.ServerRes
|
|
}
|
|
|
|
// CronStatusReq 修改任务状态
|
|
type CronStatusReq struct {
|
|
*sysin.CronStatusInp
|
|
}
|
|
|
|
type CronStatusRes struct {
|
|
tcp.ServerRes
|
|
}
|
|
|
|
// CronOnlineExecReq 在线执行
|
|
type CronOnlineExecReq struct {
|
|
*sysin.OnlineExecInp
|
|
}
|
|
|
|
type CronOnlineExecRes struct {
|
|
tcp.ServerRes
|
|
}
|
|
|
|
// CronDispatchLogReq 调度日志
|
|
type CronDispatchLogReq struct {
|
|
*sysin.DispatchLogInp
|
|
}
|
|
|
|
type CronDispatchLogRes struct {
|
|
tcp.ServerRes
|
|
*sysin.DispatchLogModel
|
|
}
|