Documentation
¶
Index ¶
- type CategoriesData
- type CategoriesResponse
- type Category
- type Client
- func (c *Client) DownloadSkill(id int, outputPath string) (string, error)
- func (c *Client) GetSkillDetail(id int) (*DetailResponse, error)
- func (c *Client) GetSkillFiles(id int) (*FilesResponse, error)
- func (c *Client) ImportZip(zipPath, description string, categoryID int, overwrite bool) (*ImportZipResponse, error)
- func (c *Client) ListCategories() ([]Category, error)
- func (c *Client) ListSkills(pageNum, pageSize, categoryID int, keyword string) (*ListResponse, error)
- func (c *Client) Login(token string) (*LoginResponse, error)
- type DetailResponse
- type FileNode
- type FilesData
- type FilesResponse
- type ImportZipResponse
- type ListData
- type ListResponse
- type LoginResponse
- type Skill
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoriesData ¶
type CategoriesResponse ¶
type CategoriesResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data CategoriesData `json:"data"`
}
type Client ¶
func (*Client) DownloadSkill ¶
func (*Client) GetSkillDetail ¶
func (c *Client) GetSkillDetail(id int) (*DetailResponse, error)
func (*Client) GetSkillFiles ¶
func (c *Client) GetSkillFiles(id int) (*FilesResponse, error)
func (*Client) ListCategories ¶
func (*Client) ListSkills ¶
func (c *Client) ListSkills(pageNum, pageSize, categoryID int, keyword string) (*ListResponse, error)
type DetailResponse ¶
type FilesResponse ¶
type ImportZipResponse ¶
type ListResponse ¶
type LoginResponse ¶
type Skill ¶
type Skill struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Version string `json:"version"`
CategoryID int `json:"categoryId"`
CategoryName string `json:"categoryName"`
Status int `json:"status"`
IsPublic bool `json:"isPublic"`
IsValid bool `json:"isValid"`
FilePath string `json:"filePath"`
License string `json:"license"`
DownloadCount int `json:"downloadCount"`
StarCount int `json:"starCount"`
FileSize int64 `json:"fileSize"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
ValidatedAt string `json:"validatedAt"`
Tags []string `json:"tags"`
}
Click to show internal directories.
Click to hide internal directories.