feat: sync public links and phone change updates
This commit is contained in:
parent
41c7f1d018
commit
da04c0fa6a
53 changed files with 3029 additions and 111 deletions
18
internal/domain/phone_change.go
Normal file
18
internal/domain/phone_change.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package domain
|
||||
|
||||
// PhoneChangeRequest 是账号改号的持久化命令。PG 实现必须把 User、Event 与
|
||||
// dispatch outbox 放在同一事务;Exclude* 精确排除发起设备,因为当前设备从
|
||||
// account.changePhone 的 User 返回值更新本地状态。
|
||||
type PhoneChangeRequest struct {
|
||||
UserID int64
|
||||
Phone string
|
||||
Date int
|
||||
ExcludeAuthKeyID [8]byte
|
||||
ExcludeSessionID int64
|
||||
}
|
||||
|
||||
type PhoneChangeResult struct {
|
||||
User User
|
||||
Event UpdateEvent
|
||||
Changed bool
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue