model

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package model contains the types for schema 'swoyii'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetShopAddField

func GetShopAddField(s *Shop) []interface{}

Get add field

func GetShopFieldString

func GetShopFieldString() string

Get field string

func GetShopFieldStringSlice

func GetShopFieldStringSlice() []string

Get field string slice

func GetShopScanField

func GetShopScanField(s *Shop) []interface{}

Get scan field

func GetShopTableName

func GetShopTableName() string

Get table name

Types

type Shop

type Shop struct {
	ID uint64 `json:"id"`

	BrandID uint64 `json:"brand_id"`

	ShopName string `json:"shop_name"`

	Address string `json:"address"`

	ShopStatus int8 `json:"shop_status"`

	OfficialStartTime uint32 `json:"official_start_time"`

	HasOfficialRun int8 `json:"has_official_run"`

	IsValid int8 `json:"is_valid"`

	FrozenStartTime uint32 `json:"frozen_start_time"`

	FrozenEndTime uint32 `json:"frozen_end_time"`

	IsFrozen int8 `json:"is_frozen"`

	HolidayStartTime uint32 `json:"holiday_start_time"`

	HolidayEndTime uint32 `json:"holiday_end_time"`

	IsHoliday int8 `json:"is_holiday"`

	ExpireTime uint32 `json:"expire_time"`

	Description string `json:"description"`

	IsAllday int8 `json:"is_allday"`

	ProvinceID uint32 `json:"province_id"`

	CityID uint32 `json:"city_id"`

	DistrictID uint32 `json:"district_id"`

	Lat float64 `json:"lat"`

	Lng float64 `json:"lng"`

	AlbumID uint64 `json:"album_id"`

	IsDel int8 `json:"is_del"`

	CreatedTime uint32 `json:"created_time"`

	UpdatedTime uint32 `json:"updated_time"`

	ProvinceName string `json:"province_name"`

	CityName string `json:"city_name"`

	DistrictName string `json:"district_name"`

	OperatorID uint64 `json:"operator_id"`

	OperatorType int8 `json:"operator_type"`
}

Shop represents a row from 'swoyii.shop'.

Jump to

Keyboard shortcuts

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