| 106 | } |
| 107 | |
| 108 | func (i *imlSubscribeService) Subscribers(ctx context.Context, service string, status int) ([]*Subscribe, error) { |
| 109 | list, err := i.store.List(ctx, map[string]interface{}{"apply_status": status, "service": service}, "create_at desc") |
| 110 | if err != nil { |
| 111 | return nil, err |
| 112 | } |
| 113 | return utils.SliceToSlice(list, FromEntity), nil |
| 114 | } |
| 115 | |
| 116 | func (i *imlSubscribeService) ListBySubscribeStatus(ctx context.Context, serviceId string, status int) ([]*Subscribe, error) { |
| 117 | w := make(map[string]interface{}) |