mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-19 09:46:39 +08:00
Merge branch 'ui' of 172.28.1.6:yangjian/chatgpt-plus into ui
This commit is contained in:
commit
d00a3167c0
@ -5,7 +5,6 @@ import (
|
|||||||
"chatplus/core/types"
|
"chatplus/core/types"
|
||||||
"chatplus/handler"
|
"chatplus/handler"
|
||||||
"chatplus/store/model"
|
"chatplus/store/model"
|
||||||
"chatplus/utils"
|
|
||||||
"chatplus/utils/resp"
|
"chatplus/utils/resp"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/shopspring/decimal"
|
"github.com/shopspring/decimal"
|
||||||
@ -33,11 +32,6 @@ type statsVo struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *DashboardHandler) Stats(c *gin.Context) {
|
func (h *DashboardHandler) Stats(c *gin.Context) {
|
||||||
if err := utils.CheckPermission(c, h.db); err != nil {
|
|
||||||
resp.NotPermission(c)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
stats := statsVo{}
|
stats := statsVo{}
|
||||||
// new users statistic
|
// new users statistic
|
||||||
var userCount int64
|
var userCount int64
|
||||||
|
Loading…
Reference in New Issue
Block a user