package service import ( "gitlab.wodcloud.com/smart-operation/so-operation-api/src/bean/vo/response" "gitlab.wodcloud.com/smart-operation/so-operation-api/src/common/client" "gitlab.wodcloud.com/smart-operation/so-operation-api/src/pkg/beagle/resp" ) type Example struct { } func (e Example) List() (result response.SystemUserListRes, err error) { db, err := client.GetDbClient() if err != nil { err = resp.FAIL.WithError(err) return } if err = db.Find(&result); err != nil { err = resp.FAIL.WithError(err) return } return }