feat:完善项目
This commit is contained in:
28
app/controller/role/auth.go
Normal file
28
app/controller/role/auth.go
Normal file
@ -0,0 +1,28 @@
|
||||
package role
|
||||
|
||||
import (
|
||||
"ArmedPolice/app/controller/basic"
|
||||
"ArmedPolice/app/service"
|
||||
)
|
||||
|
||||
type Auth struct{ *service.Session }
|
||||
|
||||
type AuthHandle func(session *service.Session) *Auth
|
||||
|
||||
func (c *Auth) List() (*basic.PageDataResponse, error) {
|
||||
return &basic.PageDataResponse{Data: nil, Count: 0}, nil
|
||||
}
|
||||
|
||||
func (c *Auth) Form() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Auth) Delete() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func NewAuth() AuthHandle {
|
||||
return func(session *service.Session) *Auth {
|
||||
return &Auth{session}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user