Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
57a1fc9d
Commit
57a1fc9d
authored
Jan 20, 2026
by
yangjianbo
Browse files
style(仓储): 格式化账号仓储
- gofmt 修正 lint 格式提示
parent
7a83db61
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/repository/account_repo.go
View file @
57a1fc9d
...
@@ -41,8 +41,8 @@ import (
...
@@ -41,8 +41,8 @@ import (
// - sql: 原生 SQL 执行器,用于复杂查询和批量操作
// - sql: 原生 SQL 执行器,用于复杂查询和批量操作
// - schedulerCache: 调度器缓存,用于在账号状态变更时同步快照
// - schedulerCache: 调度器缓存,用于在账号状态变更时同步快照
type
accountRepository
struct
{
type
accountRepository
struct
{
client
*
dbent
.
Client
// Ent ORM 客户端
client
*
dbent
.
Client
// Ent ORM 客户端
sql
sqlExecutor
// 原生 SQL 执行接口
sql
sqlExecutor
// 原生 SQL 执行接口
// schedulerCache 用于在账号状态变更时主动同步快照到缓存,
// schedulerCache 用于在账号状态变更时主动同步快照到缓存,
// 确保粘性会话能及时感知账号不可用状态。
// 确保粘性会话能及时感知账号不可用状态。
// Used to proactively sync account snapshot to cache when status changes,
// Used to proactively sync account snapshot to cache when status changes,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment