feat/sso-auth: moved ext-user to user-fes
This commit is contained in:
+4
-3
@@ -1,4 +1,5 @@
|
||||
package extuser
|
||||
// FES = From External Source
|
||||
package userfes
|
||||
|
||||
import (
|
||||
// internal - domain - main-entities
|
||||
@@ -54,7 +55,7 @@ type ResponseDto struct {
|
||||
User_Name string `json:"user_name"`
|
||||
}
|
||||
|
||||
func (d ExtUser) ToResponse() ResponseDto {
|
||||
func (d UserFes) ToResponse() ResponseDto {
|
||||
resp := ResponseDto{
|
||||
Name: d.Name,
|
||||
AuthPartner_Code: d.AuthPartner_Code,
|
||||
@@ -65,7 +66,7 @@ func (d ExtUser) ToResponse() ResponseDto {
|
||||
return resp
|
||||
}
|
||||
|
||||
func ToResponseList(data []ExtUser) []ResponseDto {
|
||||
func ToResponseList(data []UserFes) []ResponseDto {
|
||||
resp := make([]ResponseDto, len(data))
|
||||
for i, u := range data {
|
||||
resp[i] = u.ToResponse()
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
package extuser
|
||||
// FES = From External Source
|
||||
package userfes
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
@@ -6,7 +7,7 @@ import (
|
||||
eau "simrs-vx/internal/domain/main-entities/user"
|
||||
)
|
||||
|
||||
type ExtUser struct {
|
||||
type UserFes struct {
|
||||
ecore.Main // adjust this according to the needs
|
||||
Name string `json:"name" gorm:"size:100"`
|
||||
AuthPartner_Code string `json:"authPartner_code" gorm:"size:30"`
|
||||
Reference in New Issue
Block a user