mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
59 lines
1.0 KiB
Go
59 lines
1.0 KiB
Go
// Code generated from Pkl module `vault`. DO NOT EDIT.
|
|||
|
|
package vault
|
||
|
|
|
||
|
|
import "github.com/apple/pkl-go/pkl"
|
||
|
|
|
||
|
|
type Account interface {
|
||
|
|
Model
|
||
|
|
|
||
|
|
GetId() uint
|
||
|
|
|
||
|
|
GetName() string
|
||
|
|
|
||
|
|
GetAddress() string
|
||
|
|
|
||
|
|
GetPublicKey() *pkl.Object
|
||
|
|
|
||
|
|
GetCreatedAt() *string
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ Account = (*AccountImpl)(nil)
|
||
|
|
|
||
|
|
type AccountImpl struct {
|
||
|
|
Table string `pkl:"table"`
|
||
|
|
|
||
|
|
Id uint `pkl:"id" gorm:"primaryKey" json:"id,omitempty"`
|
||
|
|
|
||
|
|
Name string `pkl:"name" json:"name,omitempty"`
|
||
|
|
|
||
|
|
Address string `pkl:"address" json:"address,omitempty"`
|
||
|
|
|
||
|
|
PublicKey *pkl.Object `pkl:"publicKey" json:"publicKey,omitempty"`
|
||
|
|
|
||
|
|
CreatedAt *string `pkl:"createdAt" json:"createdAt,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (rcv *AccountImpl) GetTable() string {
|
||
|
|
return rcv.Table
|
||
|
|
}
|
||
|
|
|
||
|
|
func (rcv *AccountImpl) GetId() uint {
|
||
|
|
return rcv.Id
|
||
|
|
}
|
||
|
|
|
||
|
|
func (rcv *AccountImpl) GetName() string {
|
||
|
|
return rcv.Name
|
||
|
|
}
|
||
|
|
|
||
|
|
func (rcv *AccountImpl) GetAddress() string {
|
||
|
|
return rcv.Address
|
||
|
|
}
|
||
|
|
|
||
|
|
func (rcv *AccountImpl) GetPublicKey() *pkl.Object {
|
||
|
|
return rcv.PublicKey
|
||
|
|
}
|
||
|
|
|
||
|
|
func (rcv *AccountImpl) GetCreatedAt() *string {
|
||
|
|
return rcv.CreatedAt
|
||
|
|
}
|