Documentation
¶
Overview ¶
Package dida provides a client for interacting with the Dida365 API. It implements all the basic operations for managing projects and tasks.
Index ¶
- type Client
- func (c *Client) CompleteTask(ctx context.Context, projectID, taskID string) error
- func (c *Client) CreateProject(ctx context.Context, req *api.CreateProjectRequest) (*api.Project, error)
- func (c *Client) CreateTask(ctx context.Context, req *api.CreateTaskRequest) (*api.Task, error)
- func (c *Client) DeleteProject(ctx context.Context, projectID string) error
- func (c *Client) DeleteTask(ctx context.Context, projectID, taskID string) error
- func (c *Client) GetProject(ctx context.Context, projectID string) (*api.Project, error)
- func (c *Client) GetProjectData(ctx context.Context, projectID string) (*api.ProjectData, error)
- func (c *Client) GetTask(ctx context.Context, projectID, taskID string) (*api.Task, error)
- func (c *Client) ListProjects(ctx context.Context) ([]*api.Project, error)
- func (c *Client) UpdateProject(ctx context.Context, req *api.UpdateProjectRequest) (*api.Project, error)
- func (c *Client) UpdateTask(ctx context.Context, req *api.UpdateTaskRequest) (*api.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a Dida365 API client.
func NewClient ¶
NewClient creates a new Dida365 API client with the given logger and authentication token.
func (*Client) CompleteTask ¶
CompleteTask marks a task as completed.
func (*Client) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, req *api.CreateProjectRequest) (*api.Project, error)
CreateProject creates a new project with the given parameters.
func (*Client) CreateTask ¶
CreateTask creates a new task with the given parameters.
func (*Client) DeleteProject ¶
DeleteProject deletes a project by its ID.
func (*Client) DeleteTask ¶
DeleteTask deletes a task by its ID.
func (*Client) GetProject ¶
GetProject retrieves a specific project by its ID.
func (*Client) GetProjectData ¶
GetProjectData retrieves detailed data for a specific project.
func (*Client) ListProjects ¶
ListProjects returns a list of all projects.
func (*Client) UpdateProject ¶
func (c *Client) UpdateProject(ctx context.Context, req *api.UpdateProjectRequest) (*api.Project, error)
UpdateProject updates an existing project with the given parameters.
func (*Client) UpdateTask ¶
UpdateTask updates an existing task with the given parameters.