projectSetting

package
v0.0.0-...-dfb7f3b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescribeCodingCurrentUserReq

type DescribeCodingCurrentUserReq struct {
	Action string `json:"Action"` // DescribeCodingCurrentUser
}

type DescribeCodingCurrentUserResp

type DescribeCodingCurrentUserResp struct {
	Response struct {
		RequestID string `json:"RequestId"` // 367bdaa8-e4c7-a070-ecf6-00fea8e6fab9
		User      struct {
			Avatar          string `json:"Avatar"`                 // https://coding-net-production-static-ci.codehub.cn/WM-TEXT-AVATAR-nfutKljCRlKcSLDTOmrv.jpg
			Email           string `json:"Email"`                  // test@coding.net
			EmailValidation int64  `json:"EmailValidation"`        // 1
			GlobalKey       string `json:"GlobalKey"`              // EHRIORBbfF
			ID              int64  `json:"Id"`                     // 150258
			Name            string `json:"Name"`                   // 张三
			NamePinYin      string `json:"NamePinYin"`             // zhangsan
			Phone           int64  `json:"Phone,string"`           // 13800138000
			PhoneRegionCode int64  `json:"PhoneRegionCode,string"` // +86
			PhoneValidation int64  `json:"PhoneValidation"`        // 1
			Status          int64  `json:"Status"`                 // 1
			TeamID          int64  `json:"TeamId"`                 // 102882
		} `json:"User"`
	} `json:"Response"`
}

type DescribeProjectRolesReq

type DescribeProjectRolesReq struct {
	Action    string `json:"Action"`           // DescribeProjectRoles
	ProjectID int64  `json:"ProjectId,string"` // 1
}

type DescribeProjectRolesResp

type DescribeProjectRolesResp struct {
	Response struct {
		RequestID string `json:"RequestId"` // de0438d0-1e5e-098f-872a-c96863ed3510
		Roles     []struct {
			RoleID       int64  `json:"RoleId"`       // 1
			RoleType     string `json:"RoleType"`     // ProjectMember
			RoleTypeName string `json:"RoleTypeName"` // 开发
		} `json:"Roles"`
	} `json:"Response"`
}

type DescribeUserProjectsReq

type DescribeUserProjectsReq struct {
	Action string `json:"Action"` // DescribeUserProjects
	UserID int64  `json:"userId"` // 2
}

type DescribeUserProjectsResp

type DescribeUserProjectsResp struct {
	Response struct {
		ProjectList []struct {
			Archived    bool   `json:"Archived"`    // false
			CreatedAt   int64  `json:"CreatedAt"`   // 1.572933083682e+12
			Description string `json:"Description"` // CODING 示例项目
			DisplayName string `json:"DisplayName"` // 示例项目
			EndDate     int64  `json:"EndDate"`     // 0
			Icon        string `json:"Icon"`        // https://dn-coding-net-production-pp.codehub.cn/79a8bcc4-d9cc-4061-940d-5b3bb31bf571.png
			ID          int64  `json:"Id"`          // 2
			IsDemo      bool   `json:"IsDemo"`      // true
			MaxMember   int64  `json:"MaxMember"`   // 0
			Name        string `json:"Name"`        // coding-demo
			StartDate   int64  `json:"StartDate"`   // 0
			Status      int64  `json:"Status"`      // 1
			TeamID      int64  `json:"TeamId"`      // 12
			TeamOwnerID int64  `json:"TeamOwnerId"` // 0
			Type        int64  `json:"Type"`        // 2
			UpdatedAt   int64  `json:"UpdatedAt"`   // 1.572933083682e+12
			UserOwnerID int64  `json:"UserOwnerId"` // 0
		} `json:"ProjectList"`
		RequestID string `json:"RequestId"` // ae8e2d5f-569b-443e-8c61-440ea3a7562a
	} `json:"Response"`
}

type ModifyProjectPermissionReq

type ModifyProjectPermissionReq struct {
	Action     string `json:"Action"`     // ModifyProjectPermission
	ActionFlag bool   `json:"ActionFlag"` // false
	ProjectID  int64  `json:"ProjectId"`  // 2
	RoleID     int64  `json:"RoleId"`     // 120
	UserGK     string `json:"UserGK"`     // TDqyhVeWYN
}

type ModifyProjectPermissionResp

type ModifyProjectPermissionResp struct {
	Response struct {
		RequestID string `json:"RequestId"` // ae8e2d5f-569b-443e-8c61-440ea3a7562a
	} `json:"Response"`
}

type ProjectSetting

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

func New

func New(c *config.Basic) ProjectSetting

New 新建项目设置相关函数

func (*ProjectSetting) DescribeCodingCurrentUser

func (p *ProjectSetting) DescribeCodingCurrentUser(req *DescribeCodingCurrentUserReq) (resp DescribeCodingCurrentUserResp, err error)

DescribeCodingCurrentUser 获取用户个人信息

func (*ProjectSetting) DescribeProjectRoles

func (p *ProjectSetting) DescribeProjectRoles(req *DescribeProjectRolesReq) (resp DescribeProjectRolesResp, err error)

DescribeProjectRoles 查询项目用户组

func (*ProjectSetting) DescribeUserProjects

func (p *ProjectSetting) DescribeUserProjects(req *DescribeUserProjectsReq) (resp DescribeUserProjectsResp, err error)

DescribeUserProjects 查询成员所在项目列表

func (*ProjectSetting) ModifyProjectPermission

func (p *ProjectSetting) ModifyProjectPermission(req *ModifyProjectPermissionReq) (resp ModifyProjectPermissionResp, err error)

ModifyProjectPermission 配置项目成员权限

Jump to

Keyboard shortcuts

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