Documentation
¶
Index ¶
- Constants
- type CardInfo
- type ClassesDO
- func (do *ClassesDO) GetClassNo() string
- func (do *ClassesDO) GetCreatedAt() string
- func (do *ClassesDO) GetId() int32
- func (do *ClassesDO) GetUpdatedAt() string
- func (do *ClassesDO) GetUserId() int32
- func (do *ClassesDO) SetClassNo(v string)
- func (do *ClassesDO) SetCreatedAt(v string)
- func (do *ClassesDO) SetId(v int32)
- func (do *ClassesDO) SetUpdatedAt(v string)
- func (do *ClassesDO) SetUserId(v int32)
- type JsonsDO
- func (do *JsonsDO) GetCreatedAt() string
- func (do *JsonsDO) GetId() int32
- func (do *JsonsDO) GetName() string
- func (do *JsonsDO) GetSex() int32
- func (do *JsonsDO) GetUpdatedAt() string
- func (do *JsonsDO) GetUserData() *UserData
- func (do *JsonsDO) SetCreatedAt(v string)
- func (do *JsonsDO) SetId(v int32)
- func (do *JsonsDO) SetName(v string)
- func (do *JsonsDO) SetSex(v int32)
- func (do *JsonsDO) SetUpdatedAt(v string)
- func (do *JsonsDO) SetUserData(v *UserData)
- type OrdersDO
- func (do *OrdersDO) GetAmount() sqlca.Decimal
- func (do *OrdersDO) GetCreatedAt() string
- func (do *OrdersDO) GetDetails() struct{}
- func (do *OrdersDO) GetId() int32
- func (do *OrdersDO) GetLocation() string
- func (do *OrdersDO) GetName() string
- func (do *OrdersDO) GetUpdatedAt() string
- func (do *OrdersDO) SetAmount(v sqlca.Decimal)
- func (do *OrdersDO) SetCreatedAt(v string)
- func (do *OrdersDO) SetDetails(v struct{})
- func (do *OrdersDO) SetId(v int32)
- func (do *OrdersDO) SetLocation(v string)
- func (do *OrdersDO) SetName(v string)
- func (do *OrdersDO) SetUpdatedAt(v string)
- type RunConfigDO
- func (do *RunConfigDO) GetConfigKey() string
- func (do *RunConfigDO) GetConfigName() string
- func (do *RunConfigDO) GetConfigValue() string
- func (do *RunConfigDO) GetCreatedTime() string
- func (do *RunConfigDO) GetDeleted() bool
- func (do *RunConfigDO) GetId() int32
- func (do *RunConfigDO) GetRemark() string
- func (do *RunConfigDO) SetConfigKey(v string)
- func (do *RunConfigDO) SetConfigName(v string)
- func (do *RunConfigDO) SetConfigValue(v string)
- func (do *RunConfigDO) SetCreatedTime(v string)
- func (do *RunConfigDO) SetDeleted(v bool)
- func (do *RunConfigDO) SetId(v int32)
- func (do *RunConfigDO) SetRemark(v string)
- type TAddressDO
- func (do *TAddressDO) GetGeohash() string
- func (do *TAddressDO) GetId() uint64
- func (do *TAddressDO) GetLat() float64
- func (do *TAddressDO) GetLng() float64
- func (do *TAddressDO) GetLocation() string
- func (do *TAddressDO) GetName() string
- func (do *TAddressDO) SetGeohash(v string)
- func (do *TAddressDO) SetId(v uint64)
- func (do *TAddressDO) SetLat(v float64)
- func (do *TAddressDO) SetLng(v float64)
- func (do *TAddressDO) SetLocation(v string)
- func (do *TAddressDO) SetName(v string)
- type TPointDO
- func (do *TPointDO) GetAddresId() uint64
- func (do *TPointDO) GetAddressPoint() string
- func (do *TPointDO) GetGeohash() string
- func (do *TPointDO) GetLat() float64
- func (do *TPointDO) GetLng() float64
- func (do *TPointDO) GetName() string
- func (do *TPointDO) SetAddresId(v uint64)
- func (do *TPointDO) SetAddressPoint(v string)
- func (do *TPointDO) SetGeohash(v string)
- func (do *TPointDO) SetLat(v float64)
- func (do *TPointDO) SetLng(v float64)
- func (do *TPointDO) SetName(v string)
- type UserData
- type UsersDO
- func (do *UsersDO) GetBalance() sqlca.Decimal
- func (do *UsersDO) GetCreatedAt() string
- func (do *UsersDO) GetDataSize() int64
- func (do *UsersDO) GetDeletedAt() string
- func (do *UsersDO) GetDisable() bool
- func (do *UsersDO) GetEmail() string
- func (do *UsersDO) GetExtraData() *UserData
- func (do *UsersDO) GetId() uint32
- func (do *UsersDO) GetName() string
- func (do *UsersDO) GetPhone() string
- func (do *UsersDO) GetSex() uint8
- func (do *UsersDO) GetSexName() string
- func (do *UsersDO) GetUpdatedAt() string
- func (do *UsersDO) SetBalance(v sqlca.Decimal)
- func (do *UsersDO) SetCreatedAt(v string)
- func (do *UsersDO) SetDataSize(v int64)
- func (do *UsersDO) SetDeletedAt(v string)
- func (do *UsersDO) SetDisable(v bool)
- func (do *UsersDO) SetEmail(v string)
- func (do *UsersDO) SetExtraData(v *UserData)
- func (do *UsersDO) SetId(v uint32)
- func (do *UsersDO) SetName(v string)
- func (do *UsersDO) SetPhone(v string)
- func (do *UsersDO) SetSex(v uint8)
- func (do *UsersDO) SetSexName(v string)
- func (do *UsersDO) SetUpdatedAt(v string)
Constants ¶
View Source
const ( CLASSES_COLUMN_ID = "id" CLASSES_COLUMN_CLASS_NO = "class_no" CLASSES_COLUMN_USER_ID = "user_id" CLASSES_COLUMN_CREATED_AT = "created_at" CLASSES_COLUMN_UPDATED_AT = "updated_at" )
View Source
const ( JSONS_COLUMN_ID = "id" JSONS_COLUMN_NAME = "name" JSONS_COLUMN_SEX = "sex" JSONS_COLUMN_USER_DATA = "user_data" JSONS_COLUMN_CREATED_AT = "created_at" JSONS_COLUMN_UPDATED_AT = "updated_at" )
View Source
const ( ORDERS_COLUMN_ID = "id" ORDERS_COLUMN_NAME = "name" ORDERS_COLUMN_DETAILS = "details" ORDERS_COLUMN_AMOUNT = "amount" ORDERS_COLUMN_CREATED_AT = "created_at" ORDERS_COLUMN_UPDATED_AT = "updated_at" ORDERS_COLUMN_LOCATION = "location" )
View Source
const ( RUN_CONFIG_COLUMN_ID = "id" RUN_CONFIG_COLUMN_CONFIG_NAME = "config_name" RUN_CONFIG_COLUMN_CONFIG_KEY = "config_key" RUN_CONFIG_COLUMN_CONFIG_VALUE = "config_value" RUN_CONFIG_COLUMN_REMARK = "remark" RUN_CONFIG_COLUMN_DELETED = "deleted" RUN_CONFIG_COLUMN_CREATED_TIME = "created_time" )
View Source
const ( T_ADDRESS_COLUMN_ID = "id" T_ADDRESS_COLUMN_LNG = "lng" T_ADDRESS_COLUMN_LAT = "lat" T_ADDRESS_COLUMN_NAME = "name" T_ADDRESS_COLUMN_GEOHASH = "geohash" T_ADDRESS_COLUMN_LOCATION = "location" )
View Source
const ( T_POINT_COLUMN_ADDRES_ID = "addres_id" T_POINT_COLUMN_ADDRESS_POINT = "address_point" T_POINT_COLUMN_LNG = "lng" T_POINT_COLUMN_LAT = "lat" T_POINT_COLUMN_NAME = "name" T_POINT_COLUMN_GEOHASH = "geohash" )
View Source
const ( USERS_COLUMN_ID = "id" USERS_COLUMN_NAME = "name" USERS_COLUMN_PHONE = "phone" USERS_COLUMN_SEX = "sex" USERS_COLUMN_EMAIL = "email" USERS_COLUMN_DISABLE = "disable" USERS_COLUMN_BALANCE = "balance" USERS_COLUMN_SEX_NAME = "sex_name" USERS_COLUMN_DATA_SIZE = "data_size" USERS_COLUMN_EXTRA_DATA = "extra_data" USERS_COLUMN_CREATED_AT = "created_at" USERS_COLUMN_UPDATED_AT = "updated_at" USERS_COLUMN_DELETED_AT = "deleted_at" )
View Source
const TableNameClasses = "classes" //
View Source
const TableNameJsons = "jsons" //
View Source
const TableNameOrders = "orders" //
View Source
const TableNameRunConfig = "run_config" //run config table
View Source
const TableNameTAddress = "t_address" //
View Source
const TableNameTPoint = "t_point" //
View Source
const TableNameUsers = "users" //
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassesDO ¶
type ClassesDO struct {
Id int32 `json:"id" db:"id" bson:"_id"` //incr id
ClassNo string `json:"class_no" db:"class_no" bson:"class_no"` //class no
UserId int32 `json:"user_id" db:"user_id" bson:"user_id"` //student id
CreatedAt string `json:"created_at" db:"created_at" sqlca:"readonly" bson:"created_at"` //create time
UpdatedAt string `json:"updated_at" db:"updated_at" sqlca:"readonly" bson:"updated_at"` //update time
}
func (*ClassesDO) GetClassNo ¶
func (*ClassesDO) GetCreatedAt ¶
func (*ClassesDO) GetUpdatedAt ¶
func (*ClassesDO) SetClassNo ¶
func (*ClassesDO) SetCreatedAt ¶
func (*ClassesDO) SetUpdatedAt ¶
type JsonsDO ¶
type JsonsDO struct {
Id int32 `json:"id" db:"id" bson:"_id"` //自增ID
Name string `json:"name" db:"name" bson:"name"` //用户名
Sex int32 `json:"sex" db:"sex" bson:"sex"` //性别
UserData *UserData `json:"user_data" db:"user_data" bson:"user_data"` //用户JSON数据
CreatedAt string `json:"created_at" db:"created_at" sqlca:"readonly" bson:"created_at"` //创建时间
UpdatedAt string `json:"updated_at" db:"updated_at" sqlca:"readonly" bson:"updated_at"` //更新时间
}
func (*JsonsDO) GetCreatedAt ¶
func (*JsonsDO) GetUpdatedAt ¶
func (*JsonsDO) GetUserData ¶
func (*JsonsDO) SetCreatedAt ¶
func (*JsonsDO) SetUpdatedAt ¶
func (*JsonsDO) SetUserData ¶
type OrdersDO ¶
type OrdersDO struct {
Id int32 `json:"id" db:"id" bson:"_id"` //自增ID(主键)
Name string `json:"name" db:"name" bson:"name"` //订单名称
Details struct{} `json:"details" db:"details" sqlca:"isnull" bson:"details"` //订单明细
Amount sqlca.Decimal `json:"amount" db:"amount" bson:"amount"` //金额
CreatedAt string `json:"created_at" db:"created_at" sqlca:"readonly" bson:"created_at"` //创建时间
UpdatedAt string `json:"updated_at" db:"updated_at" sqlca:"readonly" bson:"updated_at"` //更新时间
Location string `json:"location" db:"location" sqlca:"isnull" bson:"location"` //位置
}
func (*OrdersDO) GetCreatedAt ¶
func (*OrdersDO) GetDetails ¶
func (do *OrdersDO) GetDetails() struct{}
func (*OrdersDO) GetLocation ¶
func (*OrdersDO) GetUpdatedAt ¶
func (*OrdersDO) SetCreatedAt ¶
func (*OrdersDO) SetDetails ¶
func (do *OrdersDO) SetDetails(v struct{})
func (*OrdersDO) SetLocation ¶
func (*OrdersDO) SetUpdatedAt ¶
type RunConfigDO ¶
type RunConfigDO struct {
Id int32 `json:"id" db:"id" bson:"id"` //incr id
ConfigName string `json:"config_name" db:"config_name" bson:"config_name"` //config name
ConfigKey string `json:"config_key" db:"config_key" bson:"config_key"` //config key
ConfigValue string `json:"config_value" db:"config_value" bson:"config_value"` //config value
Remark string `json:"remark" db:"remark" bson:"remark"` //remark
Deleted bool `json:"deleted" db:"deleted" bson:"deleted"` //is deleted(0=false 1=true)
CreatedTime string `json:"created_time" db:"created_time" sqlca:"readonly" bson:"created_time"` //created time
}
func (*RunConfigDO) GetConfigKey ¶
func (do *RunConfigDO) GetConfigKey() string
func (*RunConfigDO) GetConfigName ¶
func (do *RunConfigDO) GetConfigName() string
func (*RunConfigDO) GetConfigValue ¶
func (do *RunConfigDO) GetConfigValue() string
func (*RunConfigDO) GetCreatedTime ¶
func (do *RunConfigDO) GetCreatedTime() string
func (*RunConfigDO) GetDeleted ¶
func (do *RunConfigDO) GetDeleted() bool
func (*RunConfigDO) GetId ¶
func (do *RunConfigDO) GetId() int32
func (*RunConfigDO) GetRemark ¶
func (do *RunConfigDO) GetRemark() string
func (*RunConfigDO) SetConfigKey ¶
func (do *RunConfigDO) SetConfigKey(v string)
func (*RunConfigDO) SetConfigName ¶
func (do *RunConfigDO) SetConfigName(v string)
func (*RunConfigDO) SetConfigValue ¶
func (do *RunConfigDO) SetConfigValue(v string)
func (*RunConfigDO) SetCreatedTime ¶
func (do *RunConfigDO) SetCreatedTime(v string)
func (*RunConfigDO) SetDeleted ¶
func (do *RunConfigDO) SetDeleted(v bool)
func (*RunConfigDO) SetId ¶
func (do *RunConfigDO) SetId(v int32)
func (*RunConfigDO) SetRemark ¶
func (do *RunConfigDO) SetRemark(v string)
type TAddressDO ¶
type TAddressDO struct {
Id uint64 `json:"id" db:"id" bson:"id"` //
Lng float64 `json:"lng" db:"lng" bson:"lng"` //
Lat float64 `json:"lat" db:"lat" bson:"lat"` //
Name string `json:"name" db:"name" bson:"name"` //
Geohash string `json:"geohash" db:"geohash" bson:"geohash"` //
Location string `json:"location" db:"location" bson:"location"` //
}
func (*TAddressDO) GetGeohash ¶
func (do *TAddressDO) GetGeohash() string
func (*TAddressDO) GetId ¶
func (do *TAddressDO) GetId() uint64
func (*TAddressDO) GetLat ¶
func (do *TAddressDO) GetLat() float64
func (*TAddressDO) GetLng ¶
func (do *TAddressDO) GetLng() float64
func (*TAddressDO) GetLocation ¶
func (do *TAddressDO) GetLocation() string
func (*TAddressDO) GetName ¶
func (do *TAddressDO) GetName() string
func (*TAddressDO) SetGeohash ¶
func (do *TAddressDO) SetGeohash(v string)
func (*TAddressDO) SetId ¶
func (do *TAddressDO) SetId(v uint64)
func (*TAddressDO) SetLat ¶
func (do *TAddressDO) SetLat(v float64)
func (*TAddressDO) SetLng ¶
func (do *TAddressDO) SetLng(v float64)
func (*TAddressDO) SetLocation ¶
func (do *TAddressDO) SetLocation(v string)
func (*TAddressDO) SetName ¶
func (do *TAddressDO) SetName(v string)
type TPointDO ¶
type TPointDO struct {
AddresId uint64 `json:"addres_id" db:"addres_id" bson:"addres_id"` //
AddressPoint string `json:"address_point" db:"address_point" bson:"address_point"` //
Lng float64 `json:"lng" db:"lng" bson:"lng"` //
Lat float64 `json:"lat" db:"lat" bson:"lat"` //
Name string `json:"name" db:"name" bson:"name"` //
Geohash string `json:"geohash" db:"geohash" bson:"geohash"` //
}
func (*TPointDO) GetAddresId ¶
func (*TPointDO) GetAddressPoint ¶
func (*TPointDO) GetGeohash ¶
func (*TPointDO) SetAddresId ¶
func (*TPointDO) SetAddressPoint ¶
func (*TPointDO) SetGeohash ¶
type UsersDO ¶
type UsersDO struct {
Id uint32 `json:"id" db:"id" bson:"_id"` //auto inc id
Name string `json:"name" db:"name" bson:"name"` //user name
Phone string `json:"phone" db:"phone" bson:"phone"` //phone number
Sex uint8 `json:"sex" db:"sex" bson:"sex"` //user sex
Email string `json:"email" db:"email" bson:"email"` //email
Disable bool `json:"disable" db:"disable" bson:"disable"` //disabled(0=false 1=true)
Balance sqlca.Decimal `json:"balance" db:"balance" bson:"balance"` //balance of decimal
SexName string `json:"sex_name" db:"sex_name" bson:"sex_name"` //sex name
DataSize int64 `json:"data_size" db:"data_size" bson:"data_size"` //data size
ExtraData *UserData `json:"extra_data" db:"extra_data" sqlca:"isnull" bson:"extra_data"` //extra data
CreatedAt string `json:"created_at" db:"created_at" sqlca:"readonly" bson:"created_at"` //create time
UpdatedAt string `json:"updated_at" db:"updated_at" sqlca:"readonly" bson:"updated_at"` //update time
DeletedAt string `json:"deleted_at" db:"deleted_at" sqlca:"isnull" bson:"deleted_at"` //delete time
}
func (*UsersDO) GetBalance ¶
func (*UsersDO) GetCreatedAt ¶
func (*UsersDO) GetDataSize ¶ added in v2.5.1
func (*UsersDO) GetDeletedAt ¶ added in v2.5.1
func (*UsersDO) GetDisable ¶
func (*UsersDO) GetExtraData ¶
func (*UsersDO) GetSexName ¶
func (*UsersDO) GetUpdatedAt ¶
func (*UsersDO) SetBalance ¶
func (*UsersDO) SetCreatedAt ¶
func (*UsersDO) SetDataSize ¶ added in v2.5.1
func (*UsersDO) SetDeletedAt ¶ added in v2.5.1
func (*UsersDO) SetDisable ¶
func (*UsersDO) SetExtraData ¶
func (*UsersDO) SetSexName ¶
func (*UsersDO) SetUpdatedAt ¶
Click to show internal directories.
Click to hide internal directories.