base

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	StatusCode int64  `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" form:"status_msg" json:"status_msg" query:"status_msg"`
}

func NewBaseResponse

func NewBaseResponse() *BaseResponse

func (*BaseResponse) GetStatusCode

func (p *BaseResponse) GetStatusCode() (v int64)

func (*BaseResponse) GetStatusMsg

func (p *BaseResponse) GetStatusMsg() (v string)

func (*BaseResponse) Read

func (p *BaseResponse) Read(iprot thrift.TProtocol) (err error)

func (*BaseResponse) ReadField1

func (p *BaseResponse) ReadField1(iprot thrift.TProtocol) error

func (*BaseResponse) ReadField2

func (p *BaseResponse) ReadField2(iprot thrift.TProtocol) error

func (*BaseResponse) String

func (p *BaseResponse) String() string

func (*BaseResponse) Write

func (p *BaseResponse) Write(oprot thrift.TProtocol) (err error)

type Car

type Car struct {
	Status   CarStatus `thrift:"status,1" form:"status" json:"status" query:"status"`
	Driver   *Driver   `thrift:"driver,2" form:"driver" json:"driver" query:"driver"`
	Position *Position `thrift:"position,3" form:"position" json:"position" query:"position"`
	TripID   string    `thrift:"trip_id,4" form:"trip_id" json:"trip_id" query:"trip_id"`
	Power    float64   `thrift:"power,5" form:"power" json:"power" query:"power"`
	PlateNum string    `thrift:"plate_num,6" form:"plate_num" json:"plate_num" query:"plate_num"`
}
var CarEntity_Car_DEFAULT *Car

func NewCar

func NewCar() *Car

func (*Car) GetDriver

func (p *Car) GetDriver() (v *Driver)

func (*Car) GetPlateNum

func (p *Car) GetPlateNum() (v string)

func (*Car) GetPosition

func (p *Car) GetPosition() (v *Position)

func (*Car) GetPower

func (p *Car) GetPower() (v float64)

func (*Car) GetStatus

func (p *Car) GetStatus() (v CarStatus)

func (*Car) GetTripID

func (p *Car) GetTripID() (v string)

func (*Car) IsSetDriver

func (p *Car) IsSetDriver() bool

func (*Car) IsSetPosition

func (p *Car) IsSetPosition() bool

func (*Car) Read

func (p *Car) Read(iprot thrift.TProtocol) (err error)

func (*Car) ReadField1

func (p *Car) ReadField1(iprot thrift.TProtocol) error

func (*Car) ReadField2

func (p *Car) ReadField2(iprot thrift.TProtocol) error

func (*Car) ReadField3

func (p *Car) ReadField3(iprot thrift.TProtocol) error

func (*Car) ReadField4

func (p *Car) ReadField4(iprot thrift.TProtocol) error

func (*Car) ReadField5

func (p *Car) ReadField5(iprot thrift.TProtocol) error

func (*Car) ReadField6

func (p *Car) ReadField6(iprot thrift.TProtocol) error

func (*Car) String

func (p *Car) String() string

func (*Car) Write

func (p *Car) Write(oprot thrift.TProtocol) (err error)

type CarEntity

type CarEntity struct {
	ID  string `thrift:"id,1" form:"id" json:"id" query:"id"`
	Car *Car   `thrift:"car,2" form:"car" json:"car" query:"car"`
}

func NewCarEntity

func NewCarEntity() *CarEntity

func (*CarEntity) GetCar

func (p *CarEntity) GetCar() (v *Car)

func (*CarEntity) GetID

func (p *CarEntity) GetID() (v string)

func (*CarEntity) IsSetCar

func (p *CarEntity) IsSetCar() bool

func (*CarEntity) Read

func (p *CarEntity) Read(iprot thrift.TProtocol) (err error)

func (*CarEntity) ReadField1

func (p *CarEntity) ReadField1(iprot thrift.TProtocol) error

func (*CarEntity) ReadField2

func (p *CarEntity) ReadField2(iprot thrift.TProtocol) error

func (*CarEntity) String

