application

package
v0.0.0-...-4350bb9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupApplication

type GroupApplication interface {
	Index(ctx context.Context) ([]*group.Group, []*group.Group, error)
	Show(ctx context.Context, groupID string) (*group.Group, error)
	Create(ctx context.Context, req *request.CreateGroup) (*group.Group, error)
	Update(ctx context.Context, req *request.UpdateGroup, groupID string) (*group.Group, error)
	AddUsers(ctx context.Context, req *request.AddUsersInGroup, groupID string) (*group.Group, error)
	AddUnauthorizedUsers(
		ctx context.Context, req *request.AddUnauthorizedUsersInGroup, groupID string,
	) (*group.Group, error)
	RemoveUsers(ctx context.Context, req *request.RemoveUsersInGroup, groupID string) (*group.Group, error)
	AddHiddenGroup(ctx context.Context, groupID string) ([]*group.Group, []*group.Group, error)
	RemoveHiddenGroup(ctx context.Context, groupID string) ([]*group.Group, []*group.Group, error)
	Destroy(ctx context.Context, groupID string) error
}

GroupApplication - GroupApplicationインターフェース

func NewGroupApplication

NewGroupApplication - GroupApplicationの生成

type PaymentApplication

type PaymentApplication interface {
	Index(
		ctx context.Context, groupID string, startAt string, currency string,
	) ([]*payment.Payment, map[string]*payment.Payer, string, error)
	Create(ctx context.Context, req *request.CreatePayment, groupID string) (*payment.Payment, error)
	Update(ctx context.Context, req *request.UpdatePayment, groupID string, paymentID string) (*payment.Payment, error)
	UpdatePayer(
		ctx context.Context, req *request.UpdatePayerInPayment, groupID string, paymentID string, payerID string,
	) (*payment.Payment, error)
	UpdateStatus(ctx context.Context, groupID string, paymentID string) (*payment.Payment, error)
	UpdateStatusAll(ctx context.Context, groupID string) ([]*payment.Payment, map[string]*payment.Payer, string, error)
	Destroy(ctx context.Context, groupID string, paymentID string) error
}

PaymentApplication - PaymentApplicationインターフェース

func NewPaymentApplication

NewPaymentApplication - PaymentApplicationの生成

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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