model

package
v0.0.0-...-6fa26a5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FoodCategory

type FoodCategory struct {
	Id          int64  `xorm:"pk autoincr" json:"id"`
	Title       string `xorm:"varchar(20) title" json:"title"`
	Description string `xorm:"varchar(255) description" json:"description"`
	ImageUrl    string `xorm:"varchar(255) image_url" json:"image_url"`
	LinkUrl     string `xorm:"varchar(255) link_url" json:"link_url"`
	IsInServing bool   `xorm:"varchar(255) is_in_serving" json:"is_in_serving"`
}

type Member

type Member struct {
	// pk autoincr 表示主键,自增
	// xorm:"phone" 这里面的列名用phone表示
	// json:"phone" 这里是用来将Json格式化为结构体用的
	Id           int64     `xorm:"not null pk autoincr INT(11)" json:"id"`
	UserName     string    `xorm:"varchar(20) user_name" json:"user_name"`
	Mobile       string    `xorm:"varchar(11) mobile" json:"mobile"`
	Password     string    `xorm:"varchar(255) password" json:"password"`
	RegisterTime time.Time `xorm:"DATETIME" json:"register_time"`
	Avatar       string    `xorm:"varchar(255) avatar" json:"avatar"`
	Balance      float64   `xorm:"double balance" json:"balance"`
	IsActive     int8      `xorm:"tinyint" json:"is_active"`
	City         string    `xorm:"varchar(10) city" json:"city"`
}

type Shop

type Shop struct {
	// id
	Id int64 `xorm:"pk autoincr" json:"id"`
	// 店铺名称
	Name string `xorm:"varchar(12) name" json:"name"`
	// 宣传信息
	PromotionInfo string `xorm:"varchar(30) promotion_info" json:"promotion_info"`
	// 地址
	Address string `xorm:"varchar(100) address" json:"address"`
	// 联系电话
	Phone string `xorm:"varchar(11) phone" json:"phone"`
	// 店铺营业状态
	Status string `xorm:"tinyint status" json:"status"`
	// 经度
	Longitude float64 `xorm:"float longitude" json:"longitude"`
	// 纬度
	Latitude float64 `xorm:"float latitude" json:"latitude"`
	// 店铺图标
	ImagePath string `xorm:"varchar(255) image_path" json:"image_path"`

	IsNew bool `xorm:"bool is_new" json:"is_new"`
	//
	IsPremium bool `xorm:"bool is_premium" json:"is_premium"`

	// 商铺评分
	Rating float32 `xorm:"float rating" json:"rating"`
	// 评分总数
	RatingCount int64 `xorm:"int rating_count" json:"rating_count"`
	// 当前订单总数
	RecentOrderNum int64 `xorm:"int recent_order_num" json:"recent_order_num"`

	// 配送起送价
	MinimumOrederAmount int32 `xorm:"int minimum_oreder_amount" json:"minimum_oreder_amount"`
	// 配送费
	DeliveryFee int32 `xorm:"int delivery_fee" json:"delivery_fee"`

	// 营业时间
	OpeningHours string `xorm:"varchar(20) opening_hours" json:"opening_hours"`
}

type SmsCode

type SmsCode struct {
	// pk autoincr 表示主键,自增
	// xorm:"phone" 这里面的列名用phone表示
	// json:"phone" 这里是用来将Json格式化为结构体用的
	Id         int       `xorm:"not null pk autoincr INT(11)" json:"id"`
	Phone      string    `xorm:"phone" json:"phone"`
	BizId      string    `xorm:"biz_id" json:"biz_id"`
	Code       string    `xorm:"code" json:"code"`
	CreateTime time.Time `xorm:"DATETIME"`
}

Jump to

Keyboard shortcuts

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