Skip to content

Commit

Permalink
🔥 remove TypeMember
Browse files Browse the repository at this point in the history
  • Loading branch information
Shion1305 committed Feb 25, 2024
1 parent 45931c9 commit 20c569c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions svc/pkg/domain/model/user/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@ package user

import "errors"

// Type represents the type of user.
// This field is currently not used, but it is expected to be used in the future.
type Type int

const (
TypeNormal Type = 1
TypeMember Type = 2
)

func NewType(t int) (Type, error) {
switch Type(t) {
case TypeNormal:
return TypeNormal, nil
case TypeMember:
return TypeMember, nil
default:
return -1, errors.New("USER TYPE VALUE IS INVALID")
}
Expand Down

0 comments on commit 20c569c

Please sign in to comment.