优化
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type Authority struct{ service *service.AccessService }
|
||||
type Authority struct{ service *service.AuthorityService }
|
||||
|
||||
func NewAuthority(service *service.AccessService) *Authority { return &Authority{service: service} }
|
||||
func NewAuthority(service *service.AuthorityService) *Authority { return &Authority{service: service} }
|
||||
|
||||
func (h *Authority) List(c *gin.Context) {
|
||||
items, err := h.service.Authorities(c.Request.Context())
|
||||
|
||||
Reference in New Issue
Block a user