|
- package mq
-
- import (
- "gitlink.org.cn/cloudream/common/consts/errorcode"
- "gitlink.org.cn/cloudream/common/pkgs/mq"
- hubmq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/hub"
- )
-
- func (svc *Service) PublicStoreListAll(msg *hubmq.PublicStoreListAll) (*hubmq.PublicStoreListAllResp, *mq.CodeMessage) {
- pub, err := svc.stgPool.GetPublicStore(&msg.UserSpace)
- if err != nil {
- return nil, mq.Failed(errorcode.OperationFailed, err.Error())
- }
-
- es, err := pub.ListAll(msg.Path)
- if err != nil {
- return nil, mq.Failed(errorcode.OperationFailed, err.Error())
- }
-
- return mq.ReplyOK(&hubmq.PublicStoreListAllResp{
- Entries: es,
- })
- }
|