All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.config.TichainConfig Maven / Gradle / Ivy

package k.e.book.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@ConfigurationProperties(value = "tichain")
@Data
public class TichainConfig implements Serializable {

    private String host;

    private String appId;
    private String appKey;
    private String userKey;
    private String cdnUrl;

    private String publicApi;
    private String transferApi;
    private String burnApi;
    private String detailApi;
    private String userApi;
    private String userInfoApi;
    private String tokenQueryApi;
    private String tokenApproveApi;
    private String transStatusApi;

    /**
     *
     * @return 通过交易hash查询tokenID
     */
    public String getTransStatusApi(){
        return host + transStatusApi;
    }

    public String getUserInfo(){
        return host + userInfoApi;
    }

    public String getPublic() {
        return host + publicApi;
    }

    public String getTransfer() {
        return host + transferApi;
    }

    public String getUser() {
        return host + userApi;
    }

    /**
     *
     * @return 根据token编号查询所属用户地址
     */
    public String getTokenQuery() {
        return host + tokenQueryApi;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy