Documentation ¶
Index ¶
- type DescribeCodingCurrentUserReq
- type DescribeCodingCurrentUserResp
- type DescribeProjectRolesReq
- type DescribeProjectRolesResp
- type DescribeUserProjectsReq
- type DescribeUserProjectsResp
- type ModifyProjectPermissionReq
- type ModifyProjectPermissionResp
- type ProjectSetting
- func (p *ProjectSetting) DescribeCodingCurrentUser(req *DescribeCodingCurrentUserReq) (resp DescribeCodingCurrentUserResp, err error)
- func (p *ProjectSetting) DescribeProjectRoles(req *DescribeProjectRolesReq) (resp DescribeProjectRolesResp, err error)
- func (p *ProjectSetting) DescribeUserProjects(req *DescribeUserProjectsReq) (resp DescribeUserProjectsResp, err error)
- func (p *ProjectSetting) ModifyProjectPermission(req *ModifyProjectPermissionReq) (resp ModifyProjectPermissionResp, err error)
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 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 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 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 (*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 配置项目成员权限
Click to show internal directories.
Click to hide internal directories.