2023-12-08 19:43:13 +08:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
2024-01-03 18:06:10 +08:00
|
|
|
"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 {
|
2024-01-03 18:06:10 +08:00
|
|
|
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
|
|
|
}
|