支持在线时间跨天并优化发布与筛选体验

允许在线时段 end 早于 start 表示跨天,统一展示「次日」文案;修复移动端价格区间清空后被 sessionStorage 回写;优化 PC/移动端在线时间控件密度与通栏展示。
This commit is contained in:
yml2213
2026-07-19 17:28:57 +08:00
parent 6450b31129
commit ae79550d78
12 changed files with 410 additions and 136 deletions
@@ -54,7 +54,9 @@ func validateRequiredOnlineTime(req CreateRequest) error {
if !ok {
return ErrInvalidOnlineTime
}
if startMinute >= endMinute {
// 允许跨天:start > end 表示每日 start 至次日 end(如 23:00-05:00
// 仅禁止起止时刻相同(全天请用 00:00-23:59
if startMinute == endMinute {
return ErrInvalidOnlineTime
}
return nil