feat(contact): Contact 模型、DAO、常量与 DTO

- model/friendship.go: 好友关系模型(双向存储,4 种状态)
- model/friend_group.go: 好友分组模型
- constants/contact.go: 好友关系状态常量
- dto/contact_dto.go: 联系人请求/响应 DTO
- dao/friendship_dao.go: 好友关系 CRUD + 搜索 + 共同好友
- dao/friend_group_dao.go: 好友分组 CRUD + 移动好友

Made-with: Cursor
This commit is contained in:
bujinyuan
2026-03-02 17:03:13 +08:00
parent bfb4fb0ccb
commit d4ab5af34e
6 changed files with 594 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package constants
const (
FriendshipStatusPending = 0 // 待确认(已发送申请)
FriendshipStatusAccepted = 1 // 已接受(互为好友)
FriendshipStatusRejected = 2 // 已拒绝
FriendshipStatusBlocked = 3 // 已拉黑
)