domain_expense_comment

package
v0.0.0-...-d76bcad Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebtDomainRepository

type DebtDomainRepository interface {
	GetByID(id uint64) (ExpenseComment, error)
	GetLimitedByExpenseID(expenseID uint64, offset int, limit uint) ([]ExpenseComment, error)
	Create(expenseComment *ExpenseComment) error
	Update(expenseComment ExpenseComment) error
	Delete(id uint64) error
}

type ExpenseComment

type ExpenseComment struct {
	ID uint64

	UserID    uint64 `gorm:"not null"`
	User      domain_user.User
	ExpenseID uint64 `gorm:"not null"`
	Expense   domain_expense.Expense

	Content string `gorm:"not null,size:400" validate:"description"`

	CreatedAt time.Time `gorm:"not null"`
	UpdatedAt time.Time `gorm:"not null"`
}

Jump to

Keyboard shortcuts

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