Files
waf-platform/EdgeUser/internal/web/actions/default/settings/identity/submit.go
2026-02-04 20:27:13 +08:00

28 lines
712 B
Go

// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package identity
import (
"github.com/TeaOSLab/EdgeCommon/pkg/langs/codes"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
"github.com/TeaOSLab/EdgeUser/internal/web/actions/actionutils"
)
type SubmitAction struct {
actionutils.ParentAction
}
func (this *SubmitAction) RunPost(params struct {
IdentityId int64
}) {
defer this.CreateLogInfo(codes.UserIdentity_LogSubmitUserIdentity)
_, err := this.RPC().UserIdentityRPC().SubmitUserIdentity(this.UserContext(), &pb.SubmitUserIdentityRequest{UserIdentityId: params.IdentityId})
if err != nil {
this.ErrorPage(err)
return
}
this.Success()
}