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: 21 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) 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) BuglyIssue

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

BuglyIssue Get Issue.

func (*Dao) BuglyIssueAndRetry

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

BuglyIssueAndRetry Bugly Issue And Retry.

func (*Dao) BuglyIssueDetail

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

BuglyIssueDetail Get Issue Detail.

func (*Dao) BuglyIssueDetailAndRetry

func (d *Dao) BuglyIssueDetailAndRetry(c context.Context, buglyCookie *model.BuglyCookie, 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, buglyCookie *model.BuglyCookie, projectID, platformID, issueNo string) (bugIssueException *model.IssueException, err error)

BuglyIssueExceptionList Bugly Issue Exception List.

func (*Dao) BuglyVersion

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

BuglyVersion Bugly Version .

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) CreateUser

func (d *Dao) CreateUser(user *model.User) error

CreateUser create user.

func (*Dao) DelUser

func (d *Dao) DelUser(user *model.User) error

DelUser delete user.

func (*Dao) FindBugRecords

func (d *Dao) FindBugRecords(req *model.QueryBugRecordsRequest) (total int64, tapdBugRecords []*model.TapdBugRecord, err error)

FindBugRecords Find Bug Records.

func (*Dao) FindBuglyBatchRuns

func (d *Dao) FindBuglyBatchRuns(req *model.QueryBuglyBatchRunsRequest) (total int64, buglyBatchRuns []*model.BuglyBatchRun, err error)

FindBuglyBatchRuns Find Bugly Batch Runs.

func (*Dao) FindBuglyIssues

func (d *Dao) FindBuglyIssues(req *model.QueryBuglyIssueRequest) (total int64, buglyIssues []*model.BuglyIssue, err error)

FindBuglyIssues Find Bugly Issues.

func (*Dao) FindBuglyProjectVersions

func (d *Dao) FindBuglyProjectVersions(req *model.QueryBuglyVersionRequest) (total int64, buglyProjectVersions []*model.BuglyProjectVersion, err error)

FindBuglyProjectVersions Find Bugly Project Versions.

func (*Dao) FindBuglyProjects

func (d *Dao) FindBuglyProjects(req *model.QueryBuglyProjectRequest) (total int64, buglyProject []*model.BuglyProject, err error)

FindBuglyProjects Find Bugly Project.

func (*Dao) FindCookies

func (d *Dao) FindCookies(req *model.QueryBuglyCookiesRequest) (total int64, buglyCookies []*model.BuglyCookie, err error)

FindCookies Find Cookies.

func (*Dao) FindEnableAndReadyVersions

func (d *Dao) FindEnableAndReadyVersions() (buglyVersions []*model.BuglyVersion, err error)

FindEnableAndReadyVersions Find Enable And Ready Versions.

func (*Dao) FindTapdBugPriorityConfs

func (d *Dao) FindTapdBugPriorityConfs(req *model.QueryTapdBugPriorityConfsRequest) (total int64, tapdBugPriorityConfs []*model.TapdBugPriorityConf, err error)

FindTapdBugPriorityConfs Find Tapd Bug Priority Confs.

func (*Dao) FindTapdBugTemplates

func (d *Dao) FindTapdBugTemplates(req *model.QueryTapdBugTemplateRequest) (total int64, tapdBugTemplates []*model.TapdBugTemplate, err error)

FindTapdBugTemplates Find tapd Bug Templates.

func (*Dao) FindTapdBugVersionTemplates

func (d *Dao) FindTapdBugVersionTemplates(req *model.QueryTapdBugVersionTemplateRequest) (total int64, tapdBugVersionTemplate []*model.TapdBugVersionTemplate, err error)

FindTapdBugVersionTemplates Find Tapd Bug Version Templates.

func (*Dao) FindUserByID

func (d *Dao) FindUserByID(ID int64) (user *model.User, err error)

FindUserByID find user by id.

func (*Dao) FindUserByUserName

func (d *Dao) FindUserByUserName(name string) (user *model.User, err error)

FindUserByUserName find user by username.

func (*Dao) GetBuglyIssue

func (d *Dao) GetBuglyIssue(issueNo, version string) (buglyIssue *model.BuglyIssue, err error)

GetBuglyIssue Get Issue Record.

