123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package logic
- import (
- "app.yhyue.com/moapp/MessageCenter/rpc/internal/common"
- "app.yhyue.com/moapp/MessageCenter/rpc/internal/svc"
- "app.yhyue.com/moapp/MessageCenter/rpc/type/message"
- "context"
- "fmt"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type WorkingDesktopListLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewWorkingDesktopListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WorkingDesktopListLogic {
- return &WorkingDesktopListLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // 工作桌面列表
- func (l *WorkingDesktopListLogic) WorkingDesktopList(in *message.WorkingDesktopReq) (*message.WorkingDesktopResp, error) {
- // todo: add your logic here and delete this line
- msg := ""
- code := 0
- res1, res2, err := common.WorkDeskList(in)
- fmt.Println(len(res1))
- fmt.Println(len(res2))
- if err != nil {
- code = 1
- msg = err.Error()
- }
- return &message.WorkingDesktopResp{
- Code: int64(code),
- Message: msg,
- BusMsgList: res1,
- NeedDo: res2,
- }, nil
- }
|