12345678910111213141516171819202122232425262728293031323334353637 |
- package logic
- import (
- service "app.yhyue.com/moapp/MessageCenter/rpc/internal/common"
- "app.yhyue.com/moapp/MessageCenter/rpc/messageclient"
- "context"
- "app.yhyue.com/moapp/MessageCenter/rpc/internal/svc"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type BitmapSaveMsgLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewBitmapSaveMsgLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BitmapSaveMsgLogic {
- return &BitmapSaveMsgLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // BitmapSaveMsg bitmap发送消息
- func (l *BitmapSaveMsgLogic) BitmapSaveMsg(in *messageclient.MultipleSaveMsgReq) (*messageclient.MultipleSaveMsgResp, error) {
- var code = 1
- err := service.UpdateUserMsgSummary(in)
- if err != nil {
- code = 0
- }
- return &messageclient.MultipleSaveMsgResp{
- Code: int64(code),
- Message: err.Error(),
- }, nil
- }
|