Documentation
¶
Index ¶
- func DeleteDbFile() error
- func ExistsDbFile() error
- func InitDb()
- type Project
- type ProjectRepository
- type ProjectRepositoryImpl
- func (t *ProjectRepositoryImpl) CheckExistsCurrentProject() bool
- func (t *ProjectRepositoryImpl) FindById(id int) *Project
- func (t *ProjectRepositoryImpl) GetCurrentProject() *Project
- func (t *ProjectRepositoryImpl) GetList() *[]Project
- func (t *ProjectRepositoryImpl) Insert(project *Project) error
- func (t *ProjectRepositoryImpl) Update(project *Project) error
- type Task
- type TaskRepository
- type TaskRepositoryImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDbFile ¶
func DeleteDbFile() error
func ExistsDbFile ¶
func ExistsDbFile() error
Types ¶
type ProjectRepository ¶
type ProjectRepositoryImpl ¶
type ProjectRepositoryImpl struct{}
func (*ProjectRepositoryImpl) CheckExistsCurrentProject ¶
func (t *ProjectRepositoryImpl) CheckExistsCurrentProject() bool
func (*ProjectRepositoryImpl) FindById ¶
func (t *ProjectRepositoryImpl) FindById(id int) *Project
func (*ProjectRepositoryImpl) GetCurrentProject ¶
func (t *ProjectRepositoryImpl) GetCurrentProject() *Project
func (*ProjectRepositoryImpl) GetList ¶
func (t *ProjectRepositoryImpl) GetList() *[]Project
func (*ProjectRepositoryImpl) Insert ¶
func (t *ProjectRepositoryImpl) Insert(project *Project) error
func (*ProjectRepositoryImpl) Update ¶
func (t *ProjectRepositoryImpl) Update(project *Project) error
type Task ¶
type Task struct {
gorm.Model
Title string `gorm:"type:varchar(255);not null"`
Label string `gorm:"type:varchar(64)"`
Status string `gorm:"type:varchar(32)"`
DueDate time.Time `gorm:""`
Priority int `gorm:""`
HideFlg bool `gorm:"type:boolean;not null;default false"`
ProjectID uint
}
func (*Task) GetDueDate ¶
type TaskRepository ¶
type TaskRepositoryImpl ¶
type TaskRepositoryImpl struct{}
func (*TaskRepositoryImpl) DeleteTask ¶
func (p *TaskRepositoryImpl) DeleteTask(id int)
func (*TaskRepositoryImpl) FindById ¶
func (p *TaskRepositoryImpl) FindById(id int) *Task
func (*TaskRepositoryImpl) GetList ¶
func (t *TaskRepositoryImpl) GetList(allFlag bool, label string, sort string) *[]Task
func (*TaskRepositoryImpl) Insert ¶
func (t *TaskRepositoryImpl) Insert(task *Task) error
func (*TaskRepositoryImpl) Update ¶
func (t *TaskRepositoryImpl) Update(task *Task) error
Click to show internal directories.
Click to hide internal directories.