mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-05 08:13:22 +08:00
fix: 管理员活跃时间记录
This commit is contained in:
@@ -15,13 +15,14 @@ func NewBillingHandler(
|
||||
w *web.Web,
|
||||
usecase domain.BillingUsecase,
|
||||
auth *middleware.AuthMiddleware,
|
||||
active *middleware.ActiveMiddleware,
|
||||
) *BillingHandler {
|
||||
b := &BillingHandler{
|
||||
usecase: usecase,
|
||||
}
|
||||
|
||||
g := w.Group("/api/v1/billing")
|
||||
g.Use(auth.Auth())
|
||||
g.Use(auth.Auth(), active.Active("admin"))
|
||||
|
||||
g.GET("/chat/record", web.BindHandler(b.ListChatRecord, web.WithPage()))
|
||||
g.GET("/completion/record", web.BindHandler(b.ListCompletionRecord, web.WithPage()))
|
||||
|
||||
Reference in New Issue
Block a user