package emailalerts import ( "fonchain-fiee/api/emailAlerts" "fonchain-fiee/pkg/service" "github.com/gin-gonic/gin" ) func EmailAlertSubmit(ctx *gin.Context) { var req emailAlerts.EmailAlertsSubmitReq if err := ctx.ShouldBindJSON(&req); err != nil { service.Error(ctx, err) return } resp, err := service.EmailAlertsProvider.EmailAlertsSubmit(ctx, &req) if err != nil { service.Error(ctx, err) return } service.Success(ctx, resp) } func GetEmailInformationList(ctx *gin.Context) { var req emailAlerts.GetEmailInformationListReq if err := ctx.ShouldBindJSON(&req); err != nil { service.Error(ctx, err) return } resp, err := service.EmailAlertsProvider.GetEmailInformationList(ctx, &req) if err != nil { service.Error(ctx, err) return } service.Success(ctx, resp) }