func (*Dao) GetBuglyIssuesByFilterSQL

func (d *Dao) GetBuglyIssuesByFilterSQL(issueFilterSQL string) (buglyIssues []*model.BuglyIssue, err error)

GetBuglyIssuesByFilterSQL Get Bugly Issues By Filter SQL.

func (*Dao) GetBuglyIssuesHasInTapd

func (d *Dao) GetBuglyIssuesHasInTapd() (buglyIssues []*model.BuglyIssue, err error)

GetBuglyIssuesHasInTapd Get Bugly Issues Has In Tapd.

func (*Dao) InsertBuglyBatchRun

func (d *Dao) InsertBuglyBatchRun(buglyBatchRun *model.BuglyBatchRun) error

InsertBuglyBatchRun Insert Bugly Batch Run.

func (*Dao) InsertBuglyBatchRuns

func (d *Dao) InsertBuglyBatchRuns(buglyBatchRuns []*model.BuglyBatchRun) (err error)

InsertBuglyBatchRuns Insert Bugly Batch Runs.

func (*Dao) InsertBuglyIssue

func (d *Dao) InsertBuglyIssue(buglyIssue *model.BuglyIssue) (err error)

InsertBuglyIssue Insert Issue Record.

func (*Dao) InsertBuglyProject

func (d *Dao) InsertBuglyProject(buglyProject *model.BuglyProject) error

InsertBuglyProject Insert Bugly Project.

func (*Dao) InsertBuglyVersion

func (d *Dao) InsertBuglyVersion(buglyVersion *model.BuglyVersion) error

InsertBuglyVersion Insert Bugly Version.

func (*Dao) InsertContactInfo

func (d *Dao) InsertContactInfo(contactInfo *model.ContactInfo) error

InsertContactInfo Insert Contact Info.

func (*Dao) InsertCookie

func (d *Dao) InsertCookie(buglyCookie *model.BuglyCookie) error

InsertCookie Insert Cookie.

func (*Dao) InsertScheduleTask

func (d *Dao) InsertScheduleTask(scheduleTask *model.ScheduleTask) error

InsertScheduleTask Insert Schedule Task.

func (*Dao) InsertTapdBugPriorityConf

func (d *Dao) InsertTapdBugPriorityConf(tapdBugPriorityConf *model.TapdBugPriorityConf) error

InsertTapdBugPriorityConf Insert Tapd Bug Priority Conf.

func (*Dao) InsertTapdBugRecord

func (d *Dao) InsertTapdBugRecord(tapdBugRecord *model.TapdBugRecord) error

InsertTapdBugRecord Insert Tapd Bug Insert Log.

func (*Dao) InsertTapdBugTemplate

func (d *Dao) InsertTapdBugTemplate(tapdBugTemplate *model.TapdBugTemplate) error

InsertTapdBugTemplate Insert Tapd Bug Template.

func (*Dao) InsertTapdBugVersionTemplate

func (d *Dao) InsertTapdBugVersionTemplate(tapdBugVersionTemplate *model.TapdBugVersionTemplate) error

InsertTapdBugVersionTemplate Insert TapdBug Version Template.

func (*Dao) Ping

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

Ping verify server is ok.

func (*Dao) QueryAllBuglyProjects

func (d *Dao) QueryAllBuglyProjects() (buglyProjects []*model.BuglyProject, err error)

QueryAllBuglyProjects Query All Bugly Project.

func (*Dao) QueryAllContactInfos

func (d *Dao) QueryAllContactInfos() (contactInfos []*model.ContactInfo, err error)

QueryAllContactInfos Query All Contact Infos

func (*Dao) QueryAllTapdBugTemplates

func (d *Dao) QueryAllTapdBugTemplates() (tapdBugTemplates []*model.TapdBugTemplate, err error)

QueryAllTapdBugTemplates Query All Tapd Bug Templates.

func (*Dao) QueryBuglyBatchRunsByStatus

func (d *Dao) QueryBuglyBatchRunsByStatus(status int) (buglyBatchRuns []*model.BuglyBatchRun, err error)

QueryBuglyBatchRunsByStatus Find Bugly Batch Runs By Status.

func (*Dao) QueryBuglyProject

