25 lines
601 B
Go
25 lines
601 B
Go
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,
|
|
})
|
|
}
|