func (p *CarEntity) String() string

func (*CarEntity) Write

func (p *CarEntity) Write(oprot thrift.TProtocol) (err error)

type CarStatus

type CarStatus int64
const (
	CarStatus_CS_NOT_SPECIFIED CarStatus = 0
	CarStatus_LOCKED           CarStatus = 1
	CarStatus_UNLOCKING        CarStatus = 2
	CarStatus_UNLOCKED         CarStatus = 3
	CarStatus_LOCKING          CarStatus = 4
)

func CarStatusFromString

func CarStatusFromString(s string) (CarStatus, error)

func CarStatusPtr

func CarStatusPtr(v CarStatus) *CarStatus

func (*CarStatus) Scan

func (p *CarStatus) Scan(value interface{}) (err error)

func (CarStatus) String

func (p CarStatus) String() string

func (*CarStatus) Value

func (p *CarStatus) Value() (driver.Value, error)

type Driver

type Driver struct {
	ID        string `thrift:"id,1" form:"id" json:"id" query:"id"`
	AvatarURL string `thrift:"avatar_url,2" form:"avatar_url" json:"avatar_url" query:"avatar_url"`
}
var Car_Driver_DEFAULT *Driver

func NewDriver

func NewDriver() *Driver

func (*Driver) GetAvatarURL

func (p *Driver) GetAvatarURL() (v string)

func (*Driver) GetID

func (p *Driver) GetID() (v string)

func (*Driver) Read

func (p *Driver) Read(iprot thrift.TProtocol) (err error)

func (*Driver) ReadField1

func (p *Driver) ReadField1(iprot thrift.TProtocol) error

func (*Driver) ReadField2

func (p *Driver) ReadField2(iprot thrift.TProtocol) error

func (*Driver) String

func (p *Driver) String() string

func (*Driver) Write

func (p *Driver) Write(oprot thrift.TProtocol) (err error)

type Gender

type Gender int64

Profile Service

const (
	Gender_G_NOT_SPECIFIED Gender = 0
	Gender_MALE            Gender = 1
	Gender_FEMALE          Gender = 2
)

func GenderFromString

func GenderFromString(s string) (Gender, error)

func GenderPtr

func GenderPtr(v Gender) *Gender

func (*Gender) Scan

func (p *Gender) Scan(value interface{}) (err error)

func (Gender) String

func (p Gender) String() string

func (*Gender) Value

func (p *Gender) Value() (driver.Value, error)

type Identity

type Identity struct {
	LicNumber       string `thrift:"lic_number,1" form:"lic_number" json:"lic_number" query:"lic_number"`
	Name            string `thrift:"name,2" form:"name" json:"name" query:"name"`
	Gender          Gender `thrift:"gender,3" form:"gender" json:"gender" query:"gender"`
	BirthDateMillis int64  `thrift:"birth_date_millis,4" form:"birth_date_millis" json:"birth_date_millis" query:"birth_date_millis"`
}
var Profile_Identity_DEFAULT *Identity

func NewIdentity

func NewIdentity() *Identity

func (*Identity) GetBirthDateMillis

func (p *Identity) GetBirthDateMillis() (v int64)

func (*Identity) GetGender

func (p *Identity) GetGender() (v Gender)

func (*Identity) GetLicNumber

func (p *Identity) GetLicNumber() (v string)

func (*Identity) GetName

func (p *Identity) GetName() (v string)

func (*Identity) Read

func (p *Identity) Read(iprot thrift.TProtocol) (err error)

func (*Identity) ReadField1

func (p *Identity) ReadField1(iprot thrift.TProtocol) error

func (*Identity) ReadField2

func (p *Identity) ReadField2(iprot thrift.TProtocol) error

func (*Identity) ReadField3

func (p *Identity) ReadField3(iprot thrift.TProtocol) error

func (*Identity) ReadField4

func (p *Identity) ReadField4(iprot thrift.TProtocol) error

func (*Identity) String

func (p *Identity) String() string

func (*Identity) Write

func (p *Identity) Write(oprot thrift.TProtocol) (err error)

