dao

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

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

Dao dao

func New

func New(c *conf.Config) (dao *Dao)

New init mysql db

func (*Dao) AllBugs

func (d *Dao) AllBugs(ps int, bugURL string) (res *model.BugResponse, err error)

AllBugs All Bugs

func (*Dao) AllCategories

func (d *Dao) AllCategories(ps int, categoryURL string) (categoryMap map[string]string, err error)

AllCategories get all categories of project

func (*Dao) AllIterations

func (d *Dao) AllIterations(ps int, iterationURL string) (res *model.IterationResponse, err error)

AllIterations get all iterations by query url

func (*Dao) AllStories

func (d *Dao) AllStories(ps int, storyURL string) (res *model.StoryResponse, err error)

AllStories get all stories by query url

func (*Dao) AllStoryChanges

func (d *Dao) AllStoryChanges(ps int, storyChangeURL string) (res *model.StoryChangeResponse, err error)

AllStoryChanges get all story changes by query url

func (*Dao) Bug

func (d *Dao) Bug(bugURL string) (res *model.BugResponse, err error)

Bug Bug

func (*Dao) BugPre

func (d *Dao) BugPre(workSpaceID, bugID string) (bug *model.Bug, err error)

BugPre Bug Pre

func (*Dao) BugVersion

func (d *Dao) BugVersion(c context.Context, projectID, platformID string) (ret []*model.BugVersion, err error)

BugVersion Bug Version .

func (*Dao) BuglyIssue

func (d *Dao) BuglyIssue(c context.Context, bugIssueRequest *model.BugIssueRequest) (ret *model.BugRet, err error)

BuglyIssue Get Issue.

func (*Dao) BuglyIssueAndRetry

func (d *Dao) BuglyIssueAndRetry(c context.Context, bugIssueRequest *model.BugIssueRequest) (ret *model.BugRet, err error)

BuglyIssueAndRetry Bugly Issue And Retry.

func (*Dao) BuglyIssueDetail

func (d *Dao) BuglyIssueDetail(c context.Context, projectID, platformID, issueNo string) (bugIssueDetail *model.BugIssueDetail, err error)

BuglyIssueDetail Get Issue Detail.

func (*Dao) BuglyIssueDetailAndRetry

func (d *Dao) BuglyIssueDetailAndRetry(c context.Context, projectID, platformID, issueNo string) (bugIssueDetail *model.BugIssueDetail, err error)

BuglyIssueDetailAndRetry Bugly Issue Detail And Retry.

func (*Dao) BuglyIssueExceptionList

func (d *Dao) BuglyIssueExceptionList(c context.Context, projectID, platformID, issueNo string) (bugIssueException *model.IssueException, err error)

BuglyIssueExceptionList Bugly Issue Exception List.

func (*Dao) Category

func (d *Dao) Category(categoryURL string) (res *model.CategoryResponse, err error)

Category fetch project category

func (*Dao) CategoryPre

func (d *Dao) CategoryPre(workSpaceID, releaseID string) (category *model.Category, err error)

CategoryPre Category Pre

func (*Dao) CategoryPreName

func (d *Dao) CategoryPreName(workspaceID, categoryID string) (categoryPreName string, err error)

CategoryPreName Category PreName

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) CreateBug

func (d *Dao) CreateBug(bug *model.Bug) (bugID string, err error)

CreateBug Create Bug.

func (*Dao) FindBugTemplates

func (d *Dao) FindBugTemplates(projectID string) (bugTemplate *model.BugTemplate, err error)

FindBugTemplates Find Bug Templates.

func (*Dao) GetIssueLastTime

func (d *Dao) GetIssueLastTime(version string) (issueLastTime *model.IssueLastTime, err error)

GetIssueLastTime Get Issue LastTime.

func (*Dao) GetIssueRecord

func (d *Dao) GetIssueRecord(issueNo, version string) (issueRecord *model.IssueRecord, err error)

GetIssueRecord Get Issue Record.

func (*Dao) GetIssueRecordHasInTapd

func (d *Dao) GetIssueRecordHasInTapd(projectID string) (issueRecords []*model.IssueRecord, err error)

GetIssueRecordHasInTapd Get Issue Record in tapd.

func (*Dao) GetIssueRecordNotInTapd

func (d *Dao) GetIssueRecordNotInTapd(issueFilterSQL string) (issueRecords []*model.IssueRecord, err error)

GetIssueRecordNotInTapd Get Issue Record Not in tapd.

func (*Dao) InsertIssueLastTime

func (d *Dao) InsertIssueLastTime(issueLastTime *model.IssueLastTime) (err error)

InsertIssueLastTime Insert Issue Last Time.

func (*Dao) InsertIssueRecord

func (d *Dao) InsertIssueRecord(issueRecord *model.IssueRecord) (err error)

InsertIssueRecord Insert Issue Record.

func (*Dao) Iteration

func (d *Dao) Iteration(iterationURL string) (res *model.IterationResponse, err error)

Iteration fetch iterations

func (*Dao) NameMap

func (d *Dao) NameMap(nameMapURL string) (res *model.NameMapResponse, err error)

NameMap fetch story status name mapping

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping verify server is ok.

func (*Dao) Release

func (d *Dao) Release(workSpaceID, releaseID string) (release *model.Release, err error)

Release Release

func (*Dao) ReleaseName

func (d *Dao) ReleaseName(workspaceID, releaseID string) (releaseName string, err error)

ReleaseName ReleaseName

func (*Dao) SendMail

func (d *Dao) SendMail(message *gomail.Message)

SendMail asynchronous send mail.

func (*Dao) SpecStory

func (d *Dao) SpecStory(storyURL string) (res *model.SpecStoryResponse, err error)

SpecStory fetch specific story

func (*Dao) Story

func (d *Dao) Story(storyURL string) (res *model.StoryResponse, err error)

Story fetch stories

func (*Dao) StoryChange

func (d *Dao) StoryChange(storyChangeURL string) (res *model.StoryChangeResponse, err error)

StoryChange fetch story changes

func (*Dao) UpdateBug

func (d *Dao) UpdateBug(bug *model.UpdateBug) (err error)

UpdateBug Update Bug.

func (*Dao) UpdateIssueRecord

func (d *Dao) UpdateIssueRecord(issueRecord *model.IssueRecord) (err error)

UpdateIssueRecord Update Issue Record.

func (*Dao) UpdateIssueRecordTapdBugID

func (d *Dao) UpdateIssueRecordTapdBugID(id int64, tapdBugID string) (err error)

UpdateIssueRecordTapdBugID Update Issue Record Tapd Bug ID.

func (*Dao) UpdateLastIssue

func (d *Dao) UpdateLastIssue(issueLastTime *model.IssueLastTime) (err error)

UpdateLastIssue Update Last Issue.

func (*Dao) UpdateLastIssueTime

func (d *Dao) UpdateLastIssueTime(issueLastTime *model.IssueLastTime) (err error)

UpdateLastIssueTime Update Last Issue Time.

func (*Dao) UpdateTaskStatus

func (d *Dao) UpdateTaskStatus(issueLastTime *model.IssueLastTime) (err error)

UpdateTaskStatus Update Task Status.

func (*Dao) UpdateToken

func (d *Dao) UpdateToken() (err error)

UpdateToken Update Token.

func (*Dao) UpdateVersionRecord

func (d *Dao) UpdateVersionRecord(issueLastTime *model.IssueLastTime) (err error)

UpdateVersionRecord Update Version Record.

Jump to

Keyboard shortcuts

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