Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dearcode/candy
/ remove
Method
remove
store/friend.go:76–79 ·
view source on GitHub ↗
删除好友关系
(uid, fid int64)
Source
from the content-addressed store, hash-verified
74
75
// 删除好友关系
76
func
(f *friendDB) remove(uid, fid int64) error {
77
key := UserFriendKey(uid, fid)
78
return
f.db.Delete(key, nil)
79
}
80
81
func
(f *friendDB) get(uid int64) ([]int64, error) {
82
var
r friendRelation
Callers
1
Friend
Method · 0.80
Calls
1
UserFriendKey
Function · 0.85
Tested by
no test coverage detected