type IdentityStatus

type IdentityStatus int64
const (
	IdentityStatus_UNSUBMITTED IdentityStatus = 0
	IdentityStatus_PENDING     IdentityStatus = 1
	IdentityStatus_VERIFIED    IdentityStatus = 2
	IdentityStatus_AUDITFAILED IdentityStatus = 3
)

func IdentityStatusFromString

func IdentityStatusFromString(s string) (IdentityStatus, error)

func IdentityStatusPtr

func IdentityStatusPtr(v IdentityStatus) *IdentityStatus

func (*IdentityStatus) Scan

func (p *IdentityStatus) Scan(value interface{}) (err error)

func (IdentityStatus) String

func (p IdentityStatus) String() string

func (*IdentityStatus) Value

func (p *IdentityStatus) Value() (driver.Value, error)

type Location

type Location struct {
	Latitude  float64 `thrift:"latitude,1" form:"latitude" json:"latitude" query:"latitude"`
	Longitude float64 `thrift:"longitude,2" form:"longitude" json:"longitude" query:"longitude"`
}

Trip Service

var LocationStatus_Location_DEFAULT *Location

func NewLocation

func NewLocation() *Location

func (*Location) GetLatitude

func (p *Location) GetLatitude() (v float64)

func (*Location) GetLongitude

func (p *Location) GetLongitude() (v float64)

func (*Location) Read

func (p *Location) Read(iprot thrift.TProtocol) (err error)

func (*Location) ReadField1

func (p *Location) ReadField1(iprot thrift.TProtocol) error

func (*Location) ReadField2

func (p *Location) ReadField2(iprot thrift.TProtocol) error

func (*Location) String

func (p *Location) String() string

func (*Location) Write

func (p *Location) Write(oprot thrift.TProtocol) (err error)

type LocationStatus

type LocationStatus struct {
	Location     *Location `thrift:"location,1" form:"location" json:"location" query:"location"`
	FeeCent      int32     `thrift:"fee_cent,2" form:"fee_cent" json:"fee_cent" query:"fee_cent"`
	KmDriven     float64   `thrift:"km_driven,3" form:"km_driven" json:"km_driven" query:"km_driven"`
	PoiName      string    `thrift:"poi_name,4" form:"poi_name" json:"poi_name" query:"poi_name"`
	TimestampSec int64     `thrift:"timestamp_sec,5" form:"timestamp_sec" json:"timestamp_sec" query:"timestamp_sec"`
}
var Trip_Current_DEFAULT *LocationStatus
var Trip_End_DEFAULT *LocationStatus
var Trip_Start_DEFAULT *LocationStatus

func NewLocationStatus

func NewLocationStatus() *LocationStatus

func (*LocationStatus) GetFeeCent

func (p *LocationStatus) GetFeeCent() (v int32)

func (*LocationStatus) GetKmDriven

func (p *LocationStatus) GetKmDriven() (v float64)

func (*LocationStatus) GetLocation

func (p *LocationStatus) GetLocation() (v *Location)

func (*LocationStatus) GetPoiName

func (p *LocationStatus) GetPoiName() (v string)

func (*LocationStatus) GetTimestampSec

func (p *LocationStatus) GetTimestampSec() (v int64)

func (*LocationStatus) IsSetLocation

func (p *LocationStatus) IsSetLocation() bool

func (*LocationStatus) Read

func (p *LocationStatus) Read(iprot thrift.TProtocol) (err error)

func (*LocationStatus) ReadField1

func (p *LocationStatus) ReadField1(iprot thrift.TProtocol) error

func (*LocationStatus) ReadField2

func (p *LocationStatus) ReadField2(iprot thrift.TProtocol) error

func (*LocationStatus) ReadField3

func (p *LocationStatus) ReadField3(iprot thrift.TProtocol) error

func (*LocationStatus) ReadField4

func (p *LocationStatus) ReadField4(iprot thrift.TProtocol) error

func (*LocationStatus) ReadField5

func (p *LocationStatus) ReadField5(iprot thrift.TProtocol) error

