chore: 领域模型 & DTO
This commit is contained in:
7
interval/model/topic.go
Normal file
7
interval/model/topic.go
Normal file
@ -0,0 +1,7 @@
|
||||
package model
|
||||
|
||||
type Topic string
|
||||
|
||||
func (t Topic) Valid() bool {
|
||||
return t != ""
|
||||
}
|
||||
Reference in New Issue
Block a user