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

This commit is contained in:
flswld
2023-02-12 16:08:56 +08:00
parent 15199d31e8
commit 36a150c9bb
17 changed files with 171 additions and 118 deletions

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)
}
{
// 登录