Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AllBugs(ps int, bugURL string) (res *model.BugResponse, err error)
- func (d *Dao) AllCategories(ps int, categoryURL string) (categoryMap map[string]string, err error)
- func (d *Dao) AllIterations(ps int, iterationURL string) (res *model.IterationResponse, err error)
- func (d *Dao) AllStories(ps int, storyURL string) (res *model.StoryResponse, err error)
- func (d *Dao) AllStoryChanges(ps int, storyChangeURL string) (res *model.StoryChangeResponse, err error)
- func (d *Dao) Bug(bugURL string) (res *model.BugResponse, err error)
- func (d *Dao) BugPre(workSpaceID, bugID string) (bug *model.Bug, err error)
- func (d *Dao) BugVersion(c context.Context, projectID, platformID string) (ret []*model.BugVersion, err error)
- func (d *Dao) BuglyIssue(c context.Context, bugIssueRequest *model.BugIssueRequest) (ret *model.BugRet, err error)
- func (d *Dao) BuglyIssueAndRetry(c context.Context, bugIssueRequest *model.BugIssueRequest) (ret *model.BugRet, err error)
- func (d *Dao) BuglyIssueDetail(c context.Context, projectID, platformID, issueNo string) (bugIssueDetail *model.BugIssueDetail, err error)
- func (d *Dao) BuglyIssueDetailAndRetry(c context.Context, projectID, platformID, issueNo string) (bugIssueDetail *model.BugIssueDetail, err error)
- func (d *Dao) BuglyIssueExceptionList(c context.Context, projectID, platformID, issueNo string) (bugIssueException *model.IssueException, err error)
- func (d *Dao) Category(categoryURL string) (res *model.CategoryResponse, err error)
- func (d *Dao) CategoryPre(workSpaceID, releaseID string) (category *model.Category, err error)
- func (d *Dao) CategoryPreName(workspaceID, categoryID string) (categoryPreName string, err error)
- func (d *Dao) Close()
- func (d *Dao) CreateBug(bug *model.Bug) (bugID string, err error)
- func (d *Dao) FindBugTemplates(projectID string) (bugTemplate *model.BugTemplate, err error)
- func (d *Dao) GetIssueLastTime(version string) (issueLastTime *model.IssueLastTime, err error)
- func (d *Dao) GetIssueRecord(issueNo, version string) (issueRecord *model.IssueRecord, err error)
- func (d *Dao) GetIssueRecordHasInTapd(projectID string) (issueRecords []*model.IssueRecord, err error)
- func (d *Dao) GetIssueRecordNotInTapd(issueFilterSQL string) (issueRecords []*model.IssueRecord, err error)
- func (d *Dao) InsertIssueLastTime(issueLastTime *model.IssueLastTime) (err error)
- func (d *Dao) InsertIssueRecord(issueRecord *model.IssueRecord) (err error)
- func (d *Dao) Iteration(iterationURL string) (res *model.IterationResponse, err error)
- func (d *Dao) NameMap(nameMapURL string) (res *model.NameMapResponse, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Release(workSpaceID, releaseID string) (release *model.Release, err error)
- func (d *Dao) ReleaseName(workspaceID, releaseID string) (releaseName string, err error)
- func (d *Dao) SendMail(message *gomail.Message)
- func (d *Dao) SpecStory(storyURL string) (res *model.SpecStoryResponse, err error)
- func (d *Dao) Story(storyURL string) (res *model.StoryResponse, err error)
- func (d *Dao) StoryChange(storyChangeURL string) (res *model.StoryChangeResponse, err error)
- func (d *Dao) UpdateBug(bug *model.UpdateBug) (err error)
- func (d *Dao) UpdateIssueRecord(issueRecord *model.IssueRecord) (err error)
- func (d *Dao) UpdateIssueRecordTapdBugID(id int64, tapdBugID string) (err error)
- func (d *Dao) UpdateLastIssue(issueLastTime *model.IssueLastTime) (err error)
- func (d *Dao) UpdateLastIssueTime(issueLastTime *model.IssueLastTime) (err error)
- func (d *Dao) UpdateTaskStatus(issueLastTime *model.IssueLastTime) (err error)
- func (d *Dao) UpdateToken() (err error)
- func (d *Dao) UpdateVersionRecord(issueLastTime *model.IssueLastTime) (err error)
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 (*Dao) AllCategories ¶
AllCategories get all categories of project
func (*Dao) AllIterations ¶
AllIterations get all iterations by query url
func (*Dao) AllStories ¶
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) 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 ¶
CategoryPre Category Pre
func (*Dao) CategoryPreName ¶
CategoryPreName Category PreName
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) ReleaseName ¶
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) UpdateIssueRecord ¶
func (d *Dao) UpdateIssueRecord(issueRecord *model.IssueRecord) (err error)
UpdateIssueRecord Update Issue Record.
func (*Dao) UpdateIssueRecordTapdBugID ¶
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) UpdateVersionRecord ¶
func (d *Dao) UpdateVersionRecord(issueLastTime *model.IssueLastTime) (err error)
UpdateVersionRecord Update Version Record.