func (*LocationStatus) String

func (p *LocationStatus) String() string

func (*LocationStatus) Write

func (p *LocationStatus) Write(oprot thrift.TProtocol) (err error)

type NilResponse

type NilResponse struct {
}

func NewNilResponse

func NewNilResponse() *NilResponse

func (*NilResponse) Read

func (p *NilResponse) Read(iprot thrift.TProtocol) (err error)

func (*NilResponse) String

func (p *NilResponse) String() string

func (*NilResponse) Write

func (p *NilResponse) Write(oprot thrift.TProtocol) (err error)

type Position

type Position struct {
	Latitude  float64 `thrift:"latitude,1" form:"latitude" json:"latitude" query:"latitude"`
	Longitude float64 `thrift:"longitude,2" form:"longitude" json:"longitude" query:"longitude"`
}
var Car_Position_DEFAULT *Position

func NewPosition

func NewPosition() *Position

func (*Position) GetLatitude

func (p *Position) GetLatitude() (v float64)

func (*Position) GetLongitude

func (p *Position) GetLongitude() (v float64)

func (*Position) Read

func (p *Position) Read(iprot thrift.TProtocol) (err error)

func (*Position) ReadField1

func (p *Position) ReadField1(iprot thrift.TProtocol) error

func (*Position) ReadField2

func (p *Position) ReadField2(iprot thrift.TProtocol) error

func (*Position) String

func (p *Position) String() string

func (*Position) Write

func (p *Position) Write(oprot thrift.TProtocol) (err error)

type Profile

type Profile struct {
	Identity       *Identity      `thrift:"identity,1" form:"identity" json:"identity" query:"identity"`
	IdentityStatus IdentityStatus `thrift:"identity_status,2" form:"identity_status" json:"identity_status" query:"identity_status"`
}
var ProfileRecord_Profile_DEFAULT *Profile

func NewProfile

func NewProfile() *Profile

func (*Profile) GetIdentity

func (p *Profile) GetIdentity() (v *Identity)

func (*Profile) GetIdentityStatus

func (p *Profile) GetIdentityStatus() (v IdentityStatus)

func (*Profile) IsSetIdentity

func (p *Profile) IsSetIdentity() bool

func (*Profile) Read

func (p *Profile) Read(iprot thrift.TProtocol) (err error)

func (*Profile) ReadField1

func (p *Profile) ReadField1(iprot thrift.TProtocol) error

func (*Profile) ReadField2

func (p *Profile) ReadField2(iprot thrift.TProtocol) error

func (*Profile) String

func (p *Profile) String() string

func (*Profile) Write

func (p *Profile) Write(oprot thrift.TProtocol) (err error)

type ProfileRecord

type ProfileRecord struct {
	AccountID   string   `thrift:"account_id,1" form:"account_id" json:"account_id" query:"account_id"`
	PhotoBlobID string   `thrift:"photo_blob_id,2" form:"photo_blob_id" json:"photo_blob_id" query:"photo_blob_id"`
	Profile     *Profile `thrift:"profile,3" form:"profile" json:"profile" query:"profile"`
}

func NewProfileRecord

func NewProfileRecord() *ProfileRecord

func (*ProfileRecord) GetAccountID

func (p *ProfileRecord) GetAccountID() (v string)

func (*ProfileRecord) GetPhotoBlobID

func (p *ProfileRecord) GetPhotoBlobID() (v string)

func (*ProfileRecord) GetProfile

func (p *ProfileRecord) GetProfile() (v *Profile)

func (*ProfileRecord) IsSetProfile

func (p *ProfileRecord) IsSetProfile() bool

func (*ProfileRecord) Read

func (p *ProfileRecord) Read(iprot thrift.TProtocol) (err error)

func (*ProfileRecord) ReadField1

func (p *ProfileRecord) ReadField1(iprot thrift.TProtocol) error

func (*ProfileRecord) ReadField2

func (p *ProfileRecord) ReadField2(iprot thrift.TProtocol) error

func (*ProfileRecord) ReadField3

func (p *ProfileRecord) ReadField3(iprot thrift.TProtocol) error

