Documentation
¶
Index ¶
- Constants
- type ProductMySQLRepo
- func (p *ProductMySQLRepo) Create(ctx context.Context, data *entities_pb.ProductInfo) (productDAO *repo.ProductModel, err error)
- func (p *ProductMySQLRepo) Find(ctx context.Context, id int) (productDAO *repo.ProductModel, err error)
- func (p *ProductMySQLRepo) Get(ctx context.Context, limit int, page int, ids []uint64) (productDAO []*repo.ProductModel, err error)
- func (p *ProductMySQLRepo) Update(ctx context.Context, product *repo.ProductModel) (err error)
- type TaskMySQLRepo
- func (t *TaskMySQLRepo) Create(ctx context.Context, data *entities_pb.TaskInfo) (taskDAO *repo.TaskModel, err error)
- func (t *TaskMySQLRepo) Find(ctx context.Context, id int) (taskDAO *repo.TaskModel, err error)
- func (t *TaskMySQLRepo) Get(ctx context.Context, limit int, page int, ids []uint64) (taskDAO []*repo.TaskModel, err error)
- func (t *TaskMySQLRepo) Update(ctx context.Context, task *repo.TaskModel) (err error)
Constants ¶
View Source
const ( //ProductKafkaTopic ... ProductKafkaTopic = "yuuxxq8y-product" //TaskKafkaTopic ... TaskKafkaTopic = "yuuxxq8y-task" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductMySQLRepo ¶
type ProductMySQLRepo struct {
// contains filtered or unexported fields
}
ProductMySQLRepo ...
func NewProductMySQLRepo ¶
func NewProductMySQLRepo( db *infra.ConnPool, ) *ProductMySQLRepo
NewProductMySQLRepo ...
func (*ProductMySQLRepo) Create ¶
func (p *ProductMySQLRepo) Create(ctx context.Context, data *entities_pb.ProductInfo) (productDAO *repo.ProductModel, err error)
Create ...
func (*ProductMySQLRepo) Find ¶
func (p *ProductMySQLRepo) Find(ctx context.Context, id int) (productDAO *repo.ProductModel, err error)
Find ...
func (*ProductMySQLRepo) Get ¶
func (p *ProductMySQLRepo) Get(ctx context.Context, limit int, page int, ids []uint64) (productDAO []*repo.ProductModel, err error)
Get ...
func (*ProductMySQLRepo) Update ¶
func (p *ProductMySQLRepo) Update(ctx context.Context, product *repo.ProductModel) (err error)
Update ...
type TaskMySQLRepo ¶
type TaskMySQLRepo struct {
// contains filtered or unexported fields
}
TaskMySQLRepo ...
func NewTaskMySQLRepo ¶
func NewTaskMySQLRepo( db *infra.ConnPool, ) *TaskMySQLRepo
NewTaskMySQLRepo ...
func (*TaskMySQLRepo) Create ¶
func (t *TaskMySQLRepo) Create(ctx context.Context, data *entities_pb.TaskInfo) (taskDAO *repo.TaskModel, err error)
Create Task
Click to show internal directories.
Click to hide internal directories.