摘要: 在swagger中查看登录需要用post方式访问,Abp需要用application/json方式调用 请求体 Postman调用方式 例:访问所有用户,调用Api地址为http://localhost:21021/api/services/app/User/GetAll,访问方式为Get Head 阅读全文
posted @ 2020-06-13 17:07 liessay 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 有时候实际业务中主键不一定叫Id,比如示例数据库Northwind中的RegionID,TerritoryID等,本示例用Abp框架并以Northwind数据库Region表为数据依据 一、在Core领域层创建Region实体 using System.ComponentModel.DataAnno 阅读全文
posted @ 2020-06-13 15:48 liessay 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 此处演示为MVC项目,同样权限定义需要到Application中才能在获取API时进行权限验证 一、打开Sample.Core\Authorization\PermissionNames.cs增加授权名称 代码 //Controller权限名称 public const string Pages_A 阅读全文
posted @ 2020-06-13 09:07 liessay 阅读(655) 评论(0) 推荐(0) 编辑