func (*ProfileRecord) String

func (p *ProfileRecord) String() string

func (*ProfileRecord) Write

func (p *ProfileRecord) Write(oprot thrift.TProtocol) (err error)

type Trip

type Trip struct {
	AccountID  string          `thrift:"account_id,1" form:"account_id" json:"account_id" query:"account_id"`
	CarID      string          `thrift:"car_id,2" form:"car_id" json:"car_id" query:"car_id"`
	Start      *LocationStatus `thrift:"start,3" form:"start" json:"start" query:"start"`
	Current    *LocationStatus `thrift:"current,4" form:"current" json:"current" query:"current"`
	End        *LocationStatus `thrift:"end,5" form:"end" json:"end" query:"end"`
	Status     TripStatus      `thrift:"status,6" form:"status" json:"status" query:"status"`
	IdentityID string          `thrift:"identity_id,7" form:"identity_id" json:"identity_id" query:"identity_id"`
}
var TripEntity_Trip_DEFAULT *Trip

func NewTrip

func NewTrip() *Trip

func (*Trip) GetAccountID

func (p *Trip) GetAccountID() (v string)

func (*Trip) GetCarID

func (p *Trip) GetCarID() (v string)

func (*Trip) GetCurrent

func (p *Trip) GetCurrent() (v *LocationStatus)

func (*Trip) GetEnd

func (p *Trip) GetEnd() (v *LocationStatus)

func (*Trip) GetIdentityID

func (p *Trip) GetIdentityID() (v string)

func (*Trip) GetStart

func (p *Trip) GetStart() (v *LocationStatus)

func (*Trip) GetStatus

func (p *Trip) GetStatus() (v TripStatus)

func (*Trip) IsSetCurrent

func (p *Trip) IsSetCurrent() bool

func (*Trip) IsSetEnd

func (p *Trip) IsSetEnd() bool

func (*Trip) IsSetStart

func (p *Trip) IsSetStart() bool

func (*Trip) Read

func (p *Trip) Read(iprot thrift.TProtocol) (err error)

func (*Trip) ReadField1

func (p *Trip) ReadField1(iprot thrift.TProtocol) error

func (*Trip) ReadField2

func (p *Trip) ReadField2(iprot thrift.TProtocol) error

func (*Trip) ReadField3

func (p *Trip) ReadField3(iprot thrift.TProtocol) error

func (*Trip) ReadField4

func (p *Trip) ReadField4(iprot thrift.TProtocol) error

func (*Trip) ReadField5

func (p *Trip) ReadField5(iprot thrift.TProtocol) error

func (*Trip) ReadField6

func (p *Trip) ReadField6(iprot thrift.TProtocol) error

func (*Trip) ReadField7

func (p *Trip) ReadField7(iprot thrift.TProtocol) error

func (*Trip) String

func (p *Trip) String() string

func (*Trip) Write

func (p *Trip) Write(oprot thrift.TProtocol) (err error)

type TripEntity

type TripEntity struct {
	ID   string `thrift:"id,1" form:"id" json:"id" query:"id"`
	Trip *Trip  `thrift:"trip,2" form:"trip" json:"trip" query:"trip"`
}

func NewTripEntity

func NewTripEntity() *TripEntity

func (*TripEntity) GetID

func (p *TripEntity) GetID() (v string)

func (*TripEntity) GetTrip

func (p *TripEntity) GetTrip() (v *Trip)

func (*TripEntity) IsSetTrip

func (p *TripEntity) IsSetTrip() bool

func (*TripEntity) Read

func (p *TripEntity) Read(iprot thrift.TProtocol) (err error)

func (*TripEntity) ReadField1

func (p *TripEntity) ReadField1(iprot thrift.TProtocol) error

func (*TripEntity) ReadField2

func (p *TripEntity) ReadField2(iprot thrift.TProtocol) error

func (*TripEntity) String

func (p *TripEntity) String() string

func (*TripEntity) Write

func (p *TripEntity) Write(oprot thrift.TProtocol) (err error)

type TripStatus

