feat:完善项目

This commit is contained in:
henry
2021-11-03 18:04:12 +08:00
parent af976f83c1
commit b07cb9587b
3 changed files with 22 additions and 33 deletions

View File

@ -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 {