Record Class AddSubscriptionReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.subscription.entity.AddSubscriptionReq
- Record Components:
appId- 订阅接口的第三方应用标识openapiCode- 被订阅的对外接口的编码
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.Into<Subscription>
public record AddSubscriptionReq(@NotNull String appId, @Alphanumeric(excludes="\\.") @NotBlank @Size(max=255) String openapiCode)
extends Record
implements io.github.xezzon.zeroweb.core.trait.Into<Subscription>
添加订阅请求对象,用于向订阅系统申请订阅指定接口
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionAddSubscriptionReq(@NotNull String appId, @Alphanumeric(excludes="\\.") @NotBlank @Size(max=255) String openapiCode) Creates an instance of aAddSubscriptionReqrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringappId()Returns the value of theappIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.into()将请求对象转换为订阅实体@Alphanumeric(excludes="\\.") @NotBlank @Size(max=255) StringReturns the value of theopenapiCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AddSubscriptionReq
public AddSubscriptionReq(@NotNull @NotNull String appId, @Alphanumeric(excludes="\\.") @NotBlank @Size(max=255) @Alphanumeric(excludes="\\.") @NotBlank @Size(max=255) String openapiCode) Creates an instance of aAddSubscriptionReqrecord class.- Parameters:
appId- the value for theappIdrecord componentopenapiCode- the value for theopenapiCoderecord component
-
-
Method Details
-
into
将请求对象转换为订阅实体- Specified by:
intoin interfaceio.github.xezzon.zeroweb.core.trait.Into<Subscription>- Returns:
- 订阅实体对象
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
appId
-
openapiCode
@Alphanumeric(excludes="\\.") @NotBlank @Size(max=255) public @Alphanumeric(excludes="\\.") @NotBlank @Size(max=255) String openapiCode()Returns the value of theopenapiCoderecord component.- Returns:
- the value of the
openapiCoderecord component
-