models

package
v0.0.0-...-94ea744 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PaginateQuery

func PaginateQuery(PageNumber int, PageSize int, SQLQuery string) string

Types

type Merchant

type Merchant struct {
	ID   int    `json:"id"`
	Code string `json:"code"`
	Name string `json:"name"`
}

func (*Merchant) ValidateMerchant

func (a *Merchant) ValidateMerchant() url.Values

type Team

type Team struct {
	ID         int    `json:"id"`
	Email      string `json:"email"`
	MerchantID *int   `json:"merchant_id"`
}

func (*Team) ValidateTeam

func (a *Team) ValidateTeam() url.Values

Jump to

Keyboard shortcuts

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