| 111 | } |
| 112 | |
| 113 | func (i *imlServiceService) AppList(ctx context.Context, appIds ...string) ([]*Service, error) { |
| 114 | w := make(map[string]interface{}) |
| 115 | if len(appIds) > 0 { |
| 116 | w["uuid"] = appIds |
| 117 | } |
| 118 | w["as_app"] = true |
| 119 | w["is_delete"] = false |
| 120 | list, err := i.store.List(ctx, w) |
| 121 | if err != nil { |
| 122 | return nil, err |
| 123 | } |
| 124 | return utils.SliceToSlice(list, FromEntity), nil |
| 125 | } |
| 126 | |
| 127 | func (i *imlServiceService) Check(ctx context.Context, id string, rule map[string]bool) (*Service, error) { |
| 128 | pro, err := i.Get(ctx, id) |