摘要: 接口类 using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; using System.Linq.Expressions; namespace Demo { /// <summary> // 阅读全文
posted @ 2024-04-02 19:06 Mr_Xul 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 自定义注解 [Injectable],自动依赖注入 using Microsoft.Extensions.DependencyInjection; using System; namespace Demo { /// <summary> /// 自定义注解 [Injectable],自动依赖注入 / 阅读全文
posted @ 2024-04-02 10:48 Mr_Xul 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 自定义扩展类 using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Mvc; using Microsoft 阅读全文
posted @ 2024-04-02 10:21 Mr_Xul 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 自定义返回级别 namespace Demo { /// <summary> /// 自定义返回级别 /// </summary> public enum ResultLevel : int { /// <summary> /// 正确 /// </summary> OK = 0, /// <sum 阅读全文
posted @ 2024-04-02 10:16 Mr_Xul 阅读(220) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.IdentityModel.Tokens; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; namespace Demo { /// <su 阅读全文
posted @ 2024-04-02 09:58 Mr_Xul 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 使用的第三方库:MQTTnet MQTT数据接收事件参数 namespace Demo { /// <summary> /// MQTT数据接收事件参数 /// </summary> public class MqttReceivedEventArgs : EventArgs { /// <summ 阅读全文
posted @ 2024-04-02 09:47 Mr_Xul 阅读(81) 评论(0) 推荐(0) 编辑
摘要: HTTP请求类型枚举 namespace Demo { /// <summary> /// HTTP请求类型 /// </summary> public enum HttpRequestType { /// <summary> /// GET请求 /// </summary> GET, /// <s 阅读全文
posted @ 2024-04-02 09:41 Mr_Xul 阅读(42) 评论(0) 推荐(0) 编辑