🎨 新增讲师关注功能

This commit is contained in:
2025-09-06 21:47:31 +08:00
parent 90bd42d488
commit 7bcc2370bd
7 changed files with 230 additions and 1 deletions

13
model/app/follow.go Normal file
View File

@@ -0,0 +1,13 @@
package app
import "git.echol.cn/loser/lckt/global"
type Follow struct {
global.GVA_MODEL
UserId uint `json:"userId" gorm:"comment:用户ID;uniqueIndex:idx_user_teacher"`
TeacherId uint `json:"teacherId" gorm:"comment:讲师ID;uniqueIndex:idx_user_teacher"`
}
func (Follow) TableName() string {
return "app_follow"
}