更新小程序API路径,统一为/api/miniprogram前缀,确保与后端一致性。同时,调整微信支付相关配置,增强系统的灵活性和可维护性。
This commit is contained in:
20
soul-api/internal/model/reading_progress.go
Normal file
20
soul-api/internal/model/reading_progress.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// ReadingProgress 对应表 reading_progress
|
||||
type ReadingProgress struct {
|
||||
ID int `gorm:"column:id;primaryKey;autoIncrement"`
|
||||
UserID string `gorm:"column:user_id;size:50"`
|
||||
SectionID string `gorm:"column:section_id;size:50"`
|
||||
Progress int `gorm:"column:progress"`
|
||||
Duration int `gorm:"column:duration"`
|
||||
Status string `gorm:"column:status;size:20"`
|
||||
CompletedAt *time.Time `gorm:"column:completed_at"`
|
||||
FirstOpenAt *time.Time `gorm:"column:first_open_at"`
|
||||
LastOpenAt *time.Time `gorm:"column:last_open_at"`
|
||||
CreatedAt time.Time `gorm:"column:created_at"`
|
||||
UpdatedAt time.Time `gorm:"column:updated_at"`
|
||||
}
|
||||
|
||||
func (ReadingProgress) TableName() string { return "reading_progress" }
|
||||
Reference in New Issue
Block a user