提交
This commit is contained in:
24
internal/controller/copilot/membership.go
Normal file
24
internal/controller/copilot/membership.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package copilot
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gofrs/uuid"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// GetMembership 获取团队成员信息
|
||||
func GetMembership(c *gin.Context) {
|
||||
requestID := uuid.Must(uuid.NewV4()).String()
|
||||
c.Header("x-github-request-id", requestID)
|
||||
|
||||
teamID := c.Param("teamID")
|
||||
username := c.Param("username")
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"message": "Not Found",
|
||||
"documentation_url": "https://docs.github.com/rest/teams/members#get-team-membership-for-a-user-legacy",
|
||||
"status": "404",
|
||||
"teamID": teamID,
|
||||
"username": username,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user