优化结构
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"kra/internal/service"
|
||||
"kra/internal/service/dto"
|
||||
systemservice "kra/internal/service/system"
|
||||
"strconv"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type Dictionary struct{ service *service.DictionaryService }
|
||||
type Dictionary struct {
|
||||
service *systemservice.DictionaryService
|
||||
}
|
||||
|
||||
func NewDictionary(service *service.DictionaryService) *Dictionary {
|
||||
func NewDictionary(service *systemservice.DictionaryService) *Dictionary {
|
||||
return &Dictionary{service: service}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user