Documentation ¶
Index ¶
- type VcCrtStorageColumns
- type VcCrtStorageDao
- func (dao *VcCrtStorageDao) Columns() VcCrtStorageColumns
- func (dao *VcCrtStorageDao) Ctx(ctx context.Context) *gdb.Model
- func (dao *VcCrtStorageDao) DB() gdb.DB
- func (dao *VcCrtStorageDao) Group() string
- func (dao *VcCrtStorageDao) Table() string
- func (dao *VcCrtStorageDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type VcSignArgs1To1Columns
- type VcSignArgs1To1Dao
- func (dao *VcSignArgs1To1Dao) Columns() VcSignArgs1To1Columns
- func (dao *VcSignArgs1To1Dao) Ctx(ctx context.Context) *gdb.Model
- func (dao *VcSignArgs1To1Dao) DB() gdb.DB
- func (dao *VcSignArgs1To1Dao) Group() string
- func (dao *VcSignArgs1To1Dao) Table() string
- func (dao *VcSignArgs1To1Dao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VcCrtStorageColumns ¶
type VcCrtStorageColumns struct { Id string // KeyId string // 证书id标识 KeyPath string // 私钥路径 CrtPath string // 证书路径 CreatedAt string // 创建时间 UpdatedAt string // 更新时间 }
VcCrtStorageColumns defines and stores column names for table vc_crt_storage.
type VcCrtStorageDao ¶
type VcCrtStorageDao struct {
// contains filtered or unexported fields
}
VcCrtStorageDao is the data access object for table vc_crt_storage.
func NewVcCrtStorageDao ¶
func NewVcCrtStorageDao() *VcCrtStorageDao
NewVcCrtStorageDao creates and returns a new DAO object for table data access.
func (*VcCrtStorageDao) Columns ¶
func (dao *VcCrtStorageDao) Columns() VcCrtStorageColumns
Columns returns all column names of current dao.
func (*VcCrtStorageDao) Ctx ¶
func (dao *VcCrtStorageDao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*VcCrtStorageDao) DB ¶
func (dao *VcCrtStorageDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*VcCrtStorageDao) Group ¶
func (dao *VcCrtStorageDao) Group() string
Group returns the configuration group name of database of current dao.
func (*VcCrtStorageDao) Table ¶
func (dao *VcCrtStorageDao) Table() string
Table returns the table name of current dao.
func (*VcCrtStorageDao) Transaction ¶
func (dao *VcCrtStorageDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.
Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.
type VcSignArgs1To1Columns ¶
type VcSignArgs1To1Columns struct { Id string // Sotid string // otid的签名参数s Totid string // otid的签名参数t Sac string // ac的签名参数s Tac string // ac的签名参数t Otid string // otid值 TxnId string // 交易id CreatedAt string // 创建时间 UpdatedAt string // 更新时间 }
VcSignArgs1To1Columns defines and stores column names for table vc_sign_args1to1.
type VcSignArgs1To1Dao ¶
type VcSignArgs1To1Dao struct {
// contains filtered or unexported fields
}
VcSignArgs1To1Dao is the data access object for table vc_sign_args1to1.
func NewVcSignArgs1To1Dao ¶
func NewVcSignArgs1To1Dao() *VcSignArgs1To1Dao
NewVcSignArgs1To1Dao creates and returns a new DAO object for table data access.
func (*VcSignArgs1To1Dao) Columns ¶
func (dao *VcSignArgs1To1Dao) Columns() VcSignArgs1To1Columns
Columns returns all column names of current dao.
func (*VcSignArgs1To1Dao) Ctx ¶
func (dao *VcSignArgs1To1Dao) Ctx(ctx context.Context) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*VcSignArgs1To1Dao) DB ¶
func (dao *VcSignArgs1To1Dao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*VcSignArgs1To1Dao) Group ¶
func (dao *VcSignArgs1To1Dao) Group() string
Group returns the configuration group name of database of current dao.
func (*VcSignArgs1To1Dao) Table ¶
func (dao *VcSignArgs1To1Dao) Table() string
Table returns the table name of current dao.
func (*VcSignArgs1To1Dao) Transaction ¶
func (dao *VcSignArgs1To1Dao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.
Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.