refactor: 重构项目结构

- 将server端相关依赖单独防止在server中
This commit is contained in:
2025-12-17 12:32:21 +08:00
parent 1bc9c6a924
commit 53555a31c0
23 changed files with 15 additions and 17 deletions

View File

@ -0,0 +1,17 @@
package dto
import (
"git.jinshen.cn/remilia/push-server/interval/server/model"
)
type Message struct {
Topic string `json:"topic"`
Content string `json:"content"`
}
func MessageFromModel(m model.Message) Message {
return Message{
Topic: string(m.Topic),
Content: string(m.Content),
}
}