geekai/api/handler/test_handler.go

18 lines
356 B
Go
Raw Normal View History

2023-12-08 19:43:13 +08:00
package handler
import (
"chatplus/service"
2024-01-07 14:36:02 +08:00
"chatplus/service/payment"
2023-12-29 17:39:37 +08:00
"gorm.io/gorm"
2023-12-08 19:43:13 +08:00
)
type TestHandler struct {
db *gorm.DB
snowflake *service.Snowflake
2024-01-07 14:36:02 +08:00
js *payment.PayJS
2023-12-08 19:43:13 +08:00
}
2024-01-07 14:36:02 +08:00
func NewTestHandler(db *gorm.DB, snowflake *service.Snowflake, js *payment.PayJS) *TestHandler {
return &TestHandler{db: db, snowflake: snowflake, js: js}
2023-12-08 19:43:13 +08:00
}