修改为龙舟

This commit is contained in:
2023-07-31 00:41:04 +08:00
parent 7fd48edef8
commit fe51e85983
39 changed files with 81 additions and 133 deletions

View File

@@ -12,9 +12,10 @@ import (
)
type ConfigServer struct {
Name string
Host string `yaml:"Host"`
Port int `yaml:"Port"`
Name string
Host string `yaml:"Host"`
Port int `yaml:"Port"`
ReplicaId uint64 `yaml:"ReplicaId"`
}
func AutoGetAllServerConfig() []*ConfigServer {

View File

@@ -51,7 +51,7 @@ func NormalAfterLogic(w http.ResponseWriter, r *http.Request, resp *Response) {
}
}
func RequestParse(w http.ResponseWriter, r *http.Request, state *fsm.FsStateMachine, LogicRequest any) (*auth.UserInfo, error) {
func RequestParse(w http.ResponseWriter, r *http.Request, state *fsm.SharedState, LogicRequest any) (*auth.UserInfo, error) {
token, info, err := auth.ParseJwtTokenHeader[auth.UserInfo](r) //解析Token头, 和payload信息
if err != nil {