model

package
v0.0.0-...-6074f30 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericResponse

type GenericResponse struct {
	Status   int         `json:"status"`
	Success  bool        `json:"success"`
	Messages []string    `json:"messages"`
	Data     interface{} `json:"data"`
}

GenericResponse represent the generic response API

func NewGenericResponse

func NewGenericResponse(stsCd, isError int, messages []string, data interface{}) *GenericResponse

NewGenericResponse will create an object that represent the GenericResponse struct

type JWTModel

type JWTModel struct {
	ThirdParty  string  `json:"third_party"`
	ExpiredTime float64 `json:"expired_time"`
}

JWTModel represent the jwt response API

Jump to

Keyboard shortcuts

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