ShiRongWeChatOpenIdTask/IO.Swagger/Model/PagedSearchGoodsSearchRequest.cs
2025-04-21 14:10:27 +08:00

160 lines
5.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 后台API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: Admin
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
/// <summary>
/// 分页查询类,带分页信息
/// </summary>
[DataContract]
public partial class PagedSearchGoodsSearchRequest : IEquatable<PagedSearchGoodsSearchRequest>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="PagedSearchGoodsSearchRequest" /> class.
/// </summary>
/// <param name="condition">查询条件.</param>
/// <param name="pageSize">每页显示行数.</param>
/// <param name="page">页索引即从第几页从1开始.</param>
public PagedSearchGoodsSearchRequest(GoodsSearchRequest condition = default(GoodsSearchRequest), int? pageSize = default(int?), int? page = default(int?))
{
this.Condition = condition;
this.PageSize = pageSize;
this.Page = page;
}
/// <summary>
/// 查询条件
/// </summary>
/// <value>查询条件</value>
[DataMember(Name="condition", EmitDefaultValue=false)]
public GoodsSearchRequest Condition { get; set; }
/// <summary>
/// 每页显示行数
/// </summary>
/// <value>每页显示行数</value>
[DataMember(Name="pageSize", EmitDefaultValue=false)]
public int? PageSize { get; set; }
/// <summary>
/// 页索引即从第几页从1开始
/// </summary>
/// <value>页索引即从第几页从1开始</value>
[DataMember(Name="page", EmitDefaultValue=false)]
public int? Page { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class PagedSearchGoodsSearchRequest {\n");
sb.Append(" Condition: ").Append(Condition).Append("\n");
sb.Append(" PageSize: ").Append(PageSize).Append("\n");
sb.Append(" Page: ").Append(Page).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as PagedSearchGoodsSearchRequest);
}
/// <summary>
/// Returns true if PagedSearchGoodsSearchRequest instances are equal
/// </summary>
/// <param name="input">Instance of PagedSearchGoodsSearchRequest to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(PagedSearchGoodsSearchRequest input)
{
if (input == null)
return false;
return
(
this.Condition == input.Condition ||
(this.Condition != null &&
this.Condition.Equals(input.Condition))
) &&
(
this.PageSize == input.PageSize ||
(this.PageSize != null &&
this.PageSize.Equals(input.PageSize))
) &&
(
this.Page == input.Page ||
(this.Page != null &&
this.Page.Equals(input.Page))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Condition != null)
hashCode = hashCode * 59 + this.Condition.GetHashCode();
if (this.PageSize != null)
hashCode = hashCode * 59 + this.PageSize.GetHashCode();
if (this.Page != null)
hashCode = hashCode * 59 + this.Page.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}