차단 목록 관리 완료
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
package core
|
||||
|
||||
import "repositories.action2quare.com/ayo/gocommon"
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"repositories.action2quare.com/ayo/gocommon"
|
||||
)
|
||||
|
||||
const (
|
||||
block_collection_name = gocommon.CollectionName("block")
|
||||
@ -12,3 +15,11 @@ var friend_state_tag = []string{"social.FriendState"}
|
||||
var invitations_tag = []string{"social.Invitations"}
|
||||
var friends_tag = []string{"social.Friends"}
|
||||
var blocks_tag = []string{"social.Blocks"}
|
||||
|
||||
func stringsToObjs(in []any) (out []primitive.ObjectID) {
|
||||
for _, i := range in {
|
||||
p, _ := primitive.ObjectIDFromHex(i.(string))
|
||||
out = append(out, p)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user