feat(protocol): /v1 协议去除 fixed 时长模式,统一 options/range
- /v1/models:单值时长也输出 {"mode":"options","options":[N]},不再发 fixed
- 导入/同步校验只接受 options / range,fixed 分支删除,报错「时长模式仅支持 options / range」
- 渠道模型预览的 fixed 展示分支去掉
- 内部存储不变(durations 数组),历史模型与下单逻辑不受影响
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -102,7 +102,7 @@ type RemoteModel struct {
|
||||
|
||||
// RemoteDuration mirrors the duration spec of a vivid model item.
|
||||
type RemoteDuration struct {
|
||||
Mode string `json:"mode"` // fixed | options | range
|
||||
Mode string `json:"mode"` // options | range
|
||||
Seconds int64 `json:"seconds,omitempty"`
|
||||
Min int64 `json:"min,omitempty"`
|
||||
Max int64 `json:"max,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user