Class ThirdAppInfo

java.lang.Object
com.sankcrm.erp.domain.model.IdentifiedDomainObject
com.sankcrm.erp.domain.model.Entity
com.sankcrm.erp.domain.model.ConcurrencySafeEntity
com.sankcrm.erp.auth.domain.model.thirdauth.ThirdAppInfo
All Implemented Interfaces:
Serializable

@Entity public class ThirdAppInfo extends com.sankcrm.erp.domain.model.ConcurrencySafeEntity
第三方应用信息
Since:
2.1.7
Author:
zhsxin
See Also:
create time:
2024/1/12 上午10:23
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Optional<T>
    secretTo(Class<T> type)
    接口配置类型转换
    withApi(T api)
    修改接口信息

    Methods inherited from class com.sankcrm.erp.domain.model.ConcurrencySafeEntity

    failWhenConcurrencyViolation, getUpdatedDateTime, getVersion, setUpdatedDateTime, setVersion

    Methods inherited from class com.sankcrm.erp.domain.model.Entity

    getCreatedDateTime, setCreatedDateTime

    Methods inherited from class com.sankcrm.erp.domain.model.IdentifiedDomainObject

    equals, evict, getId, hashCode, merge, refresh, setId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ThirdAppInfo

      public ThirdAppInfo()
  • Method Details

    • withApi

      public <T> ThirdAppInfo withApi(T api)
      修改接口信息
      Type Parameters:
      T - 类型
      Parameters:
      api - 接口信息
      Returns:
      应用配置
    • secretTo

      public <T> Optional<T> secretTo(Class<T> type)
      接口配置类型转换
      Type Parameters:
      T - 类型
      Parameters:
      type - 目标类型
      Returns:
      Secret