authorize

package module
v0.0.5-beta Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

README

authorize

调度系统授权

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorize

type Authorize interface {
	// CheckLogin 检查用户是否登录
	CheckLogin(parameter RequestParameter) (bool, error)

	// FindUserProjectTeamList 查询用户项目团队列表
	FindUserProjectTeamList(parameter RequestParameter) ([]ProjectTeam, error)

	// FindProjectTeamList 查询项目团队列表
	FindProjectTeamList(parameter RequestParameter) ([]ProjectTeam, error)
}

type PluginType

type PluginType int32
const (
	// 授权类型
	Plugin_AUTH PluginType = 0
)

type Project

type Project struct {
	// 项目id
	ProjectId int `json:"projectId"`
	// 项目名称
	ProjectName string `json:"projectName"`
	// 项目git地址
	ProjectGit string `json:"projectGit"`
	// 项目唯一值
	ProjectUUID string `json:"projectUUID"`
}

type ProjectTeam

type ProjectTeam struct {
	// 项目组id
	TeamId int `json:"teamId"`
	// 项目组名称
	TeamName string `json:"teamName"`
	// 项目组类型 0:通用 1:定制
	TeamType int `json:"teamType"`
	// 项目列表
	ProjectList []Project `json:"projectList"`
}

type RequestParameter

type RequestParameter struct {
	Request *http.Request
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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