This commit is contained in:
2026-03-23 18:55:27 +07:00
parent 6dc0322fe5
commit 3626c12319
47 changed files with 2741 additions and 0 deletions

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

@@ -0,0 +1,35 @@
package constant
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
}
}