代码整理

This commit is contained in:
jianzhichu
2026-01-23 22:24:00 +08:00
parent 60f6e3847d
commit 3f6b1874eb
60 changed files with 348 additions and 991 deletions
+3 -3
View File
@@ -80,7 +80,7 @@ namespace dy.net.model.dto
/// <param name="t"></param>
/// <param name="message"></param>
/// <returns></returns>
public static IActionResult SuccOrFail<T>(int code,T t,string message = "")
public static IActionResult SuccOrFail<T>(int code, T t, string message = "")
{
if (code == ResponseCode.Success)
{
@@ -130,7 +130,7 @@ namespace dy.net.model.dto
/// <param name="message">错误消息</param>
/// <param name="data">附加数据</param>
/// <returns>IActionResult</returns>
public static IActionResult Fail<T>(string message="请求失败", int businessCode = ResponseCode.ServerError, T data = default)
public static IActionResult Fail<T>(string message = "请求失败", int businessCode = ResponseCode.ServerError, T data = default)
{
var response = new DouyinApiResponse<T>
{
@@ -158,7 +158,7 @@ namespace dy.net.model.dto
/// </summary>
/// <param name="message">错误消息</param>
/// <returns>IActionResult</returns>
public static IActionResult Fail(string message="请求失败")
public static IActionResult Fail(string message = "请求失败")
{
return Fail<object>(message, ResponseCode.ServerError);
}
+1 -3
View File
@@ -1,6 +1,4 @@
using Newtonsoft.Json;
namespace dy.net.model.dto
namespace dy.net.model.dto
{
public class DouyinUpSecUserIdDto
{
+2 -4
View File
@@ -1,6 +1,4 @@
using System.ComponentModel.DataAnnotations;
namespace dy.net.model.dto
namespace dy.net.model.dto
{
public class DouyinVideoPageRequestDto : PageRequestDto
{
@@ -35,7 +33,7 @@ namespace dy.net.model.dto
}
public class FollowRequestDto: PageRequestDto
public class FollowRequestDto : PageRequestDto
{
public string FollowUserName { get; set; }
+1 -8
View File
@@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dy.net.model.dto
namespace dy.net.model.dto
{
public class MediaMergeRequest
{
+1 -3
View File
@@ -1,6 +1,4 @@
using System.ComponentModel;
namespace dy.net.model.dto
namespace dy.net.model.dto
{
public enum VideoTypeEnum
{