123456789101112131415161718192021222324252627282930313233 |
- // ================================================================================
- // Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
- // You can delete these comments if you wish manually maintain this interface file.
- // ================================================================================
- package service
- import (
- v1 "birdcall/api/defi/v1"
- "context"
- )
- type (
- IDefi interface {
- Support(ctx context.Context, req *v1.SupportReq) (*v1.CommonRes, error)
- Price(ctx context.Context, req *v1.PriceReq) (*v1.CommonRes, error)
- }
- )
- var (
- localDefi IDefi
- )
- func Defi() IDefi {
- if localDefi == nil {
- panic("implement not found for interface IDefi, forgot register?")
- }
- return localDefi
- }
- func RegisterDefi(i IDefi) {
- localDefi = i
- }
|