Documentation ¶
Index ¶
Constants ¶
View Source
const ( SortAscending = `asc` SortDescending = `desc` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audit ¶
type Audit struct { Id string `bson:"_id,omitempty" json:"id"` CreatedBy *User `bson:"created_by,omitempty" json:"created_by"` CreatedDate time.Time `bson:"created_date,omitempty" json:"created_date"` UpdatedBy *User `bson:"updated_by,omitempty" json:"updated_by"` UpdatedDate time.Time `bson:"updated_date,omitempty" json:"updated_date"` Version uint64 `bson:"version,omitempty" json:"version"` Delete bool `bson:"delete" json:"delete"` }
type Coordinate ¶
type Coordinate struct { Latitude float64 `bson:"latitude" json:"latitude" form:"latitude" binding:"required"` Longitude float64 `bson:"longitude" json:"longitude" form:"longitude" binding:"required"` }
func (Coordinate) ToCoordinates ¶
func (c Coordinate) ToCoordinates() []float64
func (Coordinate) ToReversedString ¶
func (c Coordinate) ToReversedString() string
func (Coordinate) ToString ¶
func (c Coordinate) ToString() string
type Paging ¶
type Paging struct { Page int64 `json:"page,default=1" form:"page,default=1"` ItemPerPage int64 `json:"item_per_page,default=10" form:"item_per_page,default=10"` SortBy string `json:"sort_by" form:"sort_by"` }
func (Paging) BuildSortField ¶
type PagingResponse ¶
type Sort ¶
func (Sort) BuildSortBy ¶
type TransactionRequest ¶
type TransactionRequest struct { CustomerReferenceNumber string `json:"customer_reference_number" form:"customer_reference_number" binding:"required"` ClientDateTime dateProperty.DateTime `json:"client_date_time" form:"client_date_time" binding:"required"` }
type User ¶
type User struct { Identity string `bson:"identity,omitempty" json:"identity,omitempty"` Username string `bson:"username,omitempty" json:"username,omitempty"` FullName string `bson:"full_name,omitempty" json:"full_name,omitempty"` }
func (User) ToUserResponse ¶
func (u User) ToUserResponse() UserResponse
type UserRequest ¶
type UserRequest struct { Identity string `bson:"identity,omitempty" json:"identity,omitempty"` Username string `bson:"username,omitempty" json:"username,omitempty"` FullName string `bson:"full_name,omitempty" json:"full_name,omitempty"` }
func (UserRequest) ToUser ¶
func (u UserRequest) ToUser() User
type UserResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.