🎨 新增讲师相关接口(待完善)

This commit is contained in:
2025-07-20 03:07:42 +08:00
parent 48ddb72cf2
commit 70f65c96bd
10 changed files with 186 additions and 6 deletions

View File

@@ -66,3 +66,17 @@ type RegisterReq struct {
UserType int8 `json:"user_type" form:"user_type"`
UserLabel int64 `json:"user_label" form:"user_label"`
}
type ApplyTeacherReq struct {
UserId int `json:"user_id" form:"user_id" vd:"@:len($)>0; msg:'用户ID不能为空'"`
Phone string `json:"phone" form:"phone" vd:"@:len($)>0; msg:'手机号码不能为空'"`
NickName string `json:"nick_name" form:"nick_name" vd:"@:len($)>0; msg:'昵称不能为空'"`
Desc string `json:"desc" form:"desc" vd:"@:len($)>0; msg:'申请理由不能为空'"`
ExpectRate string `json:"expect_rate" form:"expect_rate" vd:"@:len($)>0; msg:'期望分成比例不能为空'"`
}
type GetTeacherApplyListReq struct {
request.PageInfo
Phone string `json:"phone" form:"phone"`
Nickname string `json:"nickname" form:"nickname"`
}