(meta *model.Meta, path string)
| 199 | } |
| 200 | |
| 201 | func isEncrypt(meta *model.Meta, path string) bool { |
| 202 | if common.IsStorageSignEnabled(path) { |
| 203 | return true |
| 204 | } |
| 205 | if meta == nil || meta.Password == "" { |
| 206 | return false |
| 207 | } |
| 208 | if !common.MetaCoversPath(meta.Path, path, meta.PSub) { |
| 209 | return false |
| 210 | } |
| 211 | return true |
| 212 | } |
| 213 | |
| 214 | func pagination(objs []model.Obj, req *model.PageReq) (int, []model.Obj) { |
| 215 | pageIndex, pageSize := req.Page, req.PerPage |