34 lines
807 B
Go
34 lines
807 B
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"
|
||
|
v1 "hotgo/api/api/mycourse/v1"
|
||
|
)
|
||
|
|
||
|
type (
|
||
|
IMyCourse interface {
|
||
|
// GetList 获取我的课程列表
|
||
|
GetList(ctx context.Context, req *v1.MyCourseListReq) (res *v1.MyCourseListRes, err error)
|
||
|
}
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
localMyCourse IMyCourse
|
||
|
)
|
||
|
|
||
|
func MyCourse() IMyCourse {
|
||
|
if localMyCourse == nil {
|
||
|
panic("implement not found for interface IMyCourse, forgot register?")
|
||
|
}
|
||
|
return localMyCourse
|
||
|
}
|
||
|
|
||
|
func RegisterMyCourse(i IMyCourse) {
|
||
|
localMyCourse = i
|
||
|
}
|