feat(server) user-defined storage structure (#1098)

[Breaking] newly uploaded file will conform to the default structure of `{uploadLocation}/{userId}/year/year-month-day/filename.ext`
This commit is contained in:
Alex 2022-12-16 14:26:12 -06:00 committed by GitHub
parent 391d00bcb9
commit c754c860fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 1892 additions and 173 deletions

View file

@ -27,6 +27,11 @@ void main() {
// TODO
});
//Future<SystemConfigTemplateStorageOptionDto> getStorageTemplateOptions() async
test('test getStorageTemplateOptions', () async {
// TODO
});
//Future<SystemConfigDto> updateConfig(SystemConfigDto systemConfigDto) async
test('test updateConfig', () async {
// TODO

View file

@ -26,6 +26,11 @@ void main() {
// TODO
});
// SystemConfigStorageTemplateDto storageTemplate
test('to test the property `storageTemplate`', () async {
// TODO
});
});

View file

@ -0,0 +1,27 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for SystemConfigStorageTemplateDto
void main() {
// final instance = SystemConfigStorageTemplateDto();
group('test SystemConfigStorageTemplateDto', () {
// String template
test('to test the property `template`', () async {
// TODO
});
});
}

View file

@ -0,0 +1,57 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for SystemConfigTemplateStorageOptionDto
void main() {
// final instance = SystemConfigTemplateStorageOptionDto();
group('test SystemConfigTemplateStorageOptionDto', () {
// List<String> yearOptions (default value: const [])
test('to test the property `yearOptions`', () async {
// TODO
});
// List<String> monthOptions (default value: const [])
test('to test the property `monthOptions`', () async {
// TODO
});
// List<String> dayOptions (default value: const [])
test('to test the property `dayOptions`', () async {
// TODO
});
// List<String> hourOptions (default value: const [])
test('to test the property `hourOptions`', () async {
// TODO
});
// List<String> minuteOptions (default value: const [])
test('to test the property `minuteOptions`', () async {
// TODO
});
// List<String> secondOptions (default value: const [])
test('to test the property `secondOptions`', () async {
// TODO
});
// List<String> presetOptions (default value: const [])
test('to test the property `presetOptions`', () async {
// TODO
});
});
}