move api/server to api/edge/bff
This commit is contained in:
15
api/edge/bff/internal/server/verificationimp/target.go
Normal file
15
api/edge/bff/internal/server/verificationimp/target.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package verificationimp
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/tech/sendico/pkg/model"
|
||||
)
|
||||
|
||||
func (a *VerificationAPI) resolveTarget(reqDest string, account *model.Account) string {
|
||||
target := strings.ToLower(strings.TrimSpace(reqDest))
|
||||
if target == "" && account != nil {
|
||||
target = strings.ToLower(strings.TrimSpace(account.Login))
|
||||
}
|
||||
return target
|
||||
}
|
||||
Reference in New Issue
Block a user