修改聊天和登录信息的数据库结构

This commit is contained in:
flswld committed 2023-02-12 17:13:06 +08:00
1 parent 15199d31e8
commit 36a150c9bb
17 files changed
+171 -118

No files matched your search

+4 -6
View File
@@ -47,9 +47,7 @@ func NewController(dao *dao.Dao, discovery *rpc.DiscoveryClient) (r *Controller)
func (c *Controller) authorize() gin.HandlerFunc {
return func(context *gin.Context) {
// TODO auth token或其他验证方式
ok := true
if ok {
if context.Query("key") == "flswld" {
context.Next()
return
}
@@ -80,10 +78,10 @@ func (c *Controller) registerRouter() {
{
// 调度
// dispatchosglobal.yuanshen.com
engine.GET("/query_security_file", c.query_security_file)
engine.GET("/query_region_list", c.query_region_list)
engine.GET("/query_security_file", c.querySecurityFile)
engine.GET("/query_region_list", c.queryRegionList)
// osusadispatch.yuanshen.com
engine.GET("/query_cur_region", c.query_cur_region)
engine.GET("/query_cur_region", c.queryCurRegion)
}
{
// 登录