Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[新功能] 新增数据模型ImageInfo及相关ListManager #6

Open
sctop opened this issue Sep 20, 2023 · 0 comments
Open

[新功能] 新增数据模型ImageInfo及相关ListManager #6

sctop opened this issue Sep 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sctop
Copy link
Member

sctop commented Sep 20, 2023

背景

UrlModel在用于图片加载时过于臃肿,其中的 platform 可完全省略,至于 short_desc 也并不是必填项目。

数据结构

简化为一个包含至多两个值的列表:

["URL value", "Langstring code"]

第一个为图片实际URL,第二个为图片的简介。可不添加第二个值,直接添加:

["URL value"]

兼容性

由于暂时无法完全更新旧的 UrlModel 数据结构,因而 ImageInfo 应做到对该数据模型的兼容。

可以考虑用 UrlModel 载入,但在输出时需要规范成 ImageInfo 类型。

其他

Issue #5 需要该功能支持。

@sctop sctop added the enhancement New feature or request label Sep 20, 2023
@sctop sctop self-assigned this Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant