完成教学案例和视频案例后端
This commit is contained in:
@@ -24,6 +24,7 @@ type UpdateTeachingCaseLogic struct {
|
||||
func NewUpdateTeachingCaseLogic(ctx context.Context, cfg *config.Config, model model.TeachingCaseModel) *UpdateTeachingCaseLogic {
|
||||
return &UpdateTeachingCaseLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ type DeleteTeachingCaseReq struct {
|
||||
}
|
||||
|
||||
type GetTeachingCaseReq struct {
|
||||
Id int `json:"id" validate:"required" uri:"id"` // 案例ID
|
||||
Id int `json:"id" path:"id" validate:"required" uri:"id"` // 案例ID
|
||||
}
|
||||
|
||||
type ListTeachingCaseReq struct {
|
||||
|
||||
Reference in New Issue
Block a user