Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danmuking/DiTing-Go
/ functions
Functions
1,176 in github.com/danmuking/DiTing-Go
⨍
Functions
1,176
◇
Types & classes
90
↓ 31 callers
Function
RegisterService
RegisterService 用户注册
service/user_service.go:23
↓ 25 callers
Method
withDO
(do gen.Dao)
dal/query/message.gen.go:426
↓ 25 callers
Method
withDO
(do gen.Dao)
dal/query/room.gen.go:418
↓ 25 callers
Method
withDO
(do gen.Dao)
dal/query/group_member.gen.go:408
↓ 25 callers
Method
withDO
(do gen.Dao)
dal/query/room_group.gen.go:416
↓ 25 callers
Method
withDO
(do gen.Dao)
dal/query/user_apply.gen.go:420
↓ 25 callers
Method
withDO
(do gen.Dao)
dal/query/user.gen.go:434
↓ 25 callers
Method
withDO
(do gen.Dao)
dal/query/user_friend.gen.go:408
↓ 25 callers
Method
withDO
(do gen.Dao)
dal/query/contact.gen.go:414
↓ 25 callers
Method
withDO
(do gen.Dao)
dal/query/room_friend.gen.go:416
↓ 24 callers
Method
Where
(conds ...gen.Condition)
dal/query/room.gen.go:147
↓ 23 callers
Method
WithContext
(ctx context.Context)
dal/query/room.gen.go:135
↓ 18 callers
Function
LoginService
LoginService 用户登录
service/user_service.go:149
↓ 13 callers
Method
Rollback
()
dal/query/gen.go:93
↓ 12 callers
Method
First
()
dal/query/room.gen.go:164
↓ 12 callers
Function
setupCaptcha
setupCaptcha 设置验证码
service/user_service_integration_test.go:302
↓ 10 callers
Function
RemoveData
(key string)
pkg/utils/redis.go:73
↓ 10 callers
Function
SetValueToRedis
SetValueToRedis 设置字符串
utils/redisUtils.go:24
↓ 9 callers
Function
setupCaptcha
setupCaptcha 设置验证码
tests/integration/user_integration_test.go:303
↓ 8 callers
Function
MakeUserCaptchaKey
MakeUserCaptchaKey 构造验证码key
utils/redisUtils.go:19
↓ 7 callers
Function
CancelService
CancelService 注销账户
service/user_service.go:263
↓ 7 callers
Function
CheckPassword
CheckPassword 校验用户名密码是否匹配
logic/login.go:17
↓ 7 callers
Function
ErrorResponse
ErrorResponse 是一个辅助函数,用于创建错误响应 参数: c *gin.Context:Gin上下文对象,用于处理HTTP请求和响应 code int:500 message string:响应消息,用于描述响应的错误信息或提示信息
pkg/domain/vo/resp/response.go:22
↓ 7 callers
Function
setupCaptcha
setupCaptcha 设置验证码
tests/e2e/user_workflow_e2e_test.go:239
↓ 6 callers
Method
Create
(values ...*model.Room)
dal/query/room.gen.go:161
↓ 6 callers
Function
GetValueFromRedis
GetValueFromRedis 获取字符串
utils/redisUtils.go:38
↓ 6 callers
Function
MakeUserPhoneKey
MakeUserPhoneKey 构造用户手机号
utils/redisUtils.go:14
↓ 6 callers
Function
ParseToken
ParseToken 解析token
utils/jwt/jwt.go:42
↓ 6 callers
Function
cleanupUser
cleanupUser 清理用户数据
service/user_service_integration_test.go:311
↓ 6 callers
Function
cleanupUser
cleanupUser 清理用户数据
tests/integration/user_integration_test.go:312
↓ 5 callers
Function
CheckPhoneInDB
CheckPhoneInDB 检查手机号在db中是否存在
logic/register.go:64
↓ 5 callers
Method
Find
()
dal/query/room.gen.go:167
↓ 5 callers
Function
GenerateToken
GenerateToken 生成token
utils/jwt/jwt.go:20
↓ 5 callers
Method
Join
(table schema.Tabler, on ...field.Expr)
dal/query/room.gen.go:151
↓ 5 callers
Method
Limit
(limit int)
dal/query/room.gen.go:156
↓ 5 callers
Function
cleanupUser
cleanupUser 清理用户数据
tests/performance/user_performance_test.go:289
↓ 5 callers
Function
setupCaptcha
setupCaptcha 设置验证码
tests/performance/user_performance_test.go:280
↓ 4 callers
Function
DBInit
()
global/init_db.go:13
↓ 4 callers
Function
GetData
GetData 获取数据
pkg/utils/redis.go:37
↓ 4 callers
Method
Limit
(limit int)
dal/query/message.gen.go:164
↓ 4 callers
Method
Limit
(limit int)
dal/query/group_member.gen.go:146
↓ 4 callers
Method
Limit
(limit int)
dal/query/room_group.gen.go:154
↓ 4 callers
Method
Limit
(limit int)
dal/query/user_apply.gen.go:158
↓ 4 callers
Method
Limit
(limit int)
dal/query/user.gen.go:172
↓ 4 callers
Method
Limit
(limit int)
dal/query/user_friend.gen.go:146
↓ 4 callers
Method
Limit
(limit int)
dal/query/contact.gen.go:152
↓ 4 callers
Method
Limit
(limit int)
dal/query/room_friend.gen.go:154
↓ 4 callers
Function
RedisInit
()
global/init_redis.go:10
↓ 4 callers
Function
ReturnErrorResponse
(c *gin.Context, response ResponseData)
pkg/domain/vo/resp/response.go:57
↓ 4 callers
Function
ReturnSuccessResponse
(c *gin.Context, response ResponseData)
pkg/domain/vo/resp/response.go:54
↓ 4 callers
Method
Update
(column field.Expr, value interface{})
dal/query/room.gen.go:172
↓ 3 callers
Function
CheckCaptchaProcess
CheckCaptchaProcess 检查验证码
logic/register.go:16
↓ 3 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/room.gen.go:143
↓ 3 callers
Function
ConfigInit
()
utils/setting/setting.go:11
↓ 3 callers
Method
Delete
(...*model.Room)
dal/query/room.gen.go:171
↓ 3 callers
Method
Group
(cols ...field.Expr)
dal/query/room.gen.go:154
↓ 3 callers
Method
Offset
(offset int)
dal/query/message.gen.go:281
↓ 3 callers
Method
Offset
(offset int)
dal/query/room.gen.go:273
↓ 3 callers
Method
Offset
(offset int)
dal/query/group_member.gen.go:263
↓ 3 callers
Method
Offset
(offset int)
dal/query/room_group.gen.go:271
↓ 3 callers
Method
Offset
(offset int)
dal/query/user_apply.gen.go:275
↓ 3 callers
Method
Offset
(offset int)
dal/query/user.gen.go:289
↓ 3 callers
Method
Offset
(offset int)
dal/query/user_friend.gen.go:263
↓ 3 callers
Method
Offset
(offset int)
dal/query/contact.gen.go:269
↓ 3 callers
Method
Offset
(offset int)
dal/query/room_friend.gen.go:271
↓ 3 callers
Method
Order
(conds ...field.Expr)
dal/query/room.gen.go:148
↓ 3 callers
Function
QueryUserByPhone
QueryUserByPhone 根据手机号查询用户
utils/mysqlUtils.go:14
↓ 3 callers
Function
Send
Send 发送空消息代表有新消息,前端收到消息后再去后端拉取消息
websocket/service/websocket_service.go:89
↓ 3 callers
Function
cleanupUser
cleanupUser 清理用户数据
tests/e2e/user_workflow_e2e_test.go:248
↓ 3 callers
Function
setupCaptcha
setupCaptcha 设置验证码
tests/unit/user_service_test.go:248
↓ 2 callers
Method
Begin
(opts ...*sql.TxOptions)
dal/query/gen.go:79
↓ 2 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/message.gen.go:221
↓ 2 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/room.gen.go:213
↓ 2 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/group_member.gen.go:203
↓ 2 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/room_group.gen.go:211
↓ 2 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/user_apply.gen.go:215
↓ 2 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/user.gen.go:229
↓ 2 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/user_friend.gen.go:203
↓ 2 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/contact.gen.go:209
↓ 2 callers
Method
Clauses
(conds ...clause.Expression)
dal/query/room_friend.gen.go:211
↓ 2 callers
Method
Commit
()
dal/query/gen.go:89
↓ 2 callers
Method
Count
()
dal/query/message.gen.go:166
↓ 2 callers
Method
Count
()
dal/query/room.gen.go:158
↓ 2 callers
Method
Count
()
dal/query/group_member.gen.go:148
↓ 2 callers
Method
Count
()
dal/query/room_group.gen.go:156
↓ 2 callers
Method
Count
()
dal/query/user_apply.gen.go:160
↓ 2 callers
Method
Count
()
dal/query/user.gen.go:174
↓ 2 callers
Method
Count
()
dal/query/user_friend.gen.go:148
↓ 2 callers
Method
Count
()
dal/query/contact.gen.go:154
↓ 2 callers
Method
Count
()
dal/query/room_friend.gen.go:156
↓ 2 callers
Method
Debug
()
dal/query/room.gen.go:134
↓ 2 callers
Function
DeleteValueFromRedis
DeleteValueFromRedis 删除字符串
utils/redisUtils.go:47
↓ 2 callers
Function
EncryptPassword
EncryptPassword 对密码进行md5加密
utils/passwordUtils.go:9
↓ 2 callers
Method
Find
()
dal/query/message.gen.go:175
↓ 2 callers
Method
Find
()
dal/query/group_member.gen.go:157
↓ 2 callers
Method
Find
()
dal/query/room_group.gen.go:165
↓ 2 callers
Method
Find
()
dal/query/user_apply.gen.go:169
↓ 2 callers
Method
Find
()
dal/query/user.gen.go:183
↓ 2 callers
Method
Find
()
dal/query/user_friend.gen.go:157
↓ 2 callers
Method
Find
()
dal/query/contact.gen.go:163
next →
1–100 of 1,176, ranked by callers