Pavel Sinitsin
e14d4b188b
This commit introduces new API and client modules that provide functionality for managing categories and products. It includes the creation of `.gitignore`, necessary data models, API endpoints, and client authentication using go-resty. This forms the foundation for further enhancements to the category and product management features.
18 lines
309 B
Go
18 lines
309 B
Go
package client
|
|
|
|
type (
|
|
// Credentials provides constant credential values.
|
|
Credentials struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
)
|
|
|
|
func (c *Credentials) GetUsername() string {
|
|
return c.Username
|
|
}
|
|
|
|
func (c *Credentials) GetPassword() string {
|
|
return c.Password
|
|
}
|