type TripStatus int64
const (
	TripStatus_TS_NOT_SPECIFIED TripStatus = 0
	TripStatus_IN_PROGRESS      TripStatus = 1
	TripStatus_FINISHED         TripStatus = 2
)

func TripStatusFromString

func TripStatusFromString(s string) (TripStatus, error)

func TripStatusPtr

func TripStatusPtr(v TripStatus) *TripStatus

func (*TripStatus) Scan

func (p *TripStatus) Scan(value interface{}) (err error)

func (TripStatus) String

func (p TripStatus) String() string

func (*TripStatus) Value

func (p *TripStatus) Value() (driver.Value, error)

type User

type User struct {
	AccountID    string `thrift:"account_id,1" form:"account_id" json:"account_id" query:"account_id"`
	Username     string `thrift:"username,2" form:"username" json:"username" query:"username"`
	PhoneNumber  string `thrift:"phone_number,3" form:"phone_number" json:"phone_number" query:"phone_number"`
	AvatarBlobID string `thrift:"avatar_blob_id,4" form:"avatar_blob_id" json:"avatar_blob_id" query:"avatar_blob_id"`
	OpenID       string `thrift:"open_id,5" form:"open_id" json:"open_id" query:"open_id"`
}

func NewUser

func NewUser() *User

func (*User) GetAccountID

func (p *User) GetAccountID() (v string)

func (*User) GetAvatarBlobID

func (p *User) GetAvatarBlobID() (v string)

func (*User) GetOpenID

func (p *User) GetOpenID() (v string)

func (*User) GetPhoneNumber

func (p *User) GetPhoneNumber() (v string)

func (*User) GetUsername

func (p *User) GetUsername() (v string)

func (*User) Read

func (p *User) Read(iprot thrift.TProtocol) (err error)

func (*User) ReadField1

func (p *User) ReadField1(iprot thrift.TProtocol) error

func (*User) ReadField2

func (p *User) ReadField2(iprot thrift.TProtocol) error

func (*User) ReadField3

func (p *User) ReadField3(iprot thrift.TProtocol) error

func (*User) ReadField4

func (p *User) ReadField4(iprot thrift.TProtocol) error

func (*User) ReadField5

func (p *User) ReadField5(iprot thrift.TProtocol) error

func (*User) String

func (p *User) String() string

func (*User) Write

func (p *User) Write(oprot thrift.TProtocol) (err error)

type UserInfo

type UserInfo struct {
	AccountID   string `thrift:"account_id,1" form:"account_id" json:"account_id" query:"account_id"`
	Username    string `thrift:"username,2" form:"username" json:"username" query:"username"`
	PhoneNumber string `thrift:"phone_number,3" form:"phone_number" json:"phone_number" query:"phone_number"`
	AvatarURL   string `thrift:"avatar_url,4" form:"avatar_url" json:"avatar_url" query:"avatar_url"`
}

func NewUserInfo

func NewUserInfo() *UserInfo

func (*UserInfo) GetAccountID

func (p *UserInfo) GetAccountID() (v string)

func (*UserInfo) GetAvatarURL

func (p *UserInfo) GetAvatarURL() (v string)

func (*UserInfo) GetPhoneNumber

func (p *UserInfo) GetPhoneNumber() (v string)

func (*UserInfo) GetUsername

func (p *UserInfo) GetUsername() (v string)

func (*UserInfo) Read

func (p *UserInfo) Read(iprot thrift.TProtocol) (err error)

func (*UserInfo) ReadField1

func (p *UserInfo) ReadField1(iprot thrift.TProtocol) error

func (*UserInfo) ReadField2

func (p *UserInfo) ReadField2(iprot thrift.TProtocol) error

func (*UserInfo) ReadField3

func (p *UserInfo) ReadField3(iprot thrift.TProtocol) error

func (*UserInfo) ReadField4

func (p *UserInfo) ReadField4(iprot thrift.TProtocol) error

func (*UserInfo) String

func (p *UserInfo) String() string

func (*UserInfo) Write

func (p *UserInfo) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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