activity

package
v1.3.0-rc.0...-8297314 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

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

Activity 活动操作封装

func New

func New(options ...Option) *Activity

New 新建 Activity 实例

func (*Activity) ListByRuntime

func (a *Activity) ListByRuntime(runtimeID int64, pageNo, pageSize int) (int, []model.Activity, error)

ListByRuntime 根据runtimeID获取活动列表

type Option

type Option func(*Activity)

Option 定义 Activity 配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 Ticket bundle选项

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 Activity 数据库选项

Jump to

Keyboard shortcuts

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