package v1

import (
	"hotgo/internal/model/entity"

	"github.com/gogf/gf/v2/frame/g"
)

// 获取课程列表请求
type LessonListReq struct {
	g.Meta `path:"/lesson/list" method:"get" tags:"课程" summary:"获取课程列表"`
}

// 获取课程列表响应
type LessonListRes struct {
	List  []*entity.Lesson `json:"list" dc:"课程列表"`
	Total int              `json:"total" dc:"总数"`
}

// 查看课程详情请求
type LessonDetailReq struct {
	g.Meta `path:"/lesson/detail" method:"get" tags:"课程" summary:"查看课程详情"`
	Id     int64 `json:"id" v:"required#课程ID必填" dc:"课程ID"`
}

// 查看课程详情响应
type LessonDetailRes struct {
	Lesson *entity.Lesson `json:"lesson" dc:"课程"`
}
