feat:完善信息
This commit is contained in:
@ -3,6 +3,7 @@ package router
|
||||
import (
|
||||
api2 "SciencesServer/app/api/enterprise/api"
|
||||
"SciencesServer/app/api/manage/api"
|
||||
api3 "SciencesServer/app/basic/api"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@ -25,7 +26,7 @@ func registerAPI(app *gin.Engine) {
|
||||
// Captcha 验证码
|
||||
g.GET("/captcha", new(api.Captcha).Captcha)
|
||||
// Upload 上传管理
|
||||
g.POST("/upload", new(api.Upload).Upload)
|
||||
g.POST("/upload", new(api3.Upload).Upload)
|
||||
// Account 账户管理
|
||||
account := g.Group("/account")
|
||||
{
|
||||
@ -118,6 +119,8 @@ func registerAPI(app *gin.Engine) {
|
||||
func registerEnterpriseAPI(app *gin.Engine) {
|
||||
apiPrefix := "/enterprise"
|
||||
g := app.Group(apiPrefix)
|
||||
// Upload 上传管理
|
||||
g.POST("/upload", new(api3.Upload).Upload)
|
||||
// Config 配置管理
|
||||
config := g.Group("/config")
|
||||
{
|
||||
@ -151,4 +154,10 @@ func registerEnterpriseAPI(app *gin.Engine) {
|
||||
technology.POST("/equipment/edit", _api.EquipmentEdit)
|
||||
technology.POST("/equipment/delete", _api.EquipmentDelete)
|
||||
}
|
||||
// Identity 身份信息
|
||||
identity := g.Group("/config")
|
||||
{
|
||||
_api := new(api2.Identity)
|
||||
identity.POST("/expert", _api.Expert)
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ type (
|
||||
IsCors bool
|
||||
*RateLimitConfig
|
||||
}
|
||||
// RouterLimitConfig 限流配置
|
||||
// RateLimitConfig 限流配置
|
||||
RateLimitConfig struct {
|
||||
IsRate bool `json:"is_rate"`
|
||||
Limit int `json:"limit"`
|
||||
|
Reference in New Issue
Block a user