func (d *Dao) QueryBuglyProject(id int64) (buglyProject *model.BuglyProject, err error)

QueryBuglyProject Query Bugly Project.

func (*Dao) QueryBuglyProjectByName

func (d *Dao) QueryBuglyProjectByName(projectName string) (buglyProject *model.BuglyProject, err error)

QueryBuglyProjectByName Query Bugly Project.

func (*Dao) QueryBuglyProjectList

func (d *Dao) QueryBuglyProjectList() (projectList []string, err error)

QueryBuglyProjectList Query Bugly Project List.

func (*Dao) QueryBuglyVersion

func (d *Dao) QueryBuglyVersion(id int64) (buglyVersion *model.BuglyVersion, err error)

QueryBuglyVersion Query Bugly Version .

func (*Dao) QueryBuglyVersionByVersion

func (d *Dao) QueryBuglyVersionByVersion(version string) (buglyVersion *model.BuglyVersion, err error)

QueryBuglyVersionByVersion Query Bugly Version By Version.

func (*Dao) QueryBuglyVersionList

func (d *Dao) QueryBuglyVersionList() (versionList []string, err error)

QueryBuglyVersionList Query Bugly Version List.

func (*Dao) QueryContactInfoByUserID

func (d *Dao) QueryContactInfoByUserID(userID string) (contactInfo *model.ContactInfo, err error)

QueryContactInfoByUserID Query Contact Info By User ID

func (*Dao) QueryContactInfoByUsername

func (d *Dao) QueryContactInfoByUsername(username string) (contactInfo *model.ContactInfo, err error)

QueryContactInfoByUsername Query Contact Info By Username

func (*Dao) QueryCookieByQQAccount

func (d *Dao) QueryCookieByQQAccount(qqAccount int) (buglyCookie *model.BuglyCookie, err error)

QueryCookieByQQAccount Query Cookie By QQ Account.

func (*Dao) QueryCookieByStatus

func (d *Dao) QueryCookieByStatus(status int) (buglyCookies []*model.BuglyCookie, err error)

QueryCookieByStatus Query Cookie By Status.

func (*Dao) QueryLastSuccessBatchRunByVersion

func (d *Dao) QueryLastSuccessBatchRunByVersion(version string) (buglyBatchRun *model.BuglyBatchRun, err error)

QueryLastSuccessBatchRunByVersion Find Last Success Batch Run By Version.

func (*Dao) QueryTapdBugPriorityConfsByProjectTemplateIdAndStatus

func (d *Dao) QueryTapdBugPriorityConfsByProjectTemplateIdAndStatus(projectTemplateID int64, status int) (tapdBugPriorityConfs []*model.TapdBugPriorityConf, err error)

QueryTapdBugPriorityConfsByProjectTemplateIdAndStatus Query Tapd Bug Priority Confs By Project TemplateId And tatus.

func (*Dao) QueryTapdBugRecordByProjectIDAndStatus

func (d *Dao) QueryTapdBugRecordByProjectIDAndStatus(projectID int64, status int) (tapdBugRecords []*model.TapdBugRecord, err error)

QueryTapdBugRecordByProjectIDAndStatus Query Tapd Bug Record By Project ID and status

func (*Dao) QueryTapdBugRecordByStatus

func (d *Dao) QueryTapdBugRecordByStatus(status int) (tapdBugRecords []*model.TapdBugRecord, err error)

QueryTapdBugRecordByStatus Query Tapd Bug Record By and status

func (*Dao) QueryTapdBugTemplate

func (d *Dao) QueryTapdBugTemplate(id int64) (tapdBugTemplate *model.TapdBugTemplate, err error)

QueryTapdBugTemplate Query Tapd Bug Template.

func (*Dao) QueryTapdBugTemplateByProjectID

func (d *Dao) QueryTapdBugTemplateByProjectID(projectID string) (tapdBugTemplate *model.TapdBugTemplate, err error)

QueryTapdBugTemplateByProjectID Query Tapd Bug Template by project id.

func (*Dao) QueryTapdBugVersionTemplate

func (d *Dao) QueryTapdBugVersionTemplate(id int64) (tapdBugVersionTemplate *model.TapdBugVersionTemplate, err error)

