model

package
v0.0.0-...-aea9c82 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kutipan

type Kutipan struct {
	gorm.Model         `swaggerignore:"true"`
	Id                 int64   `gorm:"column:id;primaryKey" json:"id"`
	TabungId           int64   `gorm:"column:tabung_id" json:"-"`
	Tabung             Tabung  `gorm:"foreignKey:TabungId" json:"tabung"`
	Total1c            int     `gorm:"column:total1c" json:"total1c"`
	Total5c            int     `gorm:"column:total5c" json:"total5c"`
	Total10c           int     `gorm:"column:total10c" json:"total10c"`
	Total20c           int     `gorm:"column:total20c" json:"total20c"`
	Total50c           int     `gorm:"column:total50c" json:"total50c"`
	Total1d            int     `gorm:"column:total1d" json:"total1d"`
	Total5d            int     `gorm:"column:total5d" json:"total5d"`
	Total10d           int     `gorm:"column:total10d" json:"total10d"`
	Total20d           int     `gorm:"column:total20d" json:"total20d"`
	Total50d           int     `gorm:"column:total50d" json:"total50d"`
	Total100d          int     `gorm:"column:total100d" json:"total100d"`
	Total              float64 `gorm:"-" json:"total"`
	CreateDate         int64   `gorm:"column:create_date" json:"createDate"`
	gorm2.MultiTenancy `swaggerignore:"true"`
}

func (Kutipan) TableName

func (Kutipan) TableName() string

type Paginate

type Paginate struct {
	Page int `json:"page"`
	Size int `json:"size"`
}

type QueryParams

type QueryParams struct {
	TabungId int64 `json:"tabungId"`
	FromDate int64 `json:"fromDate"`
	ToDate   int64 `json:"toDate"`
}

type Response

type Response struct {
	Content interface{} `json:"content"`
	Total   int         `json:"total"`
}

type Tabung

type Tabung struct {
	gorm.Model         `swaggerignore:"true"`
	Id                 int64      `gorm:"column:id;primaryKey" json:"id"`
	Name               string     `gorm:"column:name" json:"name"`
	IsCents            bool       `gorm:"column:is_cents" json:"cents"`
	TabungTypeId       int64      `gorm:"column:tabung_types_id" json:"-"`
	TabungType         TabungType `gorm:"foreignKey:TabungTypeId" json:"tabungType"`
	gorm2.MultiTenancy `swaggerignore:"true"`
}

func (Tabung) TableName

func (Tabung) TableName() string

type TabungType

type TabungType struct {
	gorm.Model         `swaggerignore:"true"`
	Id                 int64  `gorm:"column:id;primaryKey" json:"id"`
	Name               string `gorm:"column:name" json:"name"`
	gorm2.MultiTenancy `swaggerignore:"true"`
}

func (TabungType) TableName

func (TabungType) TableName() string

Jump to

Keyboard shortcuts

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