repository

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormStore

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

func NewGormStore

func NewGormStore(db *gorm.DB, rds *redis.Client) *GormStore

func (*GormStore) Ads

func (s *GormStore) Ads() ads.Model

func (*GormStore) Announcement

func (s *GormStore) Announcement() announcement.Model

func (*GormStore) Auth

func (s *GormStore) Auth() auth.Model

func (*GormStore) Client

func (s *GormStore) Client() client.Model

func (*GormStore) Coupon

func (s *GormStore) Coupon() coupon.Model

func (*GormStore) Document

func (s *GormStore) Document() document.Model

func (*GormStore) InTx

func (s *GormStore) InTx(ctx context.Context, fn func(store Store) error) error

func (*GormStore) Log

func (s *GormStore) Log() log.Model

func (*GormStore) Node

func (s *GormStore) Node() node.Model

func (*GormStore) Order

func (s *GormStore) Order() order.Model

func (*GormStore) Payment

func (s *GormStore) Payment() payment.Model

func (*GormStore) Subscribe

func (s *GormStore) Subscribe() subscribe.Model

func (*GormStore) System

func (s *GormStore) System() system.Model

func (*GormStore) Task

func (s *GormStore) Task() task.Model

func (*GormStore) Ticket

func (s *GormStore) Ticket() ticket.Model

func (*GormStore) TrafficLog

func (s *GormStore) TrafficLog() traffic.Model

func (*GormStore) User

func (s *GormStore) User() user.Model

type Store

type Store interface {
	Ads() ads.Model
	Announcement() announcement.Model
	Auth() auth.Model
	Client() client.Model
	Coupon() coupon.Model
	Document() document.Model
	Log() log.Model
	Node() node.Model
	Order() order.Model
	Payment() payment.Model
	Subscribe() subscribe.Model
	System() system.Model
	Task() task.Model
	Ticket() ticket.Model
	TrafficLog() traffic.Model
	User() user.Model

	InTx(ctx context.Context, fn func(store Store) error) error
}

Jump to

Keyboard shortcuts

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