QueryTapdBugVersionTemplate Query Tapd Bug Version Template.

func (*Dao) QueryTapdBugVersionTemplateByVersion

func (d *Dao) QueryTapdBugVersionTemplateByVersion(version string) (tapdBugVersionTemplate *model.TapdBugVersionTemplate, err error)

QueryTapdBugVersionTemplateByVersion Query Tapd Bug Version Template.

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) SendMailIfFailed

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

SendMailIfFailed Send Mail If Failed

func (*Dao) UpdateBug

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

UpdateBug Update Bug.

func (*Dao) UpdateBuglyBatchRun

func (d *Dao) UpdateBuglyBatchRun(buglyBatchRun *model.BuglyBatchRun) error

UpdateBuglyBatchRun Update Bugly Batch Run.

func (*Dao) UpdateBuglyIssue

func (d *Dao) UpdateBuglyIssue(buglyIssue *model.BuglyIssue) error

UpdateBuglyIssue Update Issue Record.

func (*Dao) UpdateBuglyIssueTapdBugID

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

UpdateBuglyIssueTapdBugID Update Issue Record Tapd Bug ID.

func (*Dao) UpdateBuglyProject

func (d *Dao) UpdateBuglyProject(buglyProject *model.BuglyProject) error

UpdateBuglyProject Update Bugly Project.

func (*Dao) UpdateBuglyVersion

func (d *Dao) UpdateBuglyVersion(buglyVersion *model.BuglyVersion) error

UpdateBuglyVersion Update Bugly Version.

func (*Dao) UpdateContactInfo

func (d *Dao) UpdateContactInfo(contactInfo *model.ContactInfo) error

UpdateContactInfo Update Contact Info.

func (*Dao) UpdateCookie

func (d *Dao) UpdateCookie(buglyCookie *model.BuglyCookie) error

UpdateCookie Update cookie.

func (*Dao) UpdateCookieStatus

func (d *Dao) UpdateCookieStatus(id int64, status int) error

UpdateCookieStatus Update Cookie Status.

func (*Dao) UpdateCookieUsageCount

func (d *Dao) UpdateCookieUsageCount(id int64, usageCount int) error

UpdateCookieUsageCount Update Cookie Usage Count.

func (*Dao) UpdateScheduleTask

func (d *Dao) UpdateScheduleTask(scheduleTask *model.ScheduleTask) error

UpdateScheduleTask Update Schedule Task.

func (*Dao) UpdateTapdBugPriorityConf

func (d *Dao) UpdateTapdBugPriorityConf(tapdBugPriorityConf *model.TapdBugPriorityConf) error

UpdateTapdBugPriorityConf Update Tapd Bug Priority Conf.

func (*Dao) UpdateTapdBugRecord

func (d *Dao) UpdateTapdBugRecord(tapdBugRecord *model.TapdBugRecord) error

UpdateTapdBugRecord Update Tapd Bug Insert Log.

func (*Dao) UpdateTapdBugTemplate

func (d *Dao) UpdateTapdBugTemplate(tapdBugTemplate *model.TapdBugTemplate) error

UpdateTapdBugTemplate Update Tapd Bug Template.

func (*Dao) UpdateTapdBugVersionTemplate

func (d *Dao) UpdateTapdBugVersionTemplate(tapdBugVersionTemplate *model.TapdBugVersionTemplate) error

UpdateTapdBugVersionTemplate Update Tapd Bug Version Template.

func (*Dao) UpdateUserVisibleBugly

func (d *Dao) UpdateUserVisibleBugly(ID int64, visibleBugly bool) error

UpdateUserVisibleBugly Update User Visible Bugly.

func (*Dao) WechatAccessToken

func (d *Dao) WechatAccessToken(c context.Context) (token string, err error)

WechatAccessToken query access token with the specified secret 企业微信api获取公司token

func (*Dao) WechatContacts

func (d *Dao) WechatContacts(c context.Context) (contacts []*model.WechatContact, err error)

WechatContacts Wechat Contacts 获取用户信息列表

func (*Dao) WorkspaceUser

func (d *Dao) WorkspaceUser(workspaceID string) (usernames []string, err error)

WorkspaceUser Workspace User

Jump to

Keyboard shortcuts

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