Documentation ¶
Index ¶
- func NewCsvFileResponseBuilder(responseContext *context.Response, fileName string) *responseBuild
- func NewErrorResponse(code int, message string) *apiResponseError
- func NewResponseBuilder(responseContext *context.Response) *responseBuild
- type Account
- type AccountDelete
- type AccountInsert
- type AccountUpdate
- type AccountUpdateFields
- type AuthLogin
- type AuthPayload
- type AuthRegister
- type Category
- type CategoryDelete
- type CategoryInsert
- type CategoryUpdate
- type CategoryUpdateFields
- type GoogleOauthUser
- type MailParam
- type MailSuccessResponse
- type PieChartSliceInfo
- type PieChartSliceInfoWithoutId
- type ReccurenceTransactionInterval
- type RequestResetUserPasswordBody
- type ResetUserPassword
- type ResetUserPasswordBody
- type ResponseBuilder
- type Transaction
- type TransactionDelete
- type TransactionDescriptionAutocomplete
- type TransactionDescriptionAutocompleteResponse
- type TransactionExportCsv
- type TransactionImportCsv
- type TransactionInsert
- type TransactionNoObjectId
- type TransactionQuery
- type TransactionUpdate
- type TransactionUpdateFields
- type User
- type UserDelete
- type UserItem
- type UserUpdate
- type UserUpdateFields
- type UserUpdateFieldsInModel
- type VerifyUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorResponse ¶
func NewResponseBuilder ¶
Types ¶
type Account ¶
type AccountDelete ¶
type AccountInsert ¶
type AccountUpdate ¶
type AccountUpdate struct { Ids []primitive.ObjectID `json:"ids" bson:"ids"` Update AccountUpdateFields `json:"update" bson:"update"` }
type AccountUpdateFields ¶
type AuthPayload ¶
type AuthRegister ¶
type AuthRegister struct { Username string `json:"username,omitempty" bson:"username,omitempty"` Email string `json:"email,omitempty" bson:"email,omitempty"` Password string `json:"password,omitempty" bson:"password,omitempty"` Verified *bool `json:"verified,omitempty" bson:"verified,omitempty"` GoogleId *string `json:"googleId,omitempty" bson:"googleId,omitempty"` }
type Category ¶
type CategoryDelete ¶
type CategoryInsert ¶
type CategoryUpdate ¶
type CategoryUpdate struct { Ids []primitive.ObjectID `json:"ids" bson:"ids"` Update CategoryUpdateFields `json:"update" bson:"update"` }
type CategoryUpdateFields ¶
type GoogleOauthUser ¶
type MailSuccessResponse ¶
type PieChartSliceInfo ¶
type ReccurenceTransactionInterval ¶
type ReccurenceTransactionInterval int
const ( RepeatDay ReccurenceTransactionInterval = iota RepeatWeek RepeatMonth RepeatYear )
func (ReccurenceTransactionInterval) GetTimeFrom ¶
func (ReccurenceTransactionInterval) String ¶
func (r ReccurenceTransactionInterval) String() string
type RequestResetUserPasswordBody ¶
type RequestResetUserPasswordBody struct {
Email *string `json:"email,omitempty" bson:"email,omitempty"`
}
type ResetUserPassword ¶
type ResetUserPasswordBody ¶
type ResponseBuilder ¶
type Transaction ¶
type Transaction struct { Id *primitive.ObjectID `json:"id" bson:"_id"` User *primitive.ObjectID `json:"user" bson:"user"` Account *primitive.ObjectID `json:"account" bson:"account"` Category *primitive.ObjectID `json:"category" bson:"category"` Amount *float32 `json:"amount" bson:"amount"` Description *string `json:"description" bson:"description"` DateTime *time.Time `json:"dateTime" bson:"dateTime"` Picture *string `json:"picture" bson:"picture"` Location *string `json:"location" bson:"location"` IsReccurent *bool `json:"isReccurent" bson:"isReccurent"` RepeatCount *int `json:"repeatCount" bson:"repeatCount"` RepeatInterval *int `json:"repeatInterval" bson:"repeatInterval"` ReccurenceLastDate *time.Time `json:"reccurenceLastDate" bson:"reccurenceLastDate"` }
func (*Transaction) MarshalCSV ¶
func (t *Transaction) MarshalCSV() ([]string, error)
func (*Transaction) String ¶
func (t *Transaction) String() string
type TransactionDelete ¶
type TransactionDescriptionAutocompleteResponse ¶
type TransactionDescriptionAutocompleteResponse struct {
Id *string `json:"_id,omitempty" bson:"_id,omitempty"`
}
type TransactionExportCsv ¶
type TransactionImportCsv ¶
type TransactionImportCsv struct {
Csv *string `json:"csv,omitempty" bson:"csv,omitempty"`
}
type TransactionInsert ¶
type TransactionInsert struct { User *primitive.ObjectID `jso:"user,omitempty" bson:"user,omitempty"` Account *primitive.ObjectID `json:"account,omitempty" bson:"account,omitempty"` Category *primitive.ObjectID `json:"category,omitempty" bson:"category,omitempty"` Amount *float32 `json:"amount,omitempty" bson:"amount,omitempty"` Description *string `json:"description,omitempty" bson:"description,omitempty"` DateTime *time.Time `json:"dateTime,omitempty" bson:"dateTime,omitempty"` Picture *string `json:"picture,omitempty" bson:"picture,omitempty"` Location *string `json:"location" bson:"location"` IsReccurent *bool `json:"isReccurent" bson:"isReccurent"` RepeatCount *int `json:"repeatCount" bson:"repeatCount"` RepeatInterval *ReccurenceTransactionInterval `json:"repeatInterval" bson:"repeatInterval"` ReccurenceLastDate *time.Time `json:"reccurenceLastDate" bson:"reccurenceLastDate"` }
func (*TransactionInsert) UnMarshalCSV ¶
func (t *TransactionInsert) UnMarshalCSV(line []string) (err error)
type TransactionNoObjectId ¶
type TransactionNoObjectId struct { Id *primitive.ObjectID `json:"id" bson:"_id"` Account *string `json:"account" bson:"account"` Category *string `json:"category" bson:"category"` Amount *float32 `json:"amount" bson:"amount"` Description *string `json:"description" bson:"description"` DateTime *time.Time `json:"dateTime" bson:"dateTime"` Picture *string `json:"picture" bson:"picture"` Location *string `json:"location" bson:"location"` IsReccurent *bool `json:"isReccurent" bson:"isReccurent"` RepeatCount *int `json:"repeatCount" bson:"repeatCount"` RepeatInterval *ReccurenceTransactionInterval `json:"repeatInterval" bson:"repeatInterval"` ReccurenceLastDate *time.Time `json:"reccurenceLastDate" bson:"reccurenceLastDate"` }
func (*TransactionNoObjectId) CloneWithDifferentDateTime ¶
func (t *TransactionNoObjectId) CloneWithDifferentDateTime() *TransactionNoObjectId
type TransactionQuery ¶
type TransactionQuery struct { User *primitive.ObjectID `json:"user,omitempty" bson:"user,omitempty"` Account *primitive.ObjectID `json:"account,omitempty" bson:"account,omitempty"` Category *primitive.ObjectID `json:"category,omitempty" bson:"category,omitempty"` Description *string `json:"description,omitempty" bson:"description,omitempty"` DateTimeStart *time.Time `json:"dateTimeStart,omitempty" bson:"dateTimeStart,omitempty"` DateTimeEnd *time.Time `json:"dateTimeEnd,omitempty" bson:"dateTimeEnd,omitempty"` AmountMoreThan *float32 `json:"amountMoreThan,omitempty" bson:"amountMoreThan,omitempty"` AmountLessThan *float32 `json:"amountLessThan,omitempty" bson:"amountLessThan,omitempty"` Limit int `json:"limit,omitempty" bson:"limit,omitempty"` AfterCursor *primitive.ObjectID `json:"afterCursor,omitempty" bson:"afterCursor,omitempty"` }
type TransactionUpdate ¶
type TransactionUpdate struct { Ids []primitive.ObjectID `json:"ids" bson:"ids"` Update TransactionUpdateFields `json:"update" bson:"update"` }
type TransactionUpdateFields ¶
type TransactionUpdateFields struct { Account *primitive.ObjectID `json:"account,omitempty" bson:"account,omitempty"` Category *primitive.ObjectID `json:"category,omitempty" bson:"category,omitempty"` Amount *float32 `json:"amount,omitempty" bson:"amount,omitempty"` Description *string `json:"description,omitempty" bson:"description,omitempty"` DateTime *time.Time `json:"dateTime,omitempty" bson:"dateTime,omitempty"` Picture *string `json:"picture,omitempty" bson:"picture,omitempty"` Location *string `json:"location" bson:"location"` IsReccurent *bool `json:"isReccurent" bson:"isReccurent"` RepeatCount *int `json:"repeatCount" bson:"repeatCount"` RepeatInterval *ReccurenceTransactionInterval `json:"repeatInterval" bson:"repeatInterval"` ReccurenceLastDate *time.Time `json:"reccurenceLastDate" bson:"reccurenceLastDate"` }
type User ¶
type User struct { Id primitive.ObjectID `json:"id" bson:"_id"` Username string `json:"username" bson:"username"` Email string `json:"email" bson:"email"` Password string `json:"password" bson:"password"` Picture string `json:"picture" bson:"picture"` Verified bool `json:"verified" bson:"verified"` GoogleId string `json:"googleId" bson:"googleId"` }
type UserDelete ¶
type UserUpdate ¶
type UserUpdate struct { Id primitive.ObjectID `json:"id" bson:"_id"` Update UserUpdateFields `json:"update" bson:"update"` }
type UserUpdateFields ¶
type UserUpdateFieldsInModel ¶
type UserUpdateFieldsInModel struct { Username *string `json:"username,omitempty" bson:"username,omitempty"` Email *string `json:"email,omitempty" bson:"email,omitempty"` Password *string `json:"password,omitempty" bson:"password,omitempty"` Picture *string `json:"picture,omitempty" bson:"picture,omitempty"` }
Click to show internal directories.
Click to hide internal directories.