config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiAddr = "https://api.creative-apartment.com.cn"

	HAuthKey         = "Authorization"
	HAuthValuePrefix = "Bearer "
)
View Source
const (
	AppName = "creative-apartment"

	AESECBP5Key = "yBnulH9ODtonS5lj"

	E1UnitPrice float64 = 0.797
	E2UnitPrice float64 = 4.05
)
View Source
const (
	DateFormat     = "2006-01-02"
	DateTimeFormat = "2006-01-02 15:04:05"
)

Variables

View Source
var (
	VERSION = ""
	BIDTIME = ""

	FULL_VERSION = VERSION + " (" + BIDTIME + ")"
)

Functions

func SetCustomers

func SetCustomers(v any)

Types

type Customer

type Customer struct {
	Phone string `json:"phone" yaml:"phone" validate:"required,min=1"`
	Token string `json:"token" yaml:"token" validate:"required,min=1"`
}

func GetCustomer

func GetCustomer(i int) *Customer

func GetCustomers

func GetCustomers() []*Customer

func (*Customer) GetToken

func (c *Customer) GetToken() string

Jump to

Keyboard shortcuts

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