feat(ECR-012–016): 合规、题库、时辰刷新、头像、MBTI OEJTS 与埋点
落地输入合规、探索题库、报告日/时辰刷新、账号头像、OEJTS 量表,并补齐 H5 埋点与 Admin 漏斗;同步 ESS 工件、切至自建 Git、清理 GitHub Actions。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -76,3 +76,12 @@ func (s *Service) Get(ctx context.Context, userID uuid.UUID) (*Me, error) {
|
||||
AskQuotaLeft: row.AskQuotaLeft,
|
||||
}, nil
|
||||
}
|
||||
|
||||
// IsActive reports whether the user has an active成长会员.
|
||||
func (s *Service) IsActive(ctx context.Context, userID uuid.UUID) (bool, error) {
|
||||
me, err := s.Get(ctx, userID)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
return me.Active, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user