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 GetCustomers ¶
func GetCustomers() []*Customer
Click to show internal directories.
Click to hide internal directories.