feat: minilogin改造
This commit is contained in:
@@ -18,8 +18,10 @@ func GetLevelConfigListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
var req types.LevelConfigListReq
|
||||
if err := httpx.Parse(r, &req); err != nil {
|
||||
response.Fail(w, err.Error())
|
||||
return
|
||||
if r.Method != http.MethodGet {
|
||||
response.Fail(w, err.Error())
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
l := config.NewGetLevelConfigListLogic(r.Context(), svcCtx)
|
||||
|
||||
Reference in New Issue
Block a user