|
@@ -18,6 +18,23 @@ func NewSynthesis() *Synthesis {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// 统计用户相关信息
|
|
|
|
+func (s *Synthesis) UserList(ctx *gin.Context) {
|
|
|
|
+ var req entity.UserListReq
|
|
|
|
+ if err := ctx.ShouldBindJSON(&req); err != nil {
|
|
|
|
+ common.PackOkResult(ctx, code.ParamError)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ resp, err := s.sev.UserList(req)
|
|
|
|
+ if err != nil {
|
|
|
|
+ common.PackOkResult(ctx, err.Code)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ common.PackOkResult(ctx, code.OK, resp)
|
|
|
|
+}
|
|
|
|
+
|
|
// FindUserLogDaily 查询用户日活跃
|
|
// FindUserLogDaily 查询用户日活跃
|
|
func (s *Synthesis) FindUserLogDaily(ctx *gin.Context) {
|
|
func (s *Synthesis) FindUserLogDaily(ctx *gin.Context) {
|
|
var req entity.UserLogDailyReq
|
|
var req entity.UserLogDailyReq
|