mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-11-11 07:41:10 +00:00
partial repository layer added
This commit is contained in:
13
pkg/model/transactionStatus.go
Normal file
13
pkg/model/transactionStatus.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package model
|
||||
|
||||
type TransactionStatus struct {
|
||||
tableName struct{} `pg:"transactionStatus,alias:transactionStatus"`
|
||||
BaseModel
|
||||
Name string `json:"name" pg:"name"`
|
||||
Status string `json:"status" pg:"status,notnull"`
|
||||
}
|
||||
|
||||
type NewTransactionStatusBody struct {
|
||||
Name string `json:"name" form:"name"`
|
||||
Status string `json:"status" form:"status"`
|
||||
}
|
||||
Reference in New Issue
Block a user