feat:完善项目
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
package role
|
||||
|
||||
import (
|
||||
model2 "ArmedPolice/app/common/model"
|
||||
"ArmedPolice/app/controller/basic"
|
||||
"ArmedPolice/app/model"
|
||||
"ArmedPolice/app/service"
|
||||
)
|
||||
|
||||
@ -9,8 +11,20 @@ type Instance struct{ *service.Session }
|
||||
|
||||
type InstanceHandle func(session *service.Session) *Instance
|
||||
|
||||
func (c *Instance) List() (*basic.ReturnPages, error) {
|
||||
return &basic.ReturnPages{Data: nil, Count: 0}, nil
|
||||
func (c *Instance) List() (*basic.PageDataResponse, error) {
|
||||
mSysRole := model.NewSysRole()
|
||||
|
||||
where := make([]*model2.ModelWhereOrder, 0)
|
||||
|
||||
//if {
|
||||
//
|
||||
//}
|
||||
|
||||
out := make([]*model2.SysRole, 0)
|
||||
|
||||
model2.Find(mSysRole.SysRole, &out, where...)
|
||||
|
||||
return &basic.PageDataResponse{Data: nil, Count: 0}, nil
|
||||
}
|
||||
|
||||
func (c *Instance) Form() error {
|
||||
|
Reference in New Issue
Block a user