fusenapi/model/gmodel/fs_tool_logs_logic.go

10 lines
255 B
Go
Raw Normal View History

2023-06-19 18:27:31 +08:00
package gmodel
2023-07-11 17:08:19 +08:00
import "context"
2023-07-11 17:08:19 +08:00
// TODO: 使用model的属性做你想做的
func (t *FsToolLogsModel) FindAll(ctx context.Context) (resp []FsToolLogs, err error) {
err = t.db.WithContext(ctx).Model(&FsToolLogs{}).Find(&resp).Error
return resp, err
}