feat: 迁移plant
This commit is contained in:
@@ -17,20 +17,32 @@ type (
|
||||
AddCarePlanReq = plant.AddCarePlanReq
|
||||
AddCareRecordReq = plant.AddCareRecordReq
|
||||
AddGrowthRecordReq = plant.AddGrowthRecordReq
|
||||
AiQuotaResp = plant.AiQuotaResp
|
||||
BadgeConfigInfo = plant.BadgeConfigInfo
|
||||
BadgeConfigListReq = plant.BadgeConfigListReq
|
||||
BadgeConfigListResp = plant.BadgeConfigListResp
|
||||
CarePlanInfo = plant.CarePlanInfo
|
||||
CareTaskInfo = plant.CareTaskInfo
|
||||
CareTaskListResp = plant.CareTaskListResp
|
||||
ClassifyLogInfo = plant.ClassifyLogInfo
|
||||
ClassifyLogListResp = plant.ClassifyLogListResp
|
||||
CommentPostReq = plant.CommentPostReq
|
||||
CommonResp = plant.CommonResp
|
||||
CreateBadgeConfigReq = plant.CreateBadgeConfigReq
|
||||
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
|
||||
GetProfileReq = plant.GetProfileReq
|
||||
GrowthRecordInfo = plant.GrowthRecordInfo
|
||||
IdReq = plant.IdReq
|
||||
@@ -38,6 +50,7 @@ type (
|
||||
LevelConfigInfo = plant.LevelConfigInfo
|
||||
LevelConfigListResp = plant.LevelConfigListResp
|
||||
LikePostReq = plant.LikePostReq
|
||||
MediaCheckCallbackReq = plant.MediaCheckCallbackReq
|
||||
PageReq = plant.PageReq
|
||||
PlantDetailResp = plant.PlantDetailResp
|
||||
PlantInfo = plant.PlantInfo
|
||||
@@ -52,19 +65,42 @@ type (
|
||||
ToggleStarReq = plant.ToggleStarReq
|
||||
TopicInfo = plant.TopicInfo
|
||||
TopicListResp = plant.TopicListResp
|
||||
UpdateBadgeConfigReq = plant.UpdateBadgeConfigReq
|
||||
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
|
||||
// new types
|
||||
AiChatHistoryInfo = plant.AiChatHistoryInfo
|
||||
AiChatHistoryReq = plant.AiChatHistoryReq
|
||||
AiChatHistoryResp = plant.AiChatHistoryResp
|
||||
BadgeGroupInfo = plant.BadgeGroupInfo
|
||||
BadgeConfigTreeResp = plant.BadgeConfigTreeResp
|
||||
CompleteTaskReq = plant.CompleteTaskReq
|
||||
TaskCompletionResult = plant.TaskCompletionResult
|
||||
SaveAiChatHistoryReq = plant.SaveAiChatHistoryReq
|
||||
SyncWikiVectorReq = plant.SyncWikiVectorReq
|
||||
|
||||
PlantService interface {
|
||||
// 用户Profile
|
||||
GetUserProfile(ctx context.Context, in *GetProfileReq, 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)
|
||||
@@ -73,14 +109,27 @@ type (
|
||||
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)
|
||||
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)
|
||||
@@ -88,16 +137,46 @@ type (
|
||||
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)
|
||||
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)
|
||||
// 兑换详情
|
||||
GetExchangeItemDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*ExchangeItemInfo, error)
|
||||
// 养护完成任务
|
||||
CompleteTask(ctx context.Context, in *CompleteTaskReq, opts ...grpc.CallOption) (*TaskCompletionResult, 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)
|
||||
}
|
||||
|
||||
defaultPlantService struct {
|
||||
@@ -106,155 +185,238 @@ type (
|
||||
)
|
||||
|
||||
func NewPlantService(cli zrpc.Client) PlantService {
|
||||
return &defaultPlantService{
|
||||
cli: cli,
|
||||
}
|
||||
return &defaultPlantService{cli: cli}
|
||||
}
|
||||
|
||||
// 用户Profile
|
||||
// ---- 用户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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetUserProfile(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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).UpdateUserProfile(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) GetMyBadges(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*UserBadgeListResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetMyBadges(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) GetMyStars(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*UserStarListResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).AddCarePlan(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) DeleteCarePlan(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).DeleteCarePlan(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) GetTodayTaskList(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*CareTaskListResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetTodayTaskList(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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetWikiDetail(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) CreateWiki(ctx context.Context, in *CreateWikiReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).CreateWiki(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) UpdateWiki(ctx context.Context, in *UpdateWikiReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).UpdateWiki(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) DeleteWiki(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).DeleteWiki(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) SyncWikiVector(ctx context.Context, in *SyncWikiVectorReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).SyncWikiVector(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) DeleteWikiVector(ctx context.Context, in *SyncWikiVectorReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).DeleteWikiVector(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) SyncAllWikiVector(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).CreateWikiClass(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) UpdateWikiClass(ctx context.Context, in *UpdateWikiClassReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).UpdateWikiClass(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) DeleteWikiClass(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).ToggleWikiStar(ctx, in, opts...)
|
||||
}
|
||||
|
||||
// 社区
|
||||
// ---- OCR ----
|
||||
func (m *defaultPlantService) GetMyClassifyLog(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*ClassifyLogListResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetMyClassifyLog(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) DeleteClassifyLog(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).LikePost(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) StarPost(ctx context.Context, in *LikePostReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).StarPost(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) MediaCheckCallback(ctx context.Context, in *MediaCheckCallbackReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetTopicList(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) GetTopicDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*TopicInfo, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).CreateTopic(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) UpdateTopic(ctx context.Context, in *UpdateTopicReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetExchangeItemList(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) CreateExchangeItem(ctx context.Context, in *CreateExchangeItemReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).CreateExchangeItem(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) UpdateExchangeItem(ctx context.Context, in *UpdateExchangeItemReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).UpdateExchangeItem(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) DeleteExchangeItem(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).CreateExchangeOrder(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) GetMyExchangeOrders(ctx context.Context, in *ExchangeOrderListReq, opts ...grpc.CallOption) (*ExchangeOrderListResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetMyExchangeOrders(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) GetExchangeOrderList(ctx context.Context, in *ExchangeOrderListReq, opts ...grpc.CallOption) (*ExchangeOrderListResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetExchangeOrderList(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) UpdateExchangeOrder(ctx context.Context, in *UpdateExchangeOrderReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).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...)
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetLevelConfigList(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) CreateLevelConfig(ctx context.Context, in *CreateLevelConfigReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).CreateLevelConfig(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) UpdateLevelConfig(ctx context.Context, in *UpdateLevelConfigReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).UpdateLevelConfig(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) DeleteLevelConfig(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).DeleteLevelConfig(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) GetBadgeConfigList(ctx context.Context, in *BadgeConfigListReq, opts ...grpc.CallOption) (*BadgeConfigListResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetBadgeConfigList(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) GetBadgeConfigDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*BadgeConfigInfo, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetBadgeConfigDetail(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) CreateBadgeConfig(ctx context.Context, in *CreateBadgeConfigReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).CreateBadgeConfig(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) UpdateBadgeConfig(ctx context.Context, in *UpdateBadgeConfigReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).UpdateBadgeConfig(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) DeleteBadgeConfig(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).DeleteBadgeConfig(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...)
|
||||
// ---- AI ----
|
||||
func (m *defaultPlantService) DeleteAiChatHistory(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).DeleteAiChatHistory(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) SaveAiChatHistory(ctx context.Context, in *SaveAiChatHistoryReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).SaveAiChatHistory(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) ClearAiChatHistory(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*CommonResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).ClearAiChatHistory(ctx, in, opts...)
|
||||
}
|
||||
func (m *defaultPlantService) GetAiChatQuota(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*AiQuotaResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetAiChatQuota(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultPlantService) CompleteTask(ctx context.Context, in *plant.CompleteTaskReq, opts ...grpc.CallOption) (*plant.TaskCompletionResult, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).CompleteTask(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultPlantService) GetExchangeItemDetail(ctx context.Context, in *plant.IdReq, opts ...grpc.CallOption) (*plant.ExchangeItemInfo, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetExchangeItemDetail(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultPlantService) GetWikiClassDetail(ctx context.Context, in *plant.IdReq, opts ...grpc.CallOption) (*plant.WikiClassInfo, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetWikiClassDetail(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultPlantService) GetLevelConfigDetail(ctx context.Context, in *plant.IdReq, opts ...grpc.CallOption) (*plant.LevelConfigInfo, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetLevelConfigDetail(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultPlantService) GetBadgeConfigTree(ctx context.Context, in *plant.IdReq, opts ...grpc.CallOption) (*plant.BadgeConfigTreeResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetBadgeConfigTree(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultPlantService) GetAiChatHistory(ctx context.Context, in *plant.AiChatHistoryReq, opts ...grpc.CallOption) (*plant.AiChatHistoryResp, error) {
|
||||
return plant.NewPlantServiceClient(m.cli.Conn()).GetAiChatHistory(ctx, in, opts...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user