20 lines
626 B
Go
20 lines
626 B
Go
package controller
|
|
|
|
import (
|
|
"context"
|
|
"micro-document/api/emailAlerts"
|
|
"micro-document/internel/logic"
|
|
)
|
|
|
|
type EmailAlertsProvider struct {
|
|
emailAlerts.UnimplementedEmailAlertsServer
|
|
}
|
|
|
|
func (EmailAlertsProvider) EmailAlertsSubmit(_ context.Context, req *emailAlerts.EmailAlertsSubmitReq) (*emailAlerts.EmailAlertsSubmitResp, error) {
|
|
return logic.EmailAlertsLogic.EmailAlertsSubmit(req)
|
|
}
|
|
|
|
func (EmailAlertsProvider) GetEmailInformationList(_ context.Context, req *emailAlerts.GetEmailInformationListReq) (*emailAlerts.GetEmailInformationListResp, error) {
|
|
return logic.EmailAlertsLogic.GetEmailInformationList(req)
|
|
}
|