owpengram-server/internal/domain/phone_change.go
2026-09-01 12:06:31 +03:00

22 lines
772 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package domain
// PhoneChangeRequest 是账号改号的持久化命令。updateUserPhone 不携带 PTS
// 因此该命令只维护号码事实Exclude* 保留在 DTO 中用于兼容调用边界,在线
// 非 PTS 通知由 RPC 层按发起设备排除。
type PhoneChangeRequest struct {
UserID int64
Phone string
Date int
ExcludeAuthKeyID [8]byte
ExcludeSessionID int64
// SignupEmail, when non-empty, is written to users.signup_email in the
// same transaction as Phone. Only email-signup phone changes set this
// (see account.Service.ChangePhone); ordinary phone-number changes leave
// it as the zero value and the column untouched.
SignupEmail string
}
type PhoneChangeResult struct {
User User
Changed bool
}