@@ -13,6 +13,7 @@ import (
1313 "github.com/android-sms-gateway/server/internal/sms-gateway/models"
1414 "github.com/android-sms-gateway/server/internal/sms-gateway/modules/devices"
1515 "github.com/android-sms-gateway/server/internal/sms-gateway/modules/messages"
16+ "github.com/android-sms-gateway/server/internal/sms-gateway/users"
1617 "github.com/capcom6/go-helpers/slices"
1718 "github.com/go-playground/validator/v10"
1819 "github.com/gofiber/fiber/v2"
@@ -59,7 +60,7 @@ type ThirdPartyController struct {
5960// @Router /3rdparty/v1/messages [post]
6061//
6162// Enqueue message
62- func (h * ThirdPartyController ) post (user models .User , c * fiber.Ctx ) error {
63+ func (h * ThirdPartyController ) post (user users .User , c * fiber.Ctx ) error {
6364 var params thirdPartyPostQueryParams
6465 if err := h .QueryParserValidator (c , & params ); err != nil {
6566 return err
@@ -189,7 +190,7 @@ func (h *ThirdPartyController) post(user models.User, c *fiber.Ctx) error {
189190// @Router /3rdparty/v1/messages [get]
190191//
191192// Get message history
192- func (h * ThirdPartyController ) list (user models .User , c * fiber.Ctx ) error {
193+ func (h * ThirdPartyController ) list (user users .User , c * fiber.Ctx ) error {
193194 params := thirdPartyGetQueryParams {}
194195 if err := h .QueryParserValidator (c , & params ); err != nil {
195196 return err
@@ -220,7 +221,7 @@ func (h *ThirdPartyController) list(user models.User, c *fiber.Ctx) error {
220221// @Router /3rdparty/v1/messages/{id} [get]
221222//
222223// Get message state
223- func (h * ThirdPartyController ) get (user models .User , c * fiber.Ctx ) error {
224+ func (h * ThirdPartyController ) get (user users .User , c * fiber.Ctx ) error {
224225 id := c .Params ("id" )
225226
226227 state , err := h .messagesSvc .GetState (user , id )
@@ -249,7 +250,7 @@ func (h *ThirdPartyController) get(user models.User, c *fiber.Ctx) error {
249250// @Router /3rdparty/v1/messages/inbox/export [post]
250251//
251252// Export inbox
252- func (h * ThirdPartyController ) postInboxExport (user models .User , c * fiber.Ctx ) error {
253+ func (h * ThirdPartyController ) postInboxExport (user users .User , c * fiber.Ctx ) error {
253254 req := smsgateway.MessagesExportRequest {}
254255 if err := h .BodyParserValidator (c , & req ); err != nil {
255256 return err
0 commit comments