service

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: 15 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 struct

func New

func New(c *conf.Config) (s *Service)

New init

func (*Service) AccessToBugly

func (s *Service) AccessToBugly(c context.Context, username string) (isAccess bool)

AccessToBugly Access To Bugly.

func (*Service) AccessToWorkspace

func (s *Service) AccessToWorkspace(workspaceID, username string) (isAccess bool)

AccessToWorkspace Access To Workspace.

func (*Service) BatchRunTask

func (s *Service) BatchRunTask(taskName string, task func() error)

BatchRunTask Batch Run Task.

func (*Service) BatchRunUpdateBugInTapd

func (s *Service) BatchRunUpdateBugInTapd() (err error)

BatchRunUpdateBugInTapd Batch Run Update Bug In Tapd.

func (*Service) BatchRunVersions

func (s *Service) BatchRunVersions() (err error)

BatchRunVersions Batch Run Versions

func (*Service) BugInsertTapdWithProject

func (s *Service) BugInsertTapdWithProject(c context.Context, id int64, username string) (rep map[string]interface{}, err error)

BugInsertTapdWithProject Bug Insert Tapd With Project.

func (*Service) BugInsertTapdWithVersion

func (s *Service) BugInsertTapdWithVersion(c context.Context, id int64, username string) (rep map[string]interface{}, err error)

BugInsertTapdWithVersion Bug Insert Tapd With Version.

func (*Service) BuglyVersionAndProjectList

func (s *Service) BuglyVersionAndProjectList(c context.Context) (rep map[string]interface{}, err error)

BuglyVersionAndProjectList Bugly Version and project List.

func (*Service) CheckTapdBugTplSQL

func (s *Service) CheckTapdBugTplSQL(c context.Context, sql string) (rep map[string]interface{}, err error)

CheckTapdBugTplSQL Check Tapd Bug Tpl SQL.

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) DisableBatchRunOverTime

func (s *Service) DisableBatchRunOverTime() (err error)

DisableBatchRunOverTime Disable Batch Run OverTime.

func (*Service) DisableCookie

func (s *Service) DisableCookie(c context.Context, cookieID int64) (err error)

DisableCookie Disable Cookie.

func (*Service) DoWhenNoEnableCookie

func (s *Service) DoWhenNoEnableCookie()

DoWhenNoEnableCookie Do When No Enable Cookie.

func (*Service) GetBatchRunVersions

func (s *Service) GetBatchRunVersions() (buglyRunVersions []*model.BuglyVersion, err error)

GetBatchRunVersions Get Batch Run Versions.

func (*Service) GetEnableCookie

func (s *Service) GetEnableCookie() (buglyCookie *model.BuglyCookie, err error)

GetEnableCookie Get Enable Cookie.

func (*Service) HttpAccessToWorkspace

func (s *Service) HttpAccessToWorkspace(c context.Context, workspaceID, username string) (rep map[string]interface{}, err error)

HttpAccessToWorkspace Access To Workspace.

func (*Service) HttpSyncWechatContacts

func (s *Service) HttpSyncWechatContacts(ctx context.Context) (err error)

HttpSyncWechatContacts Http Sync Wechat Contacts.

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping Service

func (*Service) QueryAllBuglyProjects

func (s *Service) QueryAllBuglyProjects(c context.Context) (buglyProjects []*model.BuglyProject, err error)

QueryAllBuglyProjects Query All Bugly Projects.

func (*Service) QueryAllTapdBugTpl

func (s *Service) QueryAllTapdBugTpl(c context.Context) (rep []*model.TapdBugTemplateShortResponse, err error)

QueryAllTapdBugTpl Query All Tapd Bug Tpl

func (*Service) QueryBatchRuns

QueryBatchRuns Query Batch Runs

func (*Service) QueryBugRecords

func (s *Service) QueryBugRecords(c context.Context, req *model.QueryBugRecordsRequest) (rep *model.PaginateBugRecords, err error)

QueryBugRecords Query Bug Records

func (*Service) QueryBuglyIssueRecords

func (s *Service) QueryBuglyIssueRecords(c context.Context, req *model.QueryBuglyIssueRequest) (rep *model.PaginateBuglyIssues, err error)

QueryBuglyIssueRecords Query Bugly Issue Records

func (*Service) QueryBuglyProject

func (s *Service) QueryBuglyProject(c context.Context, id int64) (buglyProject *model.BuglyProject, err error)

