chatgroupaddlogic.go 994 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package logic
  2. import (
  3. "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/service"
  4. "context"
  5. "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/rpc/messagecenter/internal/svc"
  6. "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/rpc/messagecenter/messagecenter"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type ChatGroupAddLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewChatGroupAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ChatGroupAddLogic {
  15. return &ChatGroupAddLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. var ChatGroup service.ChatGroupService
  22. // 群组新增
  23. func (l *ChatGroupAddLogic) ChatGroupAdd(in *messagecenter.ChatGroupAddReq) (*messagecenter.CommonReq, error) {
  24. // todo: add your logic here and delete this line
  25. status := ChatGroup.ChatGroupAdd(in.EntId, in.PositionId, in.UserIdArr, in.AppId)
  26. return &messagecenter.CommonReq{
  27. ErrorCode: 0,
  28. Status: status,
  29. }, nil
  30. }