34 lines
768 B
Go
34 lines
768 B
Go
// ================================================================================
|
|
// 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 (
|
|
"context"
|
|
"server/internal/model"
|
|
)
|
|
|
|
type (
|
|
IAds interface {
|
|
// Upload 广告数据上传 - 处理用户广告状态流转
|
|
Upload(ctx context.Context, in *model.AdsUploadIn) (out *model.AdsUploadOut, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localAds IAds
|
|
)
|
|
|
|
func Ads() IAds {
|
|
if localAds == nil {
|
|
panic("implement not found for interface IAds, forgot register?")
|
|
}
|
|
return localAds
|
|
}
|
|
|
|
func RegisterAds(i IAds) {
|
|
localAds = i
|
|
}
|