add docs
This commit is contained in:
parent
33d0c25397
commit
67877e84bd
@ -84,7 +84,6 @@ func (p *PromoCodeController) GetList(c *fiber.Ctx) error {
|
|||||||
return c.Status(fiber.StatusOK).JSON(resp)
|
return c.Status(fiber.StatusOK).JSON(resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo затестить и обновить в opnapi
|
|
||||||
func (p *PromoCodeController) Activate(c *fiber.Ctx) error {
|
func (p *PromoCodeController) Activate(c *fiber.Ctx) error {
|
||||||
var req models.ActivateReq
|
var req models.ActivateReq
|
||||||
if err := c.BodyParser(&req); err != nil {
|
if err := c.BodyParser(&req); err != nil {
|
||||||
@ -133,7 +132,6 @@ func (p *PromoCodeController) Delete(c *fiber.Ctx) error {
|
|||||||
return c.SendStatus(fiber.StatusOK)
|
return c.SendStatus(fiber.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo затестить и добавить в opnapi
|
|
||||||
func (p *PromoCodeController) CreateFastLink(c *fiber.Ctx) error {
|
func (p *PromoCodeController) CreateFastLink(c *fiber.Ctx) error {
|
||||||
var req struct {
|
var req struct {
|
||||||
PromoCodeID string `json:"id"`
|
PromoCodeID string `json:"id"`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user