mirror of
https://gitee.com/blackfox/geekai.git
synced 2024-12-02 04:07:41 +08:00
18 lines
356 B
Go
18 lines
356 B
Go
package handler
|
|
|
|
import (
|
|
"chatplus/service"
|
|
"chatplus/service/payment"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type TestHandler struct {
|
|
db *gorm.DB
|
|
snowflake *service.Snowflake
|
|
js *payment.PayJS
|
|
}
|
|
|
|
func NewTestHandler(db *gorm.DB, snowflake *service.Snowflake, js *payment.PayJS) *TestHandler {
|
|
return &TestHandler{db: db, snowflake: snowflake, js: js}
|
|
}
|