初始化v1
This commit is contained in:
22
internal/controller/user/config.go
Normal file
22
internal/controller/user/config.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"nl-video-api/internal/service"
|
||||
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
)
|
||||
|
||||
// ConfigController 系统配置控制器
|
||||
type ConfigController struct{}
|
||||
|
||||
var Config = &ConfigController{}
|
||||
|
||||
// GetList 获取配置列表
|
||||
func (c *ConfigController) GetList(r *ghttp.Request) {
|
||||
service.Config.GetList(r)
|
||||
}
|
||||
|
||||
// GetByKey 根据键获取配置
|
||||
func (c *ConfigController) GetByKey(r *ghttp.Request) {
|
||||
service.Config.GetByKey(r)
|
||||
}
|
||||
Reference in New Issue
Block a user