Documentation ¶
Index ¶
- type Audit
- type Auth
- type Client
- type DeleteJob
- type DeleteTemplateInput
- type Field
- type ForgotPassword
- type ForgotPasswordPayload
- type Job
- type KafkaPayload
- type LoginInput
- type NewPassword
- type SendMailInput
- type SignupInput
- type SubscriptionInput
- type SwaggerClient
- type SwaggerTemplate
- type Template
- type UpdatePassword
- type User
- type VariableTemplateInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { gorm.Model Name string `json:"name" gorm:"type:varchar(50)"` MailId string `json:"mailID" valid:"email,required" gorm:"type:varchar(50);not null;unique_index:idx_first_second"` Phone int `json:"phone" valid:"required" gorm:"type:bigint;not null"` Preference string `json:"preference" gorm:"type:varchar(50)"` UserID uint `gorm:"unique_index:idx_first_second"` User User `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` }
type DeleteTemplateInput ¶
type Field ¶
type Field struct { gorm.Model Key string `json:"key" valid:"required" gorm:"type:varchar(50);not null;unique_index:idx_field"` Value string `json:"value" valid:"required" gorm:"type:varchar(50);not null"` ClientID uint `gorm:"unique_index:idx_field"` Client Client `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` }
type ForgotPassword ¶
type ForgotPassword struct {
Email string `json:"email" valid:"email"`
}
type ForgotPasswordPayload ¶
type KafkaPayload ¶
type LoginInput ¶
type NewPassword ¶
type NewPassword struct {
Password string `json:"password"`
}
type SendMailInput ¶
type SignupInput ¶
type SubscriptionInput ¶
type SwaggerClient ¶
type SwaggerClient struct { Name string `json:"name"` MailId string `json:"mailID"` Phone int `json:"phone"` Preference string `json:"preference"` }
models for swagger definition
type SwaggerTemplate ¶
type UpdatePassword ¶
type UpdatePassword struct {
Password string `json:"password" valid:"required"`
}
type VariableTemplateInput ¶
Click to show internal directories.
Click to hide internal directories.