mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
added transaction status routes
This commit is contained in:
@@ -1 +1,13 @@
|
||||
package models
|
||||
|
||||
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