payments

package
v0.0.0-...-a21a18e Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Create graphql.FieldConfigArgument
}

func GetArguments

func GetArguments() Arguments

type Payment

type Payment struct {
	Id        uint64  `json:"id" db:"id"`
	UserId    uint64  `json:"user_id" db:"user_id"`
	Amount    float64 `json:"amount" db:"amount"`
	Payed     bool    `json:"payed" db:"payed"`
	CreatedAt string  `json:"created_at" db:"created_at"`
	PayedAt   *string `json:"payed_at" db:"payed_at"`
}

type PaymentsCreateReturn

type PaymentsCreateReturn struct {
	Id int `json:"id" db:"id"`
}

type PaymentsInput

type PaymentsInput struct {
	UserId uint64  `json:"user_id" db:"user_id"`
	Amount float64 `json:"amount" db:"amount"`
}

type Resolverers

type Resolverers interface {
	Create(graphql.ResolveParams) (*PaymentsCreateReturn, error)
}

type Resolvers

type Resolvers struct {
	RedisClient *redis.Client
	// contains filtered or unexported fields
}

func GetResolvers

func GetResolvers(pgsql *sqlx.DB, client *redis.Client) *Resolvers

func (*Resolvers) Create

type Types

type Types struct {
	CreatePayment *graphql.Object
}

func GetTypes

func GetTypes() Types

Jump to

Keyboard shortcuts

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