Qo'shildi: Docker konfiguratsiyasi yangilandi, .env va .gitignore fayllari yaratildi, Redis va muhit o'zgaruvchilari qo'shildi.
This commit is contained in:
27
internal/domain/eskiz.go
Normal file
27
internal/domain/eskiz.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package domain
|
||||
|
||||
type EskizLogin struct {
|
||||
Email string `json:"email"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
type EskizLoginRes struct {
|
||||
Message string
|
||||
TokenType string
|
||||
Data struct {
|
||||
Token string
|
||||
}
|
||||
}
|
||||
|
||||
type EskizMessage struct {
|
||||
Phone string `json:"mobile_phone"`
|
||||
Message string `json:"message"`
|
||||
From string `json:"from"`
|
||||
CallbackURL string `json:"callback_url"`
|
||||
}
|
||||
|
||||
type EskizMessageRes struct {
|
||||
ID string `json:"id"`
|
||||
Message string `json:"message"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
@@ -7,6 +7,9 @@ type NotificationConsumerPort interface {
|
||||
Handler(amqp.Delivery)
|
||||
}
|
||||
|
||||
type SMSServicePort interface {
|
||||
SendSMS(string, string) error
|
||||
}
|
||||
type NotifierPort interface {
|
||||
SendMessage([]string, string)
|
||||
}
|
||||
|
||||
20
internal/domain/playmobile.go
Normal file
20
internal/domain/playmobile.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package domain
|
||||
|
||||
type PmbContent struct {
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
type PmbSMS struct {
|
||||
Originator string `json:"originator"`
|
||||
Content PmbContent `json:"content"`
|
||||
}
|
||||
|
||||
type PmbMessage struct {
|
||||
Recipient string `json:"recipient"`
|
||||
MessageID string `json:"message-id"`
|
||||
Sms PmbSMS `json:"sms"`
|
||||
}
|
||||
|
||||
type PmbPayload struct {
|
||||
Messages []PmbMessage
|
||||
}
|
||||
Reference in New Issue
Block a user