first commit

This commit is contained in:
ytc1012
2025-11-18 18:08:48 +08:00
commit de90ad79ea
162 changed files with 28098 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package logic
import "time"
type User struct {
rid int
nickName string
}
func NewUser(rid int, nickName string) *User {
return &User{
rid: rid,
nickName: nickName,
}
}
type Msg struct {
RId int `json:"rid"`
NickName string `json:"nickName"`
Msg string `json:"msg"`
Time time.Time `json:"time"`
}