data

package
v0.0.0-...-2421ddb Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdatedCol = 0

	AddressCol = 5 //d

)

Variables

This section is empty.

Functions

func CreateTable

func CreateTable(client *sql.DB) error

func Day2DayStr

func Day2DayStr(d int8) string

func DropTable

func DropTable(client *sql.DB) error

func GenerateSearchCmd

func GenerateSearchCmd(form map[string][]string) (string, error)

func HexToString

func HexToString(s string) string

func LevelToStr

func LevelToStr(FromLevel, ToLevel int8) (LevelStr string)

func StringToHex

func StringToHex(s string) string

func ToStoreSQLCmd

func ToStoreSQLCmd(data Data) string

func UploadDataToDatabase

func UploadDataToDatabase(client *sql.DB, filePath string) error

func UploadToSQL

func UploadToSQL(client *sql.DB, data Data) error

Types

type Data

type Data struct {
	UID           int
	Name          string
	Day           int8
	Daystr        string
	StartTime     int16
	EndTime       int16
	CourtName     string
	Address       string
	FromLevel     int8
	ToLevel       int8
	LevelStr      string
	CourtCount    int8
	CourtCountStr string
	FeeM          int16
	FeeMStr       string
	FeeF          int16
	FeeFStr       string
	MinBallType   string
	Note          string
	Location      Location
}

func NewData

func NewData(record []string) Data

type Location

type Location struct {
	Lon float64
	Lat float64
}

Jump to

Keyboard shortcuts

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