service

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service wraps database operations

func NewService

func NewService(dal dal.Dal) *Service

func (*Service) CreateField

func (s *Service) CreateField(cf *models.CustomizedField) errors.Error

CreateField creates a new column for the table cf.TbName and creates a new record in the table `_tool_customized_fields`

func (*Service) DeleteField

func (s *Service) DeleteField(table, field string) errors.Error

DeleteField deletes the `field` form the `table`

func (*Service) GetFields

func (s *Service) GetFields(table string) ([]models.CustomizedField, errors.Error)

GetFields returns all the fields of the table

func (*Service) ImportIssue

func (s *Service) ImportIssue(boardId string, file io.ReadCloser) errors.Error

func (*Service) ImportIssueCommit

func (s *Service) ImportIssueCommit(rawDataParams string, file io.ReadCloser) errors.Error

func (*Service) ImportIssueRepoCommit

func (s *Service) ImportIssueRepoCommit(rawDataParams string, file io.ReadCloser) errors.Error

ImportIssueRepoCommit imports data to the table `issue_repo_commits` and `issue_commits`

func (*Service) SaveBoard

func (s *Service) SaveBoard(boardId, boardName string) errors.Error

Jump to

Keyboard shortcuts

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