MCPcopy 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// 删除好友关系
76func (f *friendDB) remove(uid, fid int64) error {
77 key := UserFriendKey(uid, fid)
78 return f.db.Delete(key, nil)
79}
80
81func (f *friendDB) get(uid int64) ([]int64, error) {
82 var r friendRelation

Callers 1

FriendMethod · 0.80

Calls 1

UserFriendKeyFunction · 0.85

Tested by

no test coverage detected