QueryBuglyProject Query Bugly Project.

func (*Service) QueryBuglyProjectVersions

func (s *Service) QueryBuglyProjectVersions(c context.Context, buglyProjectID int64) (rep map[string]interface{}, err error)

QueryBuglyProjectVersions Query Bugly Project Versions.

func (*Service) QueryBuglyProjects

func (s *Service) QueryBuglyProjects(c context.Context, req *model.QueryBuglyProjectRequest) (rep *model.PaginateBuglyProjects, err error)

QueryBuglyProjects Query Bugly Project.

func (*Service) QueryBuglyVersions

func (s *Service) QueryBuglyVersions(c context.Context, req *model.QueryBuglyVersionRequest) (rep *model.PaginateBuglyProjectVersions, err error)

QueryBuglyVersions Query Bugly Versions.

func (*Service) QueryCookies

QueryCookies Add Cookie.

func (*Service) QueryTapdBugPriorityConfsRequest

func (s *Service) QueryTapdBugPriorityConfsRequest(c context.Context, req *model.QueryTapdBugPriorityConfsRequest) (rep *model.PaginateTapdBugPriorityConfs, err error)

QueryTapdBugPriorityConfsRequest Query Tapd Bug Priority Confs Request

func (*Service) QueryTapdBugTpl

QueryTapdBugTpl Query Tapd Bug Tpl

func (*Service) QueryTapdBugVersionTpl

QueryTapdBugVersionTpl Query Tapd Bug Version Tpl

func (*Service) QueryUserInfo

func (s *Service) QueryUserInfo(c context.Context, username string) (userInfo *model.User, err error)

QueryUserInfo query user info.

func (*Service) RunVersions

func (s *Service) RunVersions(buglyVersionID int64) (rep map[string]interface{}, err error)

RunVersions Run Versions.

func (*Service) SendMail

func (s *Service) SendMail(receiver []string, header, body string)

SendMail Send Mail.

func (*Service) SyncWechatContacts

func (s *Service) SyncWechatContacts() (err error)

SyncWechatContacts Sync Wechat Contacts.

func (*Service) UpdateBuglyProject

func (s *Service) UpdateBuglyProject(c context.Context, username string, req *model.AddProjectRequest) (rep map[string]interface{}, err error)

UpdateBuglyProject update bugly project.

func (*Service) UpdateBuglyVersion

func (s *Service) UpdateBuglyVersion(c context.Context, username string, req *model.AddVersionRequest) (rep map[string]interface{}, err error)

UpdateBuglyVersion update Bugly Version.

func (*Service) UpdateCookie

func (s *Service) UpdateCookie(c context.Context, username string, req *model.AddCookieRequest) (rep map[string]interface{}, err error)

UpdateCookie update Cookie.

func (*Service) UpdateCookieStatus

func (s *Service) UpdateCookieStatus(c context.Context, cookieID int64, status int) (err error)

UpdateCookieStatus Update Cookie Status.

func (*Service) UpdateTapdBugPriorityConf

func (s *Service) UpdateTapdBugPriorityConf(c context.Context, username string, req *model.UpdateTapdBugPriorityConfRequest) (rep map[string]interface{}, err error)

UpdateTapdBugPriorityConf Update Tapd Bug Priority Conf.

func (*Service) UpdateTapdBugTpl

func (s *Service) UpdateTapdBugTpl(c context.Context, username string, req *model.UpdateTapdBugTplRequest) (rep map[string]interface{}, err error)

UpdateTapdBugTpl Update Tapd Bug Tpl.

func (*Service) UpdateTapdBugVersionTpl

func (s *Service) UpdateTapdBugVersionTpl(c context.Context, username string, req *model.UpdateTapdBugVersionTplRequest) (rep map[string]interface{}, err error)

UpdateTapdBugVersionTpl Update Tapd Bug Version Tpl.

func (*Service) UpdateTplAsVersionTpl

func (s *Service) UpdateTplAsVersionTpl(tapdBugVersionTemplate *model.TapdBugVersionTemplate, tapdBugTemplate *model.TapdBugTemplate) (err error)

UpdateTplAsVersionTpl Update Tpl As Version Tpl.

func (*Service) UpdateUserVisibleBugly

func (s *Service) UpdateUserVisibleBugly(c context.Context, username, updateUsername string, visibleBugly bool) (err error)

UpdateUserVisibleBugly Update User Visible Bugly.

Jump to

Keyboard shortcuts

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