refactor: разнести пакеты и обновить валидацию

This commit is contained in:
Георгий
2026-07-14 22:00:34 +03:00
parent 3ed29fa8e6
commit 1e1008d506
20 changed files with 409 additions and 128 deletions

15
protocol/state.go Normal file
View File

@@ -0,0 +1,15 @@
package protocol
import "time"
// ContentState is the current display state received from BVK.
type ContentState struct {
Route string `json:"route"`
Text string `json:"str"`
Template string `json:"tpl_name"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
}
func (s ContentState) IsZero() bool {
return s.Route == "" && s.Text == "" && s.Template == ""
}