impl

package
v0.0.0-...-93144e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecordDao

type RecordDao struct {
	// contains filtered or unexported fields
}

func NewRecordDao

func NewRecordDao(db *gorm.DB) *RecordDao

func (*RecordDao) Create

func (do *RecordDao) Create(ctx context.Context, req *dao.CreateRecordRequest,
) (id uint, err error)

Create 创建数据库记录示例

func (*RecordDao) Delete

func (do *RecordDao) Delete(ctx context.Context, id uint) error

func (*RecordDao) Get

func (do *RecordDao) Get(ctx context.Context, id uint) (*dao.Record, error)

func (*RecordDao) List

func (*RecordDao) Query

func (do *RecordDao) Query(ctx context.Context, req *dao.QueryRecordRequest) (*dao.Record, error)

func (*RecordDao) Update

func (do *RecordDao) Update(ctx context.Context, req *dao.UpdateRecordRequest) error

只更新非零值字段

func (*RecordDao) UpdateStatus

func (do *RecordDao) UpdateStatus(ctx context.Context, req *dao.UpdateRecordStatusRequest) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL