实现用户账号注销逻辑,包括删除用户所有关联数据并根据原设备信息创建新账号
This commit is contained in:
+11
-5
@@ -150,6 +150,10 @@ type BatchDeleteSubscribeGroupRequest struct {
|
||||
Ids []int64 `json:"ids" validate:"required"`
|
||||
}
|
||||
|
||||
type DeleteSubscribeRequest struct {
|
||||
Id int64 `json:"id" validate:"required"`
|
||||
}
|
||||
|
||||
type BatchDeleteSubscribeRequest struct {
|
||||
Ids []int64 `json:"ids" validate:"required"`
|
||||
}
|
||||
@@ -517,19 +521,21 @@ type DeleteSubscribeGroupRequest struct {
|
||||
Id int64 `json:"id" validate:"required"`
|
||||
}
|
||||
|
||||
type DeleteSubscribeRequest struct {
|
||||
type DeleteUserDeivceRequest struct {
|
||||
Id int64 `json:"id" validate:"required"`
|
||||
}
|
||||
|
||||
type DeleteAccountResponse struct {
|
||||
Success bool `json:"success"`
|
||||
Message string `json:"message,omitempty"`
|
||||
UserId int64 `json:"user_id,omitempty"`
|
||||
}
|
||||
|
||||
type DeleteUserAuthMethodRequest struct {
|
||||
UserId int64 `json:"user_id"`
|
||||
AuthType string `json:"auth_type"`
|
||||
}
|
||||
|
||||
type DeleteUserDeivceRequest struct {
|
||||
Id int64 `json:"id"`
|
||||
}
|
||||
|
||||
type DeleteUserSubscribeRequest struct {
|
||||
UserSubscribeId int64 `json:"user_subscribe_id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user