Dart 后台开发 Aqueduct 插入数据 获取数据 API
Get接口返回用户数据列表POST接口提交用户数据进行添加控制器示例代码import'package:aqueductaqueduct.dart';import'package:demo2modelmodel.dart';classUserControllerextendsResourceController{UserController(this.context);ManagedContextcontext;Operation.get()Future<Response>getAllUser()async{finalqueryQuery<Model>(context);finalallUserawaitquery.fetch();returnResponse.ok(allUser);}Operation.post()Futur...