app-cloudep-notification-se.../internal/logic/senderservice/send_mail_by_template_id_lo...

33 lines
843 B
Go
Raw Normal View History

2024-08-20 06:35:14 +00:00
package senderservicelogic
import (
"app-cloudep-notification-service/gen_result/pb/notification"
"app-cloudep-notification-service/internal/svc"
2024-08-20 10:17:34 +00:00
"context"
"fmt"
2024-08-20 15:53:20 +00:00
ers "code.30cm.net/digimon/library-go/errors"
2024-08-20 06:35:14 +00:00
"github.com/zeromicro/go-zero/core/logx"
)
type SendMailByTemplateIdLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewSendMailByTemplateIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendMailByTemplateIdLogic {
return &SendMailByTemplateIdLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
2024-08-20 10:05:39 +00:00
// SendMailByTemplateId 寄送模板信件
2024-08-20 06:35:14 +00:00
func (l *SendMailByTemplateIdLogic) SendMailByTemplateId(in *notification.SendByTemplateIDReq) (*notification.OKResp, error) {
2024-08-20 10:05:39 +00:00
fmt.Println(ers.ResourceNotFound("testing"))
2024-08-20 06:35:14 +00:00
return &notification.OKResp{}, nil
}