597 lines
31 KiB
Go
597 lines
31 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.1
|
|
// Source: plant.proto
|
|
|
|
package plantservice
|
|
|
|
import (
|
|
"context"
|
|
|
|
"sundynix-micro-go/app/plant/rpc/plant"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
AddCarePlanReq = plant.AddCarePlanReq
|
|
AddCareRecordReq = plant.AddCareRecordReq
|
|
AddGrowthRecordReq = plant.AddGrowthRecordReq
|
|
AiChatHistoryInfo = plant.AiChatHistoryInfo
|
|
AiChatHistoryReq = plant.AiChatHistoryReq
|
|
AiChatHistoryResp = plant.AiChatHistoryResp
|
|
AiQuotaResp = plant.AiQuotaResp
|
|
BadgeConfigInfo = plant.BadgeConfigInfo
|
|
BadgeConfigListReq = plant.BadgeConfigListReq
|
|
BadgeConfigListResp = plant.BadgeConfigListResp
|
|
BadgeConfigTreeResp = plant.BadgeConfigTreeResp
|
|
BadgeGroupInfo = plant.BadgeGroupInfo
|
|
BannerInfo = plant.BannerInfo
|
|
BannerListReq = plant.BannerListReq
|
|
BannerListResp = plant.BannerListResp
|
|
CarePlanInfo = plant.CarePlanInfo
|
|
CareTaskInfo = plant.CareTaskInfo
|
|
CareTaskListResp = plant.CareTaskListResp
|
|
ClassifyLogInfo = plant.ClassifyLogInfo
|
|
ClassifyLogListResp = plant.ClassifyLogListResp
|
|
CommentPostReq = plant.CommentPostReq
|
|
CommonResp = plant.CommonResp
|
|
CompleteTaskReq = plant.CompleteTaskReq
|
|
CreateBadgeConfigReq = plant.CreateBadgeConfigReq
|
|
CreateBannerReq = plant.CreateBannerReq
|
|
CreateExchangeItemReq = plant.CreateExchangeItemReq
|
|
CreateExchangeOrderReq = plant.CreateExchangeOrderReq
|
|
CreateLevelConfigReq = plant.CreateLevelConfigReq
|
|
CreatePlantReq = plant.CreatePlantReq
|
|
CreatePostReq = plant.CreatePostReq
|
|
CreateTopicReq = plant.CreateTopicReq
|
|
CreateWikiClassReq = plant.CreateWikiClassReq
|
|
CreateWikiReq = plant.CreateWikiReq
|
|
ExchangeItemInfo = plant.ExchangeItemInfo
|
|
ExchangeItemListReq = plant.ExchangeItemListReq
|
|
ExchangeItemListResp = plant.ExchangeItemListResp
|
|
ExchangeOrderInfo = plant.ExchangeOrderInfo
|
|
ExchangeOrderListReq = plant.ExchangeOrderListReq
|
|
ExchangeOrderListResp = plant.ExchangeOrderListResp
|
|
FindOrCreateUserByOpenIdReq = plant.FindOrCreateUserByOpenIdReq
|
|
GetProfileReq = plant.GetProfileReq
|
|
GrowthRecordInfo = plant.GrowthRecordInfo
|
|
IdReq = plant.IdReq
|
|
IdsReq = plant.IdsReq
|
|
LevelConfigInfo = plant.LevelConfigInfo
|
|
LevelConfigListResp = plant.LevelConfigListResp
|
|
LikePostReq = plant.LikePostReq
|
|
MediaCheckCallbackReq = plant.MediaCheckCallbackReq
|
|
PageReq = plant.PageReq
|
|
PlantDetailResp = plant.PlantDetailResp
|
|
PlantInfo = plant.PlantInfo
|
|
PlantListReq = plant.PlantListReq
|
|
PlantListResp = plant.PlantListResp
|
|
PlantUserProfile = plant.PlantUserProfile
|
|
PostCommentInfo = plant.PostCommentInfo
|
|
PostDetailResp = plant.PostDetailResp
|
|
PostInfo = plant.PostInfo
|
|
PostListReq = plant.PostListReq
|
|
PostListResp = plant.PostListResp
|
|
QuickCareReq = plant.QuickCareReq
|
|
SaveAiChatHistoryReq = plant.SaveAiChatHistoryReq
|
|
SyncWikiVectorReq = plant.SyncWikiVectorReq
|
|
TaskCompletionResult = plant.TaskCompletionResult
|
|
ToggleStarReq = plant.ToggleStarReq
|
|
TopicInfo = plant.TopicInfo
|
|
TopicListResp = plant.TopicListResp
|
|
UpdateBadgeConfigReq = plant.UpdateBadgeConfigReq
|
|
UpdateBannerReq = plant.UpdateBannerReq
|
|
UpdateExchangeItemReq = plant.UpdateExchangeItemReq
|
|
UpdateExchangeOrderReq = plant.UpdateExchangeOrderReq
|
|
UpdateLevelConfigReq = plant.UpdateLevelConfigReq
|
|
UpdatePlantReq = plant.UpdatePlantReq
|
|
UpdateProfileReq = plant.UpdateProfileReq
|
|
UpdateTopicReq = plant.UpdateTopicReq
|
|
UpdateWikiClassReq = plant.UpdateWikiClassReq
|
|
UpdateWikiReq = plant.UpdateWikiReq
|
|
UserBadgeInfo = plant.UserBadgeInfo
|
|
UserBadgeListResp = plant.UserBadgeListResp
|
|
UserStarInfo = plant.UserStarInfo
|
|
UserStarListResp = plant.UserStarListResp
|
|
WikiClassInfo = plant.WikiClassInfo
|
|
WikiClassListResp = plant.WikiClassListResp
|
|
WikiDetailResp = plant.WikiDetailResp
|
|
WikiInfo = plant.WikiInfo
|
|
WikiListReq = plant.WikiListReq
|
|
WikiListResp = plant.WikiListResp
|
|
|
|
PlantService interface {
|
|
// 用户Profile
|
|
GetUserProfile(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*PlantUserProfile, error)
|
|
FindOrCreateUserByOpenId(ctx context.Context, in *FindOrCreateUserByOpenIdReq, opts ...grpc.CallOption) (*PlantUserProfile, error)
|
|
UpdateUserProfile(ctx context.Context, in *UpdateProfileReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetMyBadges(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*UserBadgeListResp, error)
|
|
GetMyStars(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*UserStarListResp, error)
|
|
// 我的植物
|
|
CreatePlant(ctx context.Context, in *CreatePlantReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
UpdatePlant(ctx context.Context, in *UpdatePlantReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeletePlant(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetPlantList(ctx context.Context, in *PlantListReq, opts ...grpc.CallOption) (*PlantListResp, error)
|
|
GetPlantDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*PlantDetailResp, error)
|
|
// 养护
|
|
AddCarePlan(ctx context.Context, in *AddCarePlanReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteCarePlan(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetTodayTaskList(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*CareTaskListResp, error)
|
|
CompleteTask(ctx context.Context, in *CompleteTaskReq, opts ...grpc.CallOption) (*TaskCompletionResult, error)
|
|
AddCareRecord(ctx context.Context, in *AddCareRecordReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
AddGrowthRecord(ctx context.Context, in *AddGrowthRecordReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
// 百科
|
|
GetWikiList(ctx context.Context, in *WikiListReq, opts ...grpc.CallOption) (*WikiListResp, error)
|
|
GetWikiDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*WikiDetailResp, error)
|
|
CreateWiki(ctx context.Context, in *CreateWikiReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
UpdateWiki(ctx context.Context, in *UpdateWikiReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteWiki(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
SyncWikiVector(ctx context.Context, in *SyncWikiVectorReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteWikiVector(ctx context.Context, in *SyncWikiVectorReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
SyncAllWikiVector(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetWikiClassList(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*WikiClassListResp, error)
|
|
CreateWikiClass(ctx context.Context, in *CreateWikiClassReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
UpdateWikiClass(ctx context.Context, in *UpdateWikiClassReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteWikiClass(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
ToggleWikiStar(ctx context.Context, in *ToggleStarReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
// OCR
|
|
GetMyClassifyLog(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*ClassifyLogListResp, error)
|
|
DeleteClassifyLog(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
// 社区
|
|
CreatePost(ctx context.Context, in *CreatePostReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeletePost(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetPostList(ctx context.Context, in *PostListReq, opts ...grpc.CallOption) (*PostListResp, error)
|
|
GetPostDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*PostDetailResp, error)
|
|
CommentPost(ctx context.Context, in *CommentPostReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
LikePost(ctx context.Context, in *LikePostReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
StarPost(ctx context.Context, in *LikePostReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
MediaCheckCallback(ctx context.Context, in *MediaCheckCallbackReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
// 话题
|
|
GetTopicList(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*TopicListResp, error)
|
|
GetTopicDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*TopicInfo, error)
|
|
CreateTopic(ctx context.Context, in *CreateTopicReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
UpdateTopic(ctx context.Context, in *UpdateTopicReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteTopic(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
// 兑换
|
|
GetExchangeItemList(ctx context.Context, in *ExchangeItemListReq, opts ...grpc.CallOption) (*ExchangeItemListResp, error)
|
|
GetExchangeItemDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*ExchangeItemInfo, error)
|
|
CreateExchangeItem(ctx context.Context, in *CreateExchangeItemReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
UpdateExchangeItem(ctx context.Context, in *UpdateExchangeItemReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteExchangeItem(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
CreateExchangeOrder(ctx context.Context, in *CreateExchangeOrderReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetMyExchangeOrders(ctx context.Context, in *ExchangeOrderListReq, opts ...grpc.CallOption) (*ExchangeOrderListResp, error)
|
|
GetExchangeOrderList(ctx context.Context, in *ExchangeOrderListReq, opts ...grpc.CallOption) (*ExchangeOrderListResp, error)
|
|
UpdateExchangeOrder(ctx context.Context, in *UpdateExchangeOrderReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
// 配置
|
|
GetLevelConfigList(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*LevelConfigListResp, error)
|
|
GetLevelConfigDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*LevelConfigInfo, error)
|
|
CreateLevelConfig(ctx context.Context, in *CreateLevelConfigReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
UpdateLevelConfig(ctx context.Context, in *UpdateLevelConfigReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteLevelConfig(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetBadgeConfigList(ctx context.Context, in *BadgeConfigListReq, opts ...grpc.CallOption) (*BadgeConfigListResp, error)
|
|
GetBadgeConfigDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*BadgeConfigInfo, error)
|
|
GetBadgeConfigTree(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*BadgeConfigTreeResp, error)
|
|
CreateBadgeConfig(ctx context.Context, in *CreateBadgeConfigReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
UpdateBadgeConfig(ctx context.Context, in *UpdateBadgeConfigReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteBadgeConfig(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetWikiClassDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*WikiClassInfo, error)
|
|
// AI
|
|
GetAiChatHistory(ctx context.Context, in *AiChatHistoryReq, opts ...grpc.CallOption) (*AiChatHistoryResp, error)
|
|
SaveAiChatHistory(ctx context.Context, in *SaveAiChatHistoryReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteAiChatHistory(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
ClearAiChatHistory(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetAiChatQuota(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*AiQuotaResp, error)
|
|
// 快捷养护
|
|
QuickCare(ctx context.Context, in *QuickCareReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
// Banner
|
|
CreateBanner(ctx context.Context, in *CreateBannerReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
UpdateBanner(ctx context.Context, in *UpdateBannerReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
DeleteBanner(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error)
|
|
GetBannerList(ctx context.Context, in *BannerListReq, opts ...grpc.CallOption) (*BannerListResp, error)
|
|
GetActiveBannerList(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*BannerListResp, error)
|
|
}
|
|
|
|
defaultPlantService struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewPlantService(cli zrpc.Client) PlantService {
|
|
return &defaultPlantService{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
// 用户Profile
|
|
func (m *defaultPlantService) GetUserProfile(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*PlantUserProfile, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetUserProfile(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) FindOrCreateUserByOpenId(ctx context.Context, in *FindOrCreateUserByOpenIdReq, opts ...grpc.CallOption) (*PlantUserProfile, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.FindOrCreateUserByOpenId(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdateUserProfile(ctx context.Context, in *UpdateProfileReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdateUserProfile(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetMyBadges(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*UserBadgeListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetMyBadges(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetMyStars(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*UserStarListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetMyStars(ctx, in, opts...)
|
|
}
|
|
|
|
// 我的植物
|
|
func (m *defaultPlantService) CreatePlant(ctx context.Context, in *CreatePlantReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreatePlant(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdatePlant(ctx context.Context, in *UpdatePlantReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdatePlant(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeletePlant(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeletePlant(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetPlantList(ctx context.Context, in *PlantListReq, opts ...grpc.CallOption) (*PlantListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetPlantList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetPlantDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*PlantDetailResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetPlantDetail(ctx, in, opts...)
|
|
}
|
|
|
|
// 养护
|
|
func (m *defaultPlantService) AddCarePlan(ctx context.Context, in *AddCarePlanReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.AddCarePlan(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteCarePlan(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteCarePlan(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetTodayTaskList(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*CareTaskListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetTodayTaskList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) CompleteTask(ctx context.Context, in *CompleteTaskReq, opts ...grpc.CallOption) (*TaskCompletionResult, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CompleteTask(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) AddCareRecord(ctx context.Context, in *AddCareRecordReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.AddCareRecord(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) AddGrowthRecord(ctx context.Context, in *AddGrowthRecordReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.AddGrowthRecord(ctx, in, opts...)
|
|
}
|
|
|
|
// 百科
|
|
func (m *defaultPlantService) GetWikiList(ctx context.Context, in *WikiListReq, opts ...grpc.CallOption) (*WikiListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetWikiList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetWikiDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*WikiDetailResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetWikiDetail(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) CreateWiki(ctx context.Context, in *CreateWikiReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreateWiki(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdateWiki(ctx context.Context, in *UpdateWikiReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdateWiki(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteWiki(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteWiki(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) SyncWikiVector(ctx context.Context, in *SyncWikiVectorReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.SyncWikiVector(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteWikiVector(ctx context.Context, in *SyncWikiVectorReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteWikiVector(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) SyncAllWikiVector(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.SyncAllWikiVector(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetWikiClassList(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*WikiClassListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetWikiClassList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) CreateWikiClass(ctx context.Context, in *CreateWikiClassReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreateWikiClass(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdateWikiClass(ctx context.Context, in *UpdateWikiClassReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdateWikiClass(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteWikiClass(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteWikiClass(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) ToggleWikiStar(ctx context.Context, in *ToggleStarReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.ToggleWikiStar(ctx, in, opts...)
|
|
}
|
|
|
|
// OCR
|
|
func (m *defaultPlantService) GetMyClassifyLog(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*ClassifyLogListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetMyClassifyLog(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteClassifyLog(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteClassifyLog(ctx, in, opts...)
|
|
}
|
|
|
|
// 社区
|
|
func (m *defaultPlantService) CreatePost(ctx context.Context, in *CreatePostReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreatePost(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeletePost(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeletePost(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetPostList(ctx context.Context, in *PostListReq, opts ...grpc.CallOption) (*PostListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetPostList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetPostDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*PostDetailResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetPostDetail(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) CommentPost(ctx context.Context, in *CommentPostReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CommentPost(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) LikePost(ctx context.Context, in *LikePostReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.LikePost(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) StarPost(ctx context.Context, in *LikePostReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.StarPost(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) MediaCheckCallback(ctx context.Context, in *MediaCheckCallbackReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.MediaCheckCallback(ctx, in, opts...)
|
|
}
|
|
|
|
// 话题
|
|
func (m *defaultPlantService) GetTopicList(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*TopicListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetTopicList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetTopicDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*TopicInfo, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetTopicDetail(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) CreateTopic(ctx context.Context, in *CreateTopicReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreateTopic(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdateTopic(ctx context.Context, in *UpdateTopicReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdateTopic(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteTopic(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteTopic(ctx, in, opts...)
|
|
}
|
|
|
|
// 兑换
|
|
func (m *defaultPlantService) GetExchangeItemList(ctx context.Context, in *ExchangeItemListReq, opts ...grpc.CallOption) (*ExchangeItemListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetExchangeItemList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetExchangeItemDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*ExchangeItemInfo, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetExchangeItemDetail(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) CreateExchangeItem(ctx context.Context, in *CreateExchangeItemReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreateExchangeItem(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdateExchangeItem(ctx context.Context, in *UpdateExchangeItemReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdateExchangeItem(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteExchangeItem(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteExchangeItem(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) CreateExchangeOrder(ctx context.Context, in *CreateExchangeOrderReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreateExchangeOrder(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetMyExchangeOrders(ctx context.Context, in *ExchangeOrderListReq, opts ...grpc.CallOption) (*ExchangeOrderListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetMyExchangeOrders(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetExchangeOrderList(ctx context.Context, in *ExchangeOrderListReq, opts ...grpc.CallOption) (*ExchangeOrderListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetExchangeOrderList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdateExchangeOrder(ctx context.Context, in *UpdateExchangeOrderReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdateExchangeOrder(ctx, in, opts...)
|
|
}
|
|
|
|
// 配置
|
|
func (m *defaultPlantService) GetLevelConfigList(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*LevelConfigListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetLevelConfigList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetLevelConfigDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*LevelConfigInfo, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetLevelConfigDetail(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) CreateLevelConfig(ctx context.Context, in *CreateLevelConfigReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreateLevelConfig(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdateLevelConfig(ctx context.Context, in *UpdateLevelConfigReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdateLevelConfig(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteLevelConfig(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteLevelConfig(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetBadgeConfigList(ctx context.Context, in *BadgeConfigListReq, opts ...grpc.CallOption) (*BadgeConfigListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetBadgeConfigList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetBadgeConfigDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*BadgeConfigInfo, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetBadgeConfigDetail(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetBadgeConfigTree(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*BadgeConfigTreeResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetBadgeConfigTree(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) CreateBadgeConfig(ctx context.Context, in *CreateBadgeConfigReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreateBadgeConfig(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdateBadgeConfig(ctx context.Context, in *UpdateBadgeConfigReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdateBadgeConfig(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteBadgeConfig(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteBadgeConfig(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetWikiClassDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*WikiClassInfo, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetWikiClassDetail(ctx, in, opts...)
|
|
}
|
|
|
|
// AI
|
|
func (m *defaultPlantService) GetAiChatHistory(ctx context.Context, in *AiChatHistoryReq, opts ...grpc.CallOption) (*AiChatHistoryResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetAiChatHistory(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) SaveAiChatHistory(ctx context.Context, in *SaveAiChatHistoryReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.SaveAiChatHistory(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteAiChatHistory(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteAiChatHistory(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) ClearAiChatHistory(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.ClearAiChatHistory(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetAiChatQuota(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*AiQuotaResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetAiChatQuota(ctx, in, opts...)
|
|
}
|
|
|
|
// 快捷养护
|
|
func (m *defaultPlantService) QuickCare(ctx context.Context, in *QuickCareReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.QuickCare(ctx, in, opts...)
|
|
}
|
|
|
|
// Banner
|
|
func (m *defaultPlantService) CreateBanner(ctx context.Context, in *CreateBannerReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.CreateBanner(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) UpdateBanner(ctx context.Context, in *UpdateBannerReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.UpdateBanner(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) DeleteBanner(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.DeleteBanner(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetBannerList(ctx context.Context, in *BannerListReq, opts ...grpc.CallOption) (*BannerListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetBannerList(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultPlantService) GetActiveBannerList(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*BannerListResp, error) {
|
|
client := plant.NewPlantServiceClient(m.cli.Conn())
|
|
return client.GetActiveBannerList(ctx, in, opts...)
|
|
}
|