UPDATE: Auth module, User module
Some checks failed
Build and Release / release (push) Failing after 1m25s

This commit is contained in:
2026-03-30 00:27:57 +07:00
parent 92d44bb00c
commit f04441bf2a
59 changed files with 4246 additions and 521 deletions

35
pkg/constants/status.go Normal file
View File

@@ -0,0 +1,35 @@
package constants
type StatusType int16
const (
StatusPending StatusType = 1
StatusApproved StatusType = 2
StatusRejected StatusType = 3
)
func (t StatusType) String() string {
switch t {
case StatusPending:
return "PENDING"
case StatusApproved:
return "APPROVED"
case StatusRejected:
return "REJECT"
default:
return "UNKNOWN"
}
}
func ParseStatusType(v int16) StatusType {
switch v {
case 1:
return StatusPending
case 2:
return StatusApproved
case 3:
return StatusRejected
default:
return 0
}
}