From da022477944ae814defd14158f4bbf8fc0e65537 Mon Sep 17 00:00:00 2001 From: Blizzard Date: Sun, 24 May 2026 23:04:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20minilogin=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../internal/logic/auth/loginByPhoneLogic.go | 18 +- .../api/internal/logic/auth/miniLoginLogic.go | 63 +- app/auth/model/user_model.go | 4 - .../config/getLevelConfigListHandler.go | 6 +- .../logic/complete/completetasklogic.go | 94 +- .../logic/complete/getbadgeconfigtreelogic.go | 147 +- .../logic/config/getLevelConfigListLogic.go | 13 +- .../logic/userProfile/getUserProfileLogic.go | 106 +- app/plant/model/plant_model.go | 4 + app/plant/rpc/etc/plant.yaml | 6 + app/plant/rpc/internal/config/config.go | 1 + .../rpc/internal/logic/createbannerlogic.go | 31 + .../rpc/internal/logic/deletebannerlogic.go | 30 + .../logic/findorcreateuserbyopenidlogic.go | 136 + .../logic/getactivebannerlistlogic.go | 30 + .../rpc/internal/logic/getbannerlistlogic.go | 30 + .../rpc/internal/logic/quickcarelogic.go | 31 + .../rpc/internal/logic/updatebannerlogic.go | 30 + .../rpc/internal/server/plantServiceServer.go | 549 +- app/plant/rpc/internal/svc/serviceContext.go | 13 +- app/plant/rpc/pb/plant.pb.go | 7385 ----------------- app/plant/rpc/pb/plant.proto | 13 + app/plant/rpc/pb/plant_grpc.pb.go | 2725 ------ app/plant/rpc/plant/plant.pb.go | 1589 ++-- app/plant/rpc/plant/plant_grpc.pb.go | 408 +- app/plant/rpc/plantservice/plantService.go | 516 +- app/system/model/system_model.go | 4 - .../rpc/internal/logic/createUserLogic.go | 23 +- .../internal/logic/getUserByOpenIdLogic.go | 36 - app/system/rpc/internal/logic/userHelper.go | 26 +- .../internal/server/systemServiceServer.go | 5 - app/system/rpc/pb/system.proto | 16 +- app/system/rpc/system/system.pb.go | 704 +- app/system/rpc/system/system_grpc.pb.go | 42 +- app/system/rpc/systemservice/systemService.go | 10 - docs/dtm-saga-distributed-transaction-plan.md | 332 + 36 files changed, 3523 insertions(+), 11653 deletions(-) create mode 100644 app/plant/rpc/internal/logic/createbannerlogic.go create mode 100644 app/plant/rpc/internal/logic/deletebannerlogic.go create mode 100644 app/plant/rpc/internal/logic/findorcreateuserbyopenidlogic.go create mode 100644 app/plant/rpc/internal/logic/getactivebannerlistlogic.go create mode 100644 app/plant/rpc/internal/logic/getbannerlistlogic.go create mode 100644 app/plant/rpc/internal/logic/quickcarelogic.go create mode 100644 app/plant/rpc/internal/logic/updatebannerlogic.go delete mode 100644 app/plant/rpc/pb/plant.pb.go delete mode 100644 app/plant/rpc/pb/plant_grpc.pb.go delete mode 100644 app/system/rpc/internal/logic/getUserByOpenIdLogic.go create mode 100644 docs/dtm-saga-distributed-transaction-plan.md diff --git a/app/auth/api/internal/logic/auth/loginByPhoneLogic.go b/app/auth/api/internal/logic/auth/loginByPhoneLogic.go index 4ab02f8..db5b283 100644 --- a/app/auth/api/internal/logic/auth/loginByPhoneLogic.go +++ b/app/auth/api/internal/logic/auth/loginByPhoneLogic.go @@ -13,6 +13,7 @@ import ( "sundynix-micro-go/app/auth/api/internal/svc" "sundynix-micro-go/app/auth/api/internal/types" + plantPb "sundynix-micro-go/app/plant/rpc/plant" sysPb "sundynix-micro-go/app/system/rpc/system" "github.com/zeromicro/go-zero/core/logx" @@ -54,9 +55,20 @@ func (l *LoginByPhoneLogic) LoginByPhone(req *types.LoginByPhoneReq) (resp *type _ = jsonData _ = url.Values{} - // 2. 通过 user-rpc 查询用户 - userResp, err := l.svcCtx.SystemRpc.GetUserByOpenId(l.ctx, &sysPb.GetUserByOpenIdReq{ - OpenId: req.OpenId, + // 2. 通过 plant-rpc 和 system-rpc 获取用户 + if l.svcCtx.PlantRpc == nil { + return nil, fmt.Errorf("植物服务不可用") + } + profileResp, err := l.svcCtx.PlantRpc.FindOrCreateUserByOpenId(l.ctx, &plantPb.FindOrCreateUserByOpenIdReq{ + OpenId: req.OpenId, + ClientId: req.ClientId, + }) + if err != nil { + return nil, fmt.Errorf("微信登录解析失败") + } + + userResp, err := l.svcCtx.SystemRpc.GetUserById(l.ctx, &sysPb.GetUserByIdReq{ + Id: profileResp.UserId, }) if err != nil { return nil, fmt.Errorf("用户不存在") diff --git a/app/auth/api/internal/logic/auth/miniLoginLogic.go b/app/auth/api/internal/logic/auth/miniLoginLogic.go index cfbaf3f..508aef7 100644 --- a/app/auth/api/internal/logic/auth/miniLoginLogic.go +++ b/app/auth/api/internal/logic/auth/miniLoginLogic.go @@ -112,46 +112,39 @@ func (l *MiniLoginLogic) MiniLogin(req *types.MiniLoginReq) (resp *types.LoginRe return nil, fmt.Errorf("openid为空") } - // 4. 通过 system-rpc 创建或获取基础用户 - createResp, err := l.svcCtx.SystemRpc.CreateUser(l.ctx, &sysPb.CreateUserReq{ - Name: "", - OpenId: wxResp.Openid, - SessionKey: wxResp.SessionKey, - ClientId: req.ClientId, + // 4. 根据 clientId 路由到对应业务服务,获取或注册其扩展用户并得到 userId + var userId string + switch req.ClientId { + case ClientIdPlant: + if l.svcCtx.PlantRpc == nil { + return nil, fmt.Errorf("植物小程序服务不可用") + } + profileResp, err := l.svcCtx.PlantRpc.FindOrCreateUserByOpenId(l.ctx, &plantPb.FindOrCreateUserByOpenIdReq{ + OpenId: wxResp.Openid, + SessionKey: wxResp.SessionKey, + UnionId: wxResp.Unionid, + ClientId: req.ClientId, + }) + if err != nil { + l.Errorf("微信登录失败(植物服务):%v", err) + return nil, fmt.Errorf("登录失败") + } + userId = profileResp.UserId + default: + return nil, fmt.Errorf("暂不支持该客户端: %s", req.ClientId) + } + + // 5. 根据 userId 获取系统核心基础用户信息 + userResp, err := l.svcCtx.SystemRpc.GetUserById(l.ctx, &sysPb.GetUserByIdReq{ + Id: userId, }) if err != nil { - l.Errorf("创建用户失败: %v", err) + l.Errorf("获取系统基础用户信息失败: userId=%s, err=%v", userId, err) return nil, fmt.Errorf("登录失败") } - userId := createResp.User.Id - - // 5. 异步初始化各业务服务的用户扩展表 - // 新增小程序:在 switch 里加一个 case 即可 - go func(uid, clientId string) { - bgCtx := context.Background() - switch clientId { - case ClientIdPlant: - if l.svcCtx.PlantRpc == nil { - l.Errorf("[MiniLogin] PlantRpc 未配置,跳过 plant profile 初始化") - return - } - if _, err := l.svcCtx.PlantRpc.GetUserProfile(bgCtx, &plantPb.GetProfileReq{ - UserId: uid, - }); err != nil { - l.Errorf("[MiniLogin] 初始化 plant profile 失败: userId=%s, err=%v", uid, err) - } else { - l.Infof("[MiniLogin] plant profile 初始化成功: userId=%s", uid) - } - // case ClientIdRadio: - // l.svcCtx.RadioRpc.GetUserProfile(bgCtx, &radioPb.GetProfileReq{UserId: uid}) - default: - // 未知 clientId 或无需扩展表的场景,跳过 - } - }(userId, req.ClientId) - // 6. 生成JWT Token - token, err := generateToken(l.svcCtx.Config.Auth.AccessSecret, l.svcCtx.Config.Auth.AccessExpire, createResp.User) + token, err := generateToken(l.svcCtx.Config.Auth.AccessSecret, l.svcCtx.Config.Auth.AccessExpire, userResp.User) if err != nil { l.Errorf("生成Token失败: %v", err) return nil, fmt.Errorf("登录失败") @@ -159,6 +152,6 @@ func (l *MiniLoginLogic) MiniLogin(req *types.MiniLoginReq) (resp *types.LoginRe return &types.LoginResp{ Token: token, - UserInfo: createResp.User, + UserInfo: userResp.User, }, nil } diff --git a/app/auth/model/user_model.go b/app/auth/model/user_model.go index d9b0284..fff195e 100644 --- a/app/auth/model/user_model.go +++ b/app/auth/model/user_model.go @@ -15,10 +15,6 @@ type SundynixUser struct { Password string `gorm:"size:100;column:password" json:"-"` NickName string `gorm:"size:100;column:nick_name" json:"nickName"` Phone string `gorm:"size:20;column:phone" json:"phone"` - SessionKey string `gorm:"size:80;column:session_key" json:"-"` - UnionID string `gorm:"size:80;column:union_id" json:"unionId"` - OpenID string `gorm:"size:80;column:open_id;index" json:"openId"` - SaOpenID string `gorm:"size:80;column:sa_open_id" json:"saOpenId"` AvatarID string `gorm:"size:50;column:avatar_id" json:"avatarId"` Gender int `gorm:"default:0;column:gender" json:"gender"` LastLoginIP string `gorm:"size:20;column:last_login_ip" json:"lastLoginIp"` diff --git a/app/plant/api/internal/handler/config/getLevelConfigListHandler.go b/app/plant/api/internal/handler/config/getLevelConfigListHandler.go index 83222a8..7f8a70e 100644 --- a/app/plant/api/internal/handler/config/getLevelConfigListHandler.go +++ b/app/plant/api/internal/handler/config/getLevelConfigListHandler.go @@ -18,8 +18,10 @@ func GetLevelConfigListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.LevelConfigListReq if err := httpx.Parse(r, &req); err != nil { - response.Fail(w, err.Error()) - return + if r.Method != http.MethodGet { + response.Fail(w, err.Error()) + return + } } l := config.NewGetLevelConfigListLogic(r.Context(), svcCtx) diff --git a/app/plant/api/internal/logic/complete/completetasklogic.go b/app/plant/api/internal/logic/complete/completetasklogic.go index cf863a6..51fae35 100644 --- a/app/plant/api/internal/logic/complete/completetasklogic.go +++ b/app/plant/api/internal/logic/complete/completetasklogic.go @@ -3,11 +3,15 @@ package complete import ( "context" "fmt" + "time" - "github.com/zeromicro/go-zero/core/logx" + filePb "sundynix-micro-go/app/file/rpc/file" "sundynix-micro-go/app/plant/api/internal/svc" "sundynix-micro-go/app/plant/api/internal/types" + plantModel "sundynix-micro-go/app/plant/model" plantPb "sundynix-micro-go/app/plant/rpc/plant" + + "github.com/zeromicro/go-zero/core/logx" ) type CompleteTaskLogic struct { @@ -20,9 +24,93 @@ func NewCompleteTaskLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Comp return &CompleteTaskLogic{Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx} } -func (l *CompleteTaskLogic) CompleteTask(req *types.CompleteTaskApiReq) (*plantPb.TaskCompletionResult, error) { +func (l *CompleteTaskLogic) CompleteTask(req *types.CompleteTaskApiReq) (interface{}, error) { userId := fmt.Sprintf("%v", l.ctx.Value("userId")) - return l.svcCtx.PlantRpc.CompleteTask(l.ctx, &plantPb.CompleteTaskReq{ + resp, err := l.svcCtx.PlantRpc.CompleteTask(l.ctx, &plantPb.CompleteTaskReq{ UserId: userId, TaskId: req.TaskId, Remark: req.Remark, }) + if err != nil { + return nil, err + } + + // 1. 拼装当前等级详情(在升级时包含 perks 等完整字段,完美渲染等级弹窗) + var currentLevelData map[string]interface{} + if resp.CurrentLevel != nil { + currentLevelData = map[string]interface{}{ + "id": resp.CurrentLevel.Id, + "level": resp.CurrentLevel.Level, + "title": resp.CurrentLevel.Title, + "minSunlight": resp.CurrentLevel.MinSunlight, + "perks": "", + } + // 若发生升级,自动利用 GORM 提取等级的 Perks 描述 + if resp.IsLevelUp { + var lvl plantModel.LevelConfig + if errLvl := l.svcCtx.DB.Where("id = ?", resp.CurrentLevel.Id).First(&lvl).Error; errLvl == nil { + currentLevelData["perks"] = lvl.Perks + } + } + } + + // 2. 拼装新获得徽章详情(包含 description 和 icon.url,完美渲染新徽章弹窗) + var newBadgeData map[string]interface{} + if resp.IsGetBadge && resp.NewBadge != nil { + var bc plantModel.BadgeConfig + if errBc := l.svcCtx.DB.Where("id = ?", resp.NewBadge.Id).First(&bc).Error; errBc == nil { + newBadgeData = map[string]interface{}{ + "id": bc.ID, + "name": bc.Name, + "description": bc.Description, + "iconId": bc.IconID, + "dimension": bc.Dimension, + "groupId": bc.GroupID, + "tier": bc.Tier, + "targetAction": bc.TargetAction, + "threshold": bc.Threshold, + "comparator": bc.Comparator, + "rewardSunlight": bc.RewardSunlight, + "sort": bc.Sort, + "icon": nil, + } + // 跨微服务请求获取 Icon 图片 URL 等元数据 + if bc.IconID != "" { + fileResp, errFile := l.svcCtx.FileRpc.GetFilesByIds(l.ctx, &filePb.GetFilesByIdsReq{Ids: []string{bc.IconID}}) + if errFile == nil && fileResp != nil && len(fileResp.Files) > 0 { + f := fileResp.Files[0] + newBadgeData["icon"] = map[string]interface{}{ + "id": f.Id, + "name": f.Name, + "url": f.Url, + "tag": f.Tag, + "key": f.Key, + "suffix": f.Suffix, + "md5": f.Md5, + "createdAt": time.Unix(f.CreatedAt, 0).Format(time.RFC3339), + } + } + } + } else { + // 兜底映射 + newBadgeData = map[string]interface{}{ + "id": resp.NewBadge.Id, + "name": resp.NewBadge.Name, + "dimension": resp.NewBadge.Dimension, + "tier": resp.NewBadge.Tier, + "rewardSunlight": resp.NewBadge.RewardSunlight, + "icon": nil, + } + } + } + + // 3. 构建高度兼容的 JSON 响应,同时适配大小写驼峰字段 + res := map[string]interface{}{ + "isLevelUp": resp.IsLevelUp, + "currentLevel": currentLevelData, + "isGetBadge": resp.IsGetBadge, + "IsGetBadge": resp.IsGetBadge, // 兼容前端多处命名差异 + "newBadge": newBadgeData, + "rewardSunlight": resp.RewardSunlight, + } + + return res, nil } diff --git a/app/plant/api/internal/logic/complete/getbadgeconfigtreelogic.go b/app/plant/api/internal/logic/complete/getbadgeconfigtreelogic.go index 50c529e..0e09d3e 100644 --- a/app/plant/api/internal/logic/complete/getbadgeconfigtreelogic.go +++ b/app/plant/api/internal/logic/complete/getbadgeconfigtreelogic.go @@ -2,10 +2,13 @@ package complete import ( "context" + "time" + + filePb "sundynix-micro-go/app/file/rpc/file" + "sundynix-micro-go/app/plant/api/internal/svc" + plantModel "sundynix-micro-go/app/plant/model" "github.com/zeromicro/go-zero/core/logx" - "sundynix-micro-go/app/plant/api/internal/svc" - plantPb "sundynix-micro-go/app/plant/rpc/plant" ) type GetBadgeConfigTreeLogic struct { @@ -18,6 +21,142 @@ func NewGetBadgeConfigTreeLogic(ctx context.Context, svcCtx *svc.ServiceContext) return &GetBadgeConfigTreeLogic{Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx} } -func (l *GetBadgeConfigTreeLogic) GetBadgeConfigTree() (*plantPb.BadgeConfigTreeResp, error) { - return l.svcCtx.PlantRpc.GetBadgeConfigTree(l.ctx, &plantPb.IdReq{}) +func (l *GetBadgeConfigTreeLogic) GetBadgeConfigTree() (interface{}, error) { + var allBadges []plantModel.BadgeConfig + err := l.svcCtx.DB.Order("dimension desc, group_id asc, tier asc, sort asc").Find(&allBadges).Error + if err != nil { + return nil, err + } + + iconIds := make([]string, 0) + iconIdMap := make(map[string]bool) + for _, b := range allBadges { + if b.IconID != "" && !iconIdMap[b.IconID] { + iconIdMap[b.IconID] = true + iconIds = append(iconIds, b.IconID) + } + } + + fileMap := make(map[string]map[string]interface{}) + if len(iconIds) > 0 { + resp, err := l.svcCtx.FileRpc.GetFilesByIds(l.ctx, &filePb.GetFilesByIdsReq{Ids: iconIds}) + if err == nil && resp != nil { + for _, f := range resp.Files { + fileMap[f.Id] = map[string]interface{}{ + "id": f.Id, + "name": f.Name, + "url": f.Url, + "tag": f.Tag, + "key": f.Key, + "suffix": f.Suffix, + "md5": f.Md5, + "createdAt": time.Unix(f.CreatedAt, 0).Format(time.RFC3339), + } + } + } + } + + dimLabelMap := map[string]string{ + "PERSISTENCE": "勤勉成就", + "EXPERTISE": "专家成就", + "JOURNAL": "岁月记录", + "DISCOVERY": "探索发现", + } + + groupLabelMap := map[string]string{ + "water_master": "雨露均沾", + "alive_master": "长情陪伴", + "fert_master": "炼金术士", + "prune_master": "园艺理发师", + "repot_master": "乔迁之喜", + "doctor_master": "植物医生", + "photo_master": "光影捕手", + "night_owl": "守夜人", + } + + dimOrder := []string{"PERSISTENCE", "EXPERTISE", "JOURNAL", "DISCOVERY"} + + // Build dimension -> groupId -> badge list + tempMap := make(map[string]map[string][]map[string]interface{}) + for _, b := range allBadges { + dim := b.Dimension + group := b.GroupID + + badgeData := map[string]interface{}{ + "id": b.ID, + "name": b.Name, + "description": b.Description, + "iconId": b.IconID, + "dimension": b.Dimension, + "groupId": b.GroupID, + "tier": b.Tier, + "targetAction": b.TargetAction, + "threshold": b.Threshold, + "comparator": b.Comparator, + "rewardSunlight": b.RewardSunlight, + "sort": b.Sort, + "createdAt": b.CreatedAt.Format("2006-01-02 15:04:05"), + } + if iconData, ok := fileMap[b.IconID]; ok { + badgeData["icon"] = iconData + } else { + badgeData["icon"] = nil + } + + if tempMap[dim] == nil { + tempMap[dim] = make(map[string][]map[string]interface{}) + } + tempMap[dim][group] = append(tempMap[dim][group], badgeData) + } + + var tree []map[string]interface{} + for _, dimKey := range dimOrder { + if groupMap, exists := tempMap[dimKey]; exists { + var groupNodes []map[string]interface{} + for groupKey, badges := range groupMap { + gLabel := groupLabelMap[groupKey] + if gLabel == "" { + gLabel = groupKey + } + groupNodes = append(groupNodes, map[string]interface{}{ + "groupId": groupKey, + "groupLabel": gLabel, + "badges": badges, + }) + } + dLabel := dimLabelMap[dimKey] + if dLabel == "" { + dLabel = dimKey + } + tree = append(tree, map[string]interface{}{ + "dimension": dimKey, + "label": dLabel, + "groups": groupNodes, + }) + delete(tempMap, dimKey) + } + } + + // Handle leftover dimensions + for dimKey, groupMap := range tempMap { + var groupNodes []map[string]interface{} + for groupKey, badges := range groupMap { + gLabel := groupLabelMap[groupKey] + if gLabel == "" { + gLabel = groupKey + } + groupNodes = append(groupNodes, map[string]interface{}{ + "groupId": groupKey, + "groupLabel": gLabel, + "badges": badges, + }) + } + tree = append(tree, map[string]interface{}{ + "dimension": dimKey, + "label": dimKey, + "groups": groupNodes, + }) + } + + return tree, nil } diff --git a/app/plant/api/internal/logic/config/getLevelConfigListLogic.go b/app/plant/api/internal/logic/config/getLevelConfigListLogic.go index bd00053..42fb222 100644 --- a/app/plant/api/internal/logic/config/getLevelConfigListLogic.go +++ b/app/plant/api/internal/logic/config/getLevelConfigListLogic.go @@ -36,7 +36,18 @@ func (l *GetLevelConfigListLogic) GetLevelConfigList(req *types.LevelConfigListR if err != nil { return nil, err } + resList := make([]map[string]interface{}, 0, len(result.List)) + for _, item := range result.List { + resList = append(resList, map[string]interface{}{ + "id": item.Id, + "level": item.Level, + "title": item.Title, + "minSunlight": item.MinSunlight, // Explicitly keep 0 values in JSON + "perks": item.Perks, + }) + } + return map[string]interface{}{ - "list": result.List, + "list": resList, }, nil } diff --git a/app/plant/api/internal/logic/userProfile/getUserProfileLogic.go b/app/plant/api/internal/logic/userProfile/getUserProfileLogic.go index aae1079..ca03047 100644 --- a/app/plant/api/internal/logic/userProfile/getUserProfileLogic.go +++ b/app/plant/api/internal/logic/userProfile/getUserProfileLogic.go @@ -1,15 +1,16 @@ -// Code scaffolded by goctl. Safe to edit. -// goctl 1.10.1 - package userProfile import ( "context" "fmt" + "time" + + filePb "sundynix-micro-go/app/file/rpc/file" + "sundynix-micro-go/app/plant/api/internal/svc" + plantModel "sundynix-micro-go/app/plant/model" + "sundynix-micro-go/app/plant/rpc/plant" "github.com/zeromicro/go-zero/core/logx" - "sundynix-micro-go/app/plant/api/internal/svc" - "sundynix-micro-go/app/plant/rpc/plant" ) type GetUserProfileLogic struct { @@ -33,5 +34,98 @@ func (l *GetUserProfileLogic) GetUserProfile() (interface{}, error) { if err != nil { return nil, err } - return result, nil + + // 1. 获取 Avatar 详情 + var avatarData map[string]interface{} + if result.AvatarId != "" { + avatarData = l.fetchAvatar(result.AvatarId) + } + + // 2. 获取 Level 详情 + var levelData map[string]interface{} + var lvl plantModel.LevelConfig + levelFound := false + + if result.LevelId != "" { + if errLvl := l.svcCtx.DB.Where("id = ?", result.LevelId).First(&lvl).Error; errLvl == nil { + levelFound = true + } + } + + // 如果没有在数据库中找到 level_id,或者 level_id 为空,根据用户 totalSunlight 动态查找最匹配的等级 + if !levelFound { + var matchedLvl plantModel.LevelConfig + // 查找最匹配的等级:total_sunlight >= min_sunlight 中 level 最大的那一个 + errLvl := l.svcCtx.DB.Order("level desc").Where("min_sunlight <= ?", result.TotalSunlight).First(&matchedLvl).Error + if errLvl == nil { + lvl = matchedLvl + levelFound = true + // 自动更新用户资料表的 level_id,保证后续一致性 + l.svcCtx.DB.Model(&plantModel.UserProfile{}).Where("id = ?", result.Id).Update("level_id", matchedLvl.ID) + } else { + // 如果没有等级配置,使用 level = 1 的配置作为默认 + var firstLvl plantModel.LevelConfig + if l.svcCtx.DB.Order("level asc").First(&firstLvl).Error == nil { + lvl = firstLvl + levelFound = true + l.svcCtx.DB.Model(&plantModel.UserProfile{}).Where("id = ?", result.Id).Update("level_id", firstLvl.ID) + } + } + } + + if levelFound { + levelData = map[string]interface{}{ + "id": lvl.ID, + "level": lvl.Level, + "title": lvl.Title, + "minSunlight": lvl.MinSunlight, + "perks": lvl.Perks, + "createdAt": lvl.CreatedAt.Format("2006-01-02 15:04:05"), + } + } + + // 3. 构造兼容新旧版本的复合 JSON 数据 + res := map[string]interface{}{ + "id": result.Id, + "userId": result.UserId, + "nickName": result.NickName, + "nickname": result.NickName, // 兼容旧版 json tag + "avatarId": result.AvatarId, + "levelId": result.LevelId, + "currentSunlight": result.CurrentSunlight, + "totalSunlight": result.TotalSunlight, + "plantCount": result.PlantCount, + "careCount": result.CareCount, + "postCount": result.PostCount, + "waterCount": result.WaterCount, + "fertilizeCount": result.FertilizeCount, + "repotCount": result.RepotCount, + "pruneCount": result.PruneCount, + "photoCount": result.PhotoCount, + "avatar": avatarData, + "level": levelData, + } + + return res, nil +} + +func (l *GetUserProfileLogic) fetchAvatar(avatarId string) map[string]interface{} { + if avatarId == "" { + return nil + } + resp, err := l.svcCtx.FileRpc.GetFilesByIds(l.ctx, &filePb.GetFilesByIdsReq{Ids: []string{avatarId}}) + if err != nil || resp == nil || len(resp.Files) == 0 { + return nil + } + f := resp.Files[0] + return map[string]interface{}{ + "id": f.Id, + "name": f.Name, + "url": f.Url, + "tag": f.Tag, + "key": f.Key, + "suffix": f.Suffix, + "md5": f.Md5, + "createdAt": time.Unix(f.CreatedAt, 0).Format(time.RFC3339), + } } diff --git a/app/plant/model/plant_model.go b/app/plant/model/plant_model.go index 9a64b06..ec00bb4 100644 --- a/app/plant/model/plant_model.go +++ b/app/plant/model/plant_model.go @@ -14,6 +14,9 @@ type UserProfile struct { model.BaseModel UserID string `gorm:"size:50;uniqueIndex;column:user_id" json:"userId"` MiniOpenID string `gorm:"size:80;column:mini_open_id" json:"miniOpenId"` + SessionKey string `gorm:"size:80;column:session_key" json:"sessionKey"` + UnionID string `gorm:"size:80;column:union_id" json:"unionId"` + SaOpenID string `gorm:"size:80;column:sa_open_id" json:"saOpenId"` NickName string `gorm:"size:100;column:nick_name" json:"nickName"` AvatarID string `gorm:"size:50;column:avatar_id" json:"avatarId"` LevelID string `gorm:"size:50;column:level_id" json:"levelId"` @@ -302,6 +305,7 @@ type LevelConfig struct { Title string `gorm:"size:50;column:title" json:"title"` MinSunlight int64 `gorm:"column:min_sunlight" json:"minSunlight"` Perks string `gorm:"size:200;column:perks" json:"perks"` + Preserve string `gorm:"column:preserve" json:"preserve"` } func (LevelConfig) TableName() string { return "sundynix_plant_level_config" } diff --git a/app/plant/rpc/etc/plant.yaml b/app/plant/rpc/etc/plant.yaml index 853eea7..25ceaed 100644 --- a/app/plant/rpc/etc/plant.yaml +++ b/app/plant/rpc/etc/plant.yaml @@ -10,3 +10,9 @@ Etcd: DB: DataSource: root:root@tcp(192.168.100.127:3307)/sundynix_micro_go?charset=utf8mb4&parseTime=True&loc=Local + +SystemRpc: + Etcd: + Hosts: + - 192.168.100.127:2379 + Key: system.rpc diff --git a/app/plant/rpc/internal/config/config.go b/app/plant/rpc/internal/config/config.go index 897b703..51712f3 100755 --- a/app/plant/rpc/internal/config/config.go +++ b/app/plant/rpc/internal/config/config.go @@ -7,4 +7,5 @@ type Config struct { DB struct { DataSource string } + SystemRpc zrpc.RpcClientConf } diff --git a/app/plant/rpc/internal/logic/createbannerlogic.go b/app/plant/rpc/internal/logic/createbannerlogic.go new file mode 100644 index 0000000..7014b9a --- /dev/null +++ b/app/plant/rpc/internal/logic/createbannerlogic.go @@ -0,0 +1,31 @@ +package logic + +import ( + "context" + + "sundynix-micro-go/app/plant/rpc/internal/svc" + "sundynix-micro-go/app/plant/rpc/plant" + + "github.com/zeromicro/go-zero/core/logx" +) + +type CreateBannerLogic struct { + ctx context.Context + svcCtx *svc.ServiceContext + logx.Logger +} + +func NewCreateBannerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateBannerLogic { + return &CreateBannerLogic{ + ctx: ctx, + svcCtx: svcCtx, + Logger: logx.WithContext(ctx), + } +} + +// Banner +func (l *CreateBannerLogic) CreateBanner(in *plant.CreateBannerReq) (*plant.CommonResp, error) { + // todo: add your logic here and delete this line + + return &plant.CommonResp{}, nil +} diff --git a/app/plant/rpc/internal/logic/deletebannerlogic.go b/app/plant/rpc/internal/logic/deletebannerlogic.go new file mode 100644 index 0000000..3466201 --- /dev/null +++ b/app/plant/rpc/internal/logic/deletebannerlogic.go @@ -0,0 +1,30 @@ +package logic + +import ( + "context" + + "sundynix-micro-go/app/plant/rpc/internal/svc" + "sundynix-micro-go/app/plant/rpc/plant" + + "github.com/zeromicro/go-zero/core/logx" +) + +type DeleteBannerLogic struct { + ctx context.Context + svcCtx *svc.ServiceContext + logx.Logger +} + +func NewDeleteBannerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteBannerLogic { + return &DeleteBannerLogic{ + ctx: ctx, + svcCtx: svcCtx, + Logger: logx.WithContext(ctx), + } +} + +func (l *DeleteBannerLogic) DeleteBanner(in *plant.IdsReq) (*plant.CommonResp, error) { + // todo: add your logic here and delete this line + + return &plant.CommonResp{}, nil +} diff --git a/app/plant/rpc/internal/logic/findorcreateuserbyopenidlogic.go b/app/plant/rpc/internal/logic/findorcreateuserbyopenidlogic.go new file mode 100644 index 0000000..dfd1234 --- /dev/null +++ b/app/plant/rpc/internal/logic/findorcreateuserbyopenidlogic.go @@ -0,0 +1,136 @@ +package logic + +import ( + "context" + "errors" + "fmt" + + plantModel "sundynix-micro-go/app/plant/model" + "sundynix-micro-go/app/plant/rpc/internal/svc" + "sundynix-micro-go/app/plant/rpc/plant" + sysPb "sundynix-micro-go/app/system/rpc/system" + + "github.com/zeromicro/go-zero/core/logx" + "gorm.io/gorm" +) + +type FindOrCreateUserByOpenIdLogic struct { + ctx context.Context + svcCtx *svc.ServiceContext + logx.Logger +} + +func NewFindOrCreateUserByOpenIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindOrCreateUserByOpenIdLogic { + return &FindOrCreateUserByOpenIdLogic{ + ctx: ctx, + svcCtx: svcCtx, + Logger: logx.WithContext(ctx), + } +} + +func (l *FindOrCreateUserByOpenIdLogic) FindOrCreateUserByOpenId(in *plant.FindOrCreateUserByOpenIdReq) (*plant.PlantUserProfile, error) { + if in.OpenId == "" { + return nil, fmt.Errorf("openid 不能为空") + } + + // 1. 根据 mini_open_id 查询植物用户扩展表 + var profile plantModel.UserProfile + err := l.svcCtx.DB.Where("mini_open_id = ?", in.OpenId).First(&profile).Error + + if err == nil { + // 1.1 用户已存在:如果 session_key 发生变化则进行更新 + if in.SessionKey != "" && (in.SessionKey != profile.SessionKey || in.UnionId != profile.UnionID || in.SaOpenId != profile.SaOpenID) { + l.svcCtx.DB.Model(&profile).Updates(map[string]interface{}{ + "session_key": in.SessionKey, + "union_id": in.UnionId, + "sa_open_id": in.SaOpenId, + }) + } + return profileToProto(&profile), nil + } + + // 2. 用户不存在:分步创建(先 System RPC 创建基础用户,再本地创建扩展用户) + if !errors.Is(err, gorm.ErrRecordNotFound) { + l.Errorf("[FindOrCreateUserByOpenId] 查询扩展表失败: openid=%s, err=%v", in.OpenId, err) + return nil, fmt.Errorf("系统繁忙,请稍后再试") + } + + // 2.1 调用 System RPC 创建基础用户(遵守服务边界,不直接写 system 表) + createResp, err := l.svcCtx.SystemRpc.CreateUser(l.ctx, &sysPb.CreateUserReq{ + ClientId: in.ClientId, + NickName: "园艺新手", + }) + if err != nil { + l.Errorf("[FindOrCreateUserByOpenId] 调用 System RPC 创建基础用户失败: err=%v", err) + return nil, fmt.Errorf("注册用户失败") + } + userId := createResp.User.Id + l.Infof("[FindOrCreateUserByOpenId] ✅ System 基础用户创建成功: userId=%s", userId) + + // 2.2 自动匹配初始等级 ID (获取首个等级,一般是 Level 1) + var firstLevel plantModel.LevelConfig + levelErr := l.svcCtx.DB.Order("level asc").First(&firstLevel).Error + levelID := "" + if levelErr == nil { + levelID = firstLevel.ID + } + + // 2.3 本地事务创建应用专属扩展表 + profile = plantModel.UserProfile{ + UserID: userId, + MiniOpenID: in.OpenId, + SessionKey: in.SessionKey, + UnionID: in.UnionId, + SaOpenID: in.SaOpenId, + NickName: "园艺新手", + LevelID: levelID, + CurrentSunlight: 0, + TotalSunlight: 0, + } + + if err = l.svcCtx.DB.Create(&profile).Error; err != nil { + l.Errorf("[FindOrCreateUserByOpenId] 创建用户扩展表失败: err=%v", err) + + // 2.4 补偿回滚:删除已创建的 System 基础用户,避免孤儿记录 + _, delErr := l.svcCtx.SystemRpc.DeleteUser(l.ctx, &sysPb.DeleteUserReq{ + Ids: []string{userId}, + }) + if delErr != nil { + l.Errorf("[FindOrCreateUserByOpenId] ⚠️ 补偿删除基础用户失败: userId=%s, err=%v", userId, delErr) + // 即使补偿失败也返回原始错误,孤儿记录可通过后台定期清理 + } else { + l.Infof("[FindOrCreateUserByOpenId] 补偿删除基础用户成功: userId=%s", userId) + } + + return nil, fmt.Errorf("注册应用扩展失败") + } + + l.Infof("[FindOrCreateUserByOpenId] ✅ 成功创建游客账户: userId=%s, openid=%s", userId, in.OpenId) + + return profileToProto(&profile), nil +} + +// profileToProto 将 model 转为 proto 响应 +func profileToProto(p *plantModel.UserProfile) *plant.PlantUserProfile { + return &plant.PlantUserProfile{ + Id: p.ID, + UserId: p.UserID, + NickName: p.NickName, + AvatarId: p.AvatarID, + LevelId: p.LevelID, + CurrentSunlight: p.CurrentSunlight, + TotalSunlight: p.TotalSunlight, + PlantCount: p.PlantCount, + CareCount: p.CareCount, + PostCount: p.PostCount, + WaterCount: p.WaterCount, + FertilizeCount: p.FertilizeCount, + RepotCount: p.RepotCount, + PruneCount: p.PruneCount, + PhotoCount: p.PhotoCount, + MiniOpenId: p.MiniOpenID, + SessionKey: p.SessionKey, + UnionId: p.UnionID, + SaOpenId: p.SaOpenID, + } +} diff --git a/app/plant/rpc/internal/logic/getactivebannerlistlogic.go b/app/plant/rpc/internal/logic/getactivebannerlistlogic.go new file mode 100644 index 0000000..33b8eef --- /dev/null +++ b/app/plant/rpc/internal/logic/getactivebannerlistlogic.go @@ -0,0 +1,30 @@ +package logic + +import ( + "context" + + "sundynix-micro-go/app/plant/rpc/internal/svc" + "sundynix-micro-go/app/plant/rpc/plant" + + "github.com/zeromicro/go-zero/core/logx" +) + +type GetActiveBannerListLogic struct { + ctx context.Context + svcCtx *svc.ServiceContext + logx.Logger +} + +func NewGetActiveBannerListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetActiveBannerListLogic { + return &GetActiveBannerListLogic{ + ctx: ctx, + svcCtx: svcCtx, + Logger: logx.WithContext(ctx), + } +} + +func (l *GetActiveBannerListLogic) GetActiveBannerList(in *plant.PageReq) (*plant.BannerListResp, error) { + // todo: add your logic here and delete this line + + return &plant.BannerListResp{}, nil +} diff --git a/app/plant/rpc/internal/logic/getbannerlistlogic.go b/app/plant/rpc/internal/logic/getbannerlistlogic.go new file mode 100644 index 0000000..4716cfe --- /dev/null +++ b/app/plant/rpc/internal/logic/getbannerlistlogic.go @@ -0,0 +1,30 @@ +package logic + +import ( + "context" + + "sundynix-micro-go/app/plant/rpc/internal/svc" + "sundynix-micro-go/app/plant/rpc/plant" + + "github.com/zeromicro/go-zero/core/logx" +) + +type GetBannerListLogic struct { + ctx context.Context + svcCtx *svc.ServiceContext + logx.Logger +} + +func NewGetBannerListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetBannerListLogic { + return &GetBannerListLogic{ + ctx: ctx, + svcCtx: svcCtx, + Logger: logx.WithContext(ctx), + } +} + +func (l *GetBannerListLogic) GetBannerList(in *plant.BannerListReq) (*plant.BannerListResp, error) { + // todo: add your logic here and delete this line + + return &plant.BannerListResp{}, nil +} diff --git a/app/plant/rpc/internal/logic/quickcarelogic.go b/app/plant/rpc/internal/logic/quickcarelogic.go new file mode 100644 index 0000000..ad5ba79 --- /dev/null +++ b/app/plant/rpc/internal/logic/quickcarelogic.go @@ -0,0 +1,31 @@ +package logic + +import ( + "context" + + "sundynix-micro-go/app/plant/rpc/internal/svc" + "sundynix-micro-go/app/plant/rpc/plant" + + "github.com/zeromicro/go-zero/core/logx" +) + +type QuickCareLogic struct { + ctx context.Context + svcCtx *svc.ServiceContext + logx.Logger +} + +func NewQuickCareLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QuickCareLogic { + return &QuickCareLogic{ + ctx: ctx, + svcCtx: svcCtx, + Logger: logx.WithContext(ctx), + } +} + +// 快捷养护 +func (l *QuickCareLogic) QuickCare(in *plant.QuickCareReq) (*plant.CommonResp, error) { + // todo: add your logic here and delete this line + + return &plant.CommonResp{}, nil +} diff --git a/app/plant/rpc/internal/logic/updatebannerlogic.go b/app/plant/rpc/internal/logic/updatebannerlogic.go new file mode 100644 index 0000000..c65142b --- /dev/null +++ b/app/plant/rpc/internal/logic/updatebannerlogic.go @@ -0,0 +1,30 @@ +package logic + +import ( + "context" + + "sundynix-micro-go/app/plant/rpc/internal/svc" + "sundynix-micro-go/app/plant/rpc/plant" + + "github.com/zeromicro/go-zero/core/logx" +) + +type UpdateBannerLogic struct { + ctx context.Context + svcCtx *svc.ServiceContext + logx.Logger +} + +func NewUpdateBannerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateBannerLogic { + return &UpdateBannerLogic{ + ctx: ctx, + svcCtx: svcCtx, + Logger: logx.WithContext(ctx), + } +} + +func (l *UpdateBannerLogic) UpdateBanner(in *plant.UpdateBannerReq) (*plant.CommonResp, error) { + // todo: add your logic here and delete this line + + return &plant.CommonResp{}, nil +} diff --git a/app/plant/rpc/internal/server/plantServiceServer.go b/app/plant/rpc/internal/server/plantServiceServer.go index 9dfc531..536a3de 100644 --- a/app/plant/rpc/internal/server/plantServiceServer.go +++ b/app/plant/rpc/internal/server/plantServiceServer.go @@ -18,244 +18,399 @@ type PlantServiceServer struct { } func NewPlantServiceServer(svcCtx *svc.ServiceContext) *PlantServiceServer { - return &PlantServiceServer{svcCtx: svcCtx} + return &PlantServiceServer{ + svcCtx: svcCtx, + } } -// ---- 用户Profile ---- +// 用户Profile func (s *PlantServiceServer) GetUserProfile(ctx context.Context, in *plant.GetProfileReq) (*plant.PlantUserProfile, error) { - return logic.NewGetUserProfileLogic(ctx, s.svcCtx).GetUserProfile(in) + l := logic.NewGetUserProfileLogic(ctx, s.svcCtx) + return l.GetUserProfile(in) } + +func (s *PlantServiceServer) FindOrCreateUserByOpenId(ctx context.Context, in *plant.FindOrCreateUserByOpenIdReq) (*plant.PlantUserProfile, error) { + l := logic.NewFindOrCreateUserByOpenIdLogic(ctx, s.svcCtx) + return l.FindOrCreateUserByOpenId(in) +} + func (s *PlantServiceServer) UpdateUserProfile(ctx context.Context, in *plant.UpdateProfileReq) (*plant.CommonResp, error) { - return logic.NewUpdateUserProfileLogic(ctx, s.svcCtx).UpdateUserProfile(in) + l := logic.NewUpdateUserProfileLogic(ctx, s.svcCtx) + return l.UpdateUserProfile(in) } + func (s *PlantServiceServer) GetMyBadges(ctx context.Context, in *plant.GetProfileReq) (*plant.UserBadgeListResp, error) { - return logic.NewGetMyBadgesLogic(ctx, s.svcCtx).GetMyBadges(in) + l := logic.NewGetMyBadgesLogic(ctx, s.svcCtx) + return l.GetMyBadges(in) } + func (s *PlantServiceServer) GetMyStars(ctx context.Context, in *plant.GetProfileReq) (*plant.UserStarListResp, error) { - return logic.NewGetMyStarsLogic(ctx, s.svcCtx).GetMyStars(in) + l := logic.NewGetMyStarsLogic(ctx, s.svcCtx) + return l.GetMyStars(in) } -// ---- 我的植物 ---- +// 我的植物 func (s *PlantServiceServer) CreatePlant(ctx context.Context, in *plant.CreatePlantReq) (*plant.CommonResp, error) { - return logic.NewCreatePlantLogic(ctx, s.svcCtx).CreatePlant(in) + l := logic.NewCreatePlantLogic(ctx, s.svcCtx) + return l.CreatePlant(in) } + func (s *PlantServiceServer) UpdatePlant(ctx context.Context, in *plant.UpdatePlantReq) (*plant.CommonResp, error) { - return logic.NewUpdatePlantLogic(ctx, s.svcCtx).UpdatePlant(in) + l := logic.NewUpdatePlantLogic(ctx, s.svcCtx) + return l.UpdatePlant(in) } + func (s *PlantServiceServer) DeletePlant(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeletePlantLogic(ctx, s.svcCtx).DeletePlant(in) + l := logic.NewDeletePlantLogic(ctx, s.svcCtx) + return l.DeletePlant(in) } + func (s *PlantServiceServer) GetPlantList(ctx context.Context, in *plant.PlantListReq) (*plant.PlantListResp, error) { - return logic.NewGetPlantListLogic(ctx, s.svcCtx).GetPlantList(in) + l := logic.NewGetPlantListLogic(ctx, s.svcCtx) + return l.GetPlantList(in) } + func (s *PlantServiceServer) GetPlantDetail(ctx context.Context, in *plant.IdReq) (*plant.PlantDetailResp, error) { - return logic.NewGetPlantDetailLogic(ctx, s.svcCtx).GetPlantDetail(in) + l := logic.NewGetPlantDetailLogic(ctx, s.svcCtx) + return l.GetPlantDetail(in) } -// ---- 养护 ---- +// 养护 func (s *PlantServiceServer) AddCarePlan(ctx context.Context, in *plant.AddCarePlanReq) (*plant.CommonResp, error) { - return logic.NewAddCarePlanLogic(ctx, s.svcCtx).AddCarePlan(in) + l := logic.NewAddCarePlanLogic(ctx, s.svcCtx) + return l.AddCarePlan(in) } + func (s *PlantServiceServer) DeleteCarePlan(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeleteCarePlanLogic(ctx, s.svcCtx).DeleteCarePlan(in) + l := logic.NewDeleteCarePlanLogic(ctx, s.svcCtx) + return l.DeleteCarePlan(in) } + func (s *PlantServiceServer) GetTodayTaskList(ctx context.Context, in *plant.GetProfileReq) (*plant.CareTaskListResp, error) { - return logic.NewGetTodayTaskListLogic(ctx, s.svcCtx).GetTodayTaskList(in) -} -func (s *PlantServiceServer) AddCareRecord(ctx context.Context, in *plant.AddCareRecordReq) (*plant.CommonResp, error) { - return logic.NewAddCareRecordLogic(ctx, s.svcCtx).AddCareRecord(in) -} -func (s *PlantServiceServer) AddGrowthRecord(ctx context.Context, in *plant.AddGrowthRecordReq) (*plant.CommonResp, error) { - return logic.NewAddGrowthRecordLogic(ctx, s.svcCtx).AddGrowthRecord(in) + l := logic.NewGetTodayTaskListLogic(ctx, s.svcCtx) + return l.GetTodayTaskList(in) } -// ---- 百科 ---- -func (s *PlantServiceServer) GetWikiList(ctx context.Context, in *plant.WikiListReq) (*plant.WikiListResp, error) { - return logic.NewGetWikiListLogic(ctx, s.svcCtx).GetWikiList(in) -} -func (s *PlantServiceServer) GetWikiDetail(ctx context.Context, in *plant.IdReq) (*plant.WikiDetailResp, error) { - return logic.NewGetWikiDetailLogic(ctx, s.svcCtx).GetWikiDetail(in) -} -func (s *PlantServiceServer) CreateWiki(ctx context.Context, in *plant.CreateWikiReq) (*plant.CommonResp, error) { - return logic.NewCreateWikiLogic(ctx, s.svcCtx).CreateWiki(in) -} -func (s *PlantServiceServer) UpdateWiki(ctx context.Context, in *plant.UpdateWikiReq) (*plant.CommonResp, error) { - return logic.NewUpdateWikiLogic(ctx, s.svcCtx).UpdateWiki(in) -} -func (s *PlantServiceServer) DeleteWiki(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeleteWikiLogic(ctx, s.svcCtx).DeleteWiki(in) -} -func (s *PlantServiceServer) SyncWikiVector(ctx context.Context, in *plant.SyncWikiVectorReq) (*plant.CommonResp, error) { - return logic.NewSyncWikiVectorLogic(ctx, s.svcCtx).SyncWikiVector(in) -} -func (s *PlantServiceServer) DeleteWikiVector(ctx context.Context, in *plant.SyncWikiVectorReq) (*plant.CommonResp, error) { - return logic.NewDeleteWikiVectorLogic(ctx, s.svcCtx).DeleteWikiVector(in) -} -func (s *PlantServiceServer) SyncAllWikiVector(ctx context.Context, in *plant.PageReq) (*plant.CommonResp, error) { - return logic.NewSyncAllWikiVectorLogic(ctx, s.svcCtx).SyncAllWikiVector(in) -} -func (s *PlantServiceServer) GetWikiClassList(ctx context.Context, in *plant.IdReq) (*plant.WikiClassListResp, error) { - return logic.NewGetWikiClassListLogic(ctx, s.svcCtx).GetWikiClassList(in) -} -func (s *PlantServiceServer) CreateWikiClass(ctx context.Context, in *plant.CreateWikiClassReq) (*plant.CommonResp, error) { - return logic.NewCreateWikiClassLogic(ctx, s.svcCtx).CreateWikiClass(in) -} -func (s *PlantServiceServer) UpdateWikiClass(ctx context.Context, in *plant.UpdateWikiClassReq) (*plant.CommonResp, error) { - return logic.NewUpdateWikiClassLogic(ctx, s.svcCtx).UpdateWikiClass(in) -} -func (s *PlantServiceServer) DeleteWikiClass(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeleteWikiClassLogic(ctx, s.svcCtx).DeleteWikiClass(in) -} -func (s *PlantServiceServer) ToggleWikiStar(ctx context.Context, in *plant.ToggleStarReq) (*plant.CommonResp, error) { - return logic.NewToggleWikiStarLogic(ctx, s.svcCtx).ToggleWikiStar(in) -} - -// ---- OCR ---- -func (s *PlantServiceServer) GetMyClassifyLog(ctx context.Context, in *plant.GetProfileReq) (*plant.ClassifyLogListResp, error) { - return logic.NewGetMyClassifyLogLogic(ctx, s.svcCtx).GetMyClassifyLog(in) -} -func (s *PlantServiceServer) DeleteClassifyLog(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeleteClassifyLogLogic(ctx, s.svcCtx).DeleteClassifyLog(in) -} - -// ---- 社区 ---- -func (s *PlantServiceServer) CreatePost(ctx context.Context, in *plant.CreatePostReq) (*plant.CommonResp, error) { - return logic.NewCreatePostLogic(ctx, s.svcCtx).CreatePost(in) -} -func (s *PlantServiceServer) DeletePost(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeletePostLogic(ctx, s.svcCtx).DeletePost(in) -} -func (s *PlantServiceServer) GetPostList(ctx context.Context, in *plant.PostListReq) (*plant.PostListResp, error) { - return logic.NewGetPostListLogic(ctx, s.svcCtx).GetPostList(in) -} -func (s *PlantServiceServer) GetPostDetail(ctx context.Context, in *plant.IdReq) (*plant.PostDetailResp, error) { - return logic.NewGetPostDetailLogic(ctx, s.svcCtx).GetPostDetail(in) -} -func (s *PlantServiceServer) CommentPost(ctx context.Context, in *plant.CommentPostReq) (*plant.CommonResp, error) { - return logic.NewCommentPostLogic(ctx, s.svcCtx).CommentPost(in) -} -func (s *PlantServiceServer) LikePost(ctx context.Context, in *plant.LikePostReq) (*plant.CommonResp, error) { - return logic.NewLikePostLogic(ctx, s.svcCtx).LikePost(in) -} -func (s *PlantServiceServer) StarPost(ctx context.Context, in *plant.LikePostReq) (*plant.CommonResp, error) { - return logic.NewStarPostLogic(ctx, s.svcCtx).StarPost(in) -} -func (s *PlantServiceServer) MediaCheckCallback(ctx context.Context, in *plant.MediaCheckCallbackReq) (*plant.CommonResp, error) { - return logic.NewMediaCheckCallbackLogic(ctx, s.svcCtx).MediaCheckCallback(in) -} - -// ---- 话题 ---- -func (s *PlantServiceServer) GetTopicList(ctx context.Context, in *plant.IdReq) (*plant.TopicListResp, error) { - return logic.NewGetTopicListLogic(ctx, s.svcCtx).GetTopicList(in) -} -func (s *PlantServiceServer) GetTopicDetail(ctx context.Context, in *plant.IdReq) (*plant.TopicInfo, error) { - return logic.NewGetTopicDetailLogic(ctx, s.svcCtx).GetTopicDetail(in) -} -func (s *PlantServiceServer) CreateTopic(ctx context.Context, in *plant.CreateTopicReq) (*plant.CommonResp, error) { - return logic.NewCreateTopicLogic(ctx, s.svcCtx).CreateTopic(in) -} -func (s *PlantServiceServer) UpdateTopic(ctx context.Context, in *plant.UpdateTopicReq) (*plant.CommonResp, error) { - return logic.NewUpdateTopicLogic(ctx, s.svcCtx).UpdateTopic(in) -} -func (s *PlantServiceServer) DeleteTopic(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeleteTopicLogic(ctx, s.svcCtx).DeleteTopic(in) -} - -// ---- 兑换 ---- -func (s *PlantServiceServer) GetExchangeItemList(ctx context.Context, in *plant.ExchangeItemListReq) (*plant.ExchangeItemListResp, error) { - return logic.NewGetExchangeItemListLogic(ctx, s.svcCtx).GetExchangeItemList(in) -} -func (s *PlantServiceServer) CreateExchangeItem(ctx context.Context, in *plant.CreateExchangeItemReq) (*plant.CommonResp, error) { - return logic.NewCreateExchangeItemLogic(ctx, s.svcCtx).CreateExchangeItem(in) -} -func (s *PlantServiceServer) UpdateExchangeItem(ctx context.Context, in *plant.UpdateExchangeItemReq) (*plant.CommonResp, error) { - return logic.NewUpdateExchangeItemLogic(ctx, s.svcCtx).UpdateExchangeItem(in) -} -func (s *PlantServiceServer) DeleteExchangeItem(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeleteExchangeItemLogic(ctx, s.svcCtx).DeleteExchangeItem(in) -} -func (s *PlantServiceServer) CreateExchangeOrder(ctx context.Context, in *plant.CreateExchangeOrderReq) (*plant.CommonResp, error) { - return logic.NewCreateExchangeOrderLogic(ctx, s.svcCtx).CreateExchangeOrder(in) -} -func (s *PlantServiceServer) GetMyExchangeOrders(ctx context.Context, in *plant.ExchangeOrderListReq) (*plant.ExchangeOrderListResp, error) { - return logic.NewGetMyExchangeOrdersLogic(ctx, s.svcCtx).GetMyExchangeOrders(in) -} -func (s *PlantServiceServer) GetExchangeOrderList(ctx context.Context, in *plant.ExchangeOrderListReq) (*plant.ExchangeOrderListResp, error) { - return logic.NewGetExchangeOrderListLogic(ctx, s.svcCtx).GetExchangeOrderList(in) -} -func (s *PlantServiceServer) UpdateExchangeOrder(ctx context.Context, in *plant.UpdateExchangeOrderReq) (*plant.CommonResp, error) { - return logic.NewUpdateExchangeOrderLogic(ctx, s.svcCtx).UpdateExchangeOrder(in) -} - -// ---- 配置 ---- -func (s *PlantServiceServer) GetLevelConfigList(ctx context.Context, in *plant.PageReq) (*plant.LevelConfigListResp, error) { - return logic.NewGetLevelConfigListLogic(ctx, s.svcCtx).GetLevelConfigList(in) -} -func (s *PlantServiceServer) CreateLevelConfig(ctx context.Context, in *plant.CreateLevelConfigReq) (*plant.CommonResp, error) { - return logic.NewCreateLevelConfigLogic(ctx, s.svcCtx).CreateLevelConfig(in) -} -func (s *PlantServiceServer) UpdateLevelConfig(ctx context.Context, in *plant.UpdateLevelConfigReq) (*plant.CommonResp, error) { - return logic.NewUpdateLevelConfigLogic(ctx, s.svcCtx).UpdateLevelConfig(in) -} -func (s *PlantServiceServer) DeleteLevelConfig(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeleteLevelConfigLogic(ctx, s.svcCtx).DeleteLevelConfig(in) -} -func (s *PlantServiceServer) GetBadgeConfigList(ctx context.Context, in *plant.BadgeConfigListReq) (*plant.BadgeConfigListResp, error) { - return logic.NewGetBadgeConfigListLogic(ctx, s.svcCtx).GetBadgeConfigList(in) -} -func (s *PlantServiceServer) GetBadgeConfigDetail(ctx context.Context, in *plant.IdReq) (*plant.BadgeConfigInfo, error) { - return logic.NewGetBadgeConfigDetailLogic(ctx, s.svcCtx).GetBadgeConfigDetail(in) -} -func (s *PlantServiceServer) CreateBadgeConfig(ctx context.Context, in *plant.CreateBadgeConfigReq) (*plant.CommonResp, error) { - return logic.NewCreateBadgeConfigLogic(ctx, s.svcCtx).CreateBadgeConfig(in) -} -func (s *PlantServiceServer) UpdateBadgeConfig(ctx context.Context, in *plant.UpdateBadgeConfigReq) (*plant.CommonResp, error) { - return logic.NewUpdateBadgeConfigLogic(ctx, s.svcCtx).UpdateBadgeConfig(in) -} -func (s *PlantServiceServer) DeleteBadgeConfig(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeleteBadgeConfigLogic(ctx, s.svcCtx).DeleteBadgeConfig(in) -} - -// ---- AI ---- -func (s *PlantServiceServer) DeleteAiChatHistory(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { - return logic.NewDeleteAiChatHistoryLogic(ctx, s.svcCtx).DeleteAiChatHistory(in) -} -func (s *PlantServiceServer) SaveAiChatHistory(ctx context.Context, in *plant.SaveAiChatHistoryReq) (*plant.CommonResp, error) { - return logic.NewSaveAiChatHistoryLogic(ctx, s.svcCtx).SaveAiChatHistory(in) -} -func (s *PlantServiceServer) ClearAiChatHistory(ctx context.Context, in *plant.GetProfileReq) (*plant.CommonResp, error) { - return logic.NewClearAiChatHistoryLogic(ctx, s.svcCtx).ClearAiChatHistory(in) -} -func (s *PlantServiceServer) GetAiChatQuota(ctx context.Context, in *plant.GetProfileReq) (*plant.AiQuotaResp, error) { - return logic.NewGetAiChatQuotaLogic(ctx, s.svcCtx).GetAiChatQuota(in) -} - -// ---- 完成任务 ---- func (s *PlantServiceServer) CompleteTask(ctx context.Context, in *plant.CompleteTaskReq) (*plant.TaskCompletionResult, error) { - return logic.NewCompleteTaskLogic(ctx, s.svcCtx).CompleteTask(in) + l := logic.NewCompleteTaskLogic(ctx, s.svcCtx) + return l.CompleteTask(in) +} + +func (s *PlantServiceServer) AddCareRecord(ctx context.Context, in *plant.AddCareRecordReq) (*plant.CommonResp, error) { + l := logic.NewAddCareRecordLogic(ctx, s.svcCtx) + return l.AddCareRecord(in) +} + +func (s *PlantServiceServer) AddGrowthRecord(ctx context.Context, in *plant.AddGrowthRecordReq) (*plant.CommonResp, error) { + l := logic.NewAddGrowthRecordLogic(ctx, s.svcCtx) + return l.AddGrowthRecord(in) +} + +// 百科 +func (s *PlantServiceServer) GetWikiList(ctx context.Context, in *plant.WikiListReq) (*plant.WikiListResp, error) { + l := logic.NewGetWikiListLogic(ctx, s.svcCtx) + return l.GetWikiList(in) +} + +func (s *PlantServiceServer) GetWikiDetail(ctx context.Context, in *plant.IdReq) (*plant.WikiDetailResp, error) { + l := logic.NewGetWikiDetailLogic(ctx, s.svcCtx) + return l.GetWikiDetail(in) +} + +func (s *PlantServiceServer) CreateWiki(ctx context.Context, in *plant.CreateWikiReq) (*plant.CommonResp, error) { + l := logic.NewCreateWikiLogic(ctx, s.svcCtx) + return l.CreateWiki(in) +} + +func (s *PlantServiceServer) UpdateWiki(ctx context.Context, in *plant.UpdateWikiReq) (*plant.CommonResp, error) { + l := logic.NewUpdateWikiLogic(ctx, s.svcCtx) + return l.UpdateWiki(in) +} + +func (s *PlantServiceServer) DeleteWiki(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeleteWikiLogic(ctx, s.svcCtx) + return l.DeleteWiki(in) +} + +func (s *PlantServiceServer) SyncWikiVector(ctx context.Context, in *plant.SyncWikiVectorReq) (*plant.CommonResp, error) { + l := logic.NewSyncWikiVectorLogic(ctx, s.svcCtx) + return l.SyncWikiVector(in) +} + +func (s *PlantServiceServer) DeleteWikiVector(ctx context.Context, in *plant.SyncWikiVectorReq) (*plant.CommonResp, error) { + l := logic.NewDeleteWikiVectorLogic(ctx, s.svcCtx) + return l.DeleteWikiVector(in) +} + +func (s *PlantServiceServer) SyncAllWikiVector(ctx context.Context, in *plant.PageReq) (*plant.CommonResp, error) { + l := logic.NewSyncAllWikiVectorLogic(ctx, s.svcCtx) + return l.SyncAllWikiVector(in) +} + +func (s *PlantServiceServer) GetWikiClassList(ctx context.Context, in *plant.IdReq) (*plant.WikiClassListResp, error) { + l := logic.NewGetWikiClassListLogic(ctx, s.svcCtx) + return l.GetWikiClassList(in) +} + +func (s *PlantServiceServer) CreateWikiClass(ctx context.Context, in *plant.CreateWikiClassReq) (*plant.CommonResp, error) { + l := logic.NewCreateWikiClassLogic(ctx, s.svcCtx) + return l.CreateWikiClass(in) +} + +func (s *PlantServiceServer) UpdateWikiClass(ctx context.Context, in *plant.UpdateWikiClassReq) (*plant.CommonResp, error) { + l := logic.NewUpdateWikiClassLogic(ctx, s.svcCtx) + return l.UpdateWikiClass(in) +} + +func (s *PlantServiceServer) DeleteWikiClass(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeleteWikiClassLogic(ctx, s.svcCtx) + return l.DeleteWikiClass(in) +} + +func (s *PlantServiceServer) ToggleWikiStar(ctx context.Context, in *plant.ToggleStarReq) (*plant.CommonResp, error) { + l := logic.NewToggleWikiStarLogic(ctx, s.svcCtx) + return l.ToggleWikiStar(in) +} + +// OCR +func (s *PlantServiceServer) GetMyClassifyLog(ctx context.Context, in *plant.GetProfileReq) (*plant.ClassifyLogListResp, error) { + l := logic.NewGetMyClassifyLogLogic(ctx, s.svcCtx) + return l.GetMyClassifyLog(in) +} + +func (s *PlantServiceServer) DeleteClassifyLog(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeleteClassifyLogLogic(ctx, s.svcCtx) + return l.DeleteClassifyLog(in) +} + +// 社区 +func (s *PlantServiceServer) CreatePost(ctx context.Context, in *plant.CreatePostReq) (*plant.CommonResp, error) { + l := logic.NewCreatePostLogic(ctx, s.svcCtx) + return l.CreatePost(in) +} + +func (s *PlantServiceServer) DeletePost(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeletePostLogic(ctx, s.svcCtx) + return l.DeletePost(in) +} + +func (s *PlantServiceServer) GetPostList(ctx context.Context, in *plant.PostListReq) (*plant.PostListResp, error) { + l := logic.NewGetPostListLogic(ctx, s.svcCtx) + return l.GetPostList(in) +} + +func (s *PlantServiceServer) GetPostDetail(ctx context.Context, in *plant.IdReq) (*plant.PostDetailResp, error) { + l := logic.NewGetPostDetailLogic(ctx, s.svcCtx) + return l.GetPostDetail(in) +} + +func (s *PlantServiceServer) CommentPost(ctx context.Context, in *plant.CommentPostReq) (*plant.CommonResp, error) { + l := logic.NewCommentPostLogic(ctx, s.svcCtx) + return l.CommentPost(in) +} + +func (s *PlantServiceServer) LikePost(ctx context.Context, in *plant.LikePostReq) (*plant.CommonResp, error) { + l := logic.NewLikePostLogic(ctx, s.svcCtx) + return l.LikePost(in) +} + +func (s *PlantServiceServer) StarPost(ctx context.Context, in *plant.LikePostReq) (*plant.CommonResp, error) { + l := logic.NewStarPostLogic(ctx, s.svcCtx) + return l.StarPost(in) +} + +func (s *PlantServiceServer) MediaCheckCallback(ctx context.Context, in *plant.MediaCheckCallbackReq) (*plant.CommonResp, error) { + l := logic.NewMediaCheckCallbackLogic(ctx, s.svcCtx) + return l.MediaCheckCallback(in) +} + +// 话题 +func (s *PlantServiceServer) GetTopicList(ctx context.Context, in *plant.IdReq) (*plant.TopicListResp, error) { + l := logic.NewGetTopicListLogic(ctx, s.svcCtx) + return l.GetTopicList(in) +} + +func (s *PlantServiceServer) GetTopicDetail(ctx context.Context, in *plant.IdReq) (*plant.TopicInfo, error) { + l := logic.NewGetTopicDetailLogic(ctx, s.svcCtx) + return l.GetTopicDetail(in) +} + +func (s *PlantServiceServer) CreateTopic(ctx context.Context, in *plant.CreateTopicReq) (*plant.CommonResp, error) { + l := logic.NewCreateTopicLogic(ctx, s.svcCtx) + return l.CreateTopic(in) +} + +func (s *PlantServiceServer) UpdateTopic(ctx context.Context, in *plant.UpdateTopicReq) (*plant.CommonResp, error) { + l := logic.NewUpdateTopicLogic(ctx, s.svcCtx) + return l.UpdateTopic(in) +} + +func (s *PlantServiceServer) DeleteTopic(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeleteTopicLogic(ctx, s.svcCtx) + return l.DeleteTopic(in) +} + +// 兑换 +func (s *PlantServiceServer) GetExchangeItemList(ctx context.Context, in *plant.ExchangeItemListReq) (*plant.ExchangeItemListResp, error) { + l := logic.NewGetExchangeItemListLogic(ctx, s.svcCtx) + return l.GetExchangeItemList(in) } -// ---- 兑换详情 ---- func (s *PlantServiceServer) GetExchangeItemDetail(ctx context.Context, in *plant.IdReq) (*plant.ExchangeItemInfo, error) { - return logic.NewGetExchangeItemDetailLogic(ctx, s.svcCtx).GetExchangeItemDetail(in) + l := logic.NewGetExchangeItemDetailLogic(ctx, s.svcCtx) + return l.GetExchangeItemDetail(in) } -// ---- 百科分类详情 ---- -func (s *PlantServiceServer) GetWikiClassDetail(ctx context.Context, in *plant.IdReq) (*plant.WikiClassInfo, error) { - return logic.NewGetWikiClassDetailLogic(ctx, s.svcCtx).GetWikiClassDetail(in) +func (s *PlantServiceServer) CreateExchangeItem(ctx context.Context, in *plant.CreateExchangeItemReq) (*plant.CommonResp, error) { + l := logic.NewCreateExchangeItemLogic(ctx, s.svcCtx) + return l.CreateExchangeItem(in) +} + +func (s *PlantServiceServer) UpdateExchangeItem(ctx context.Context, in *plant.UpdateExchangeItemReq) (*plant.CommonResp, error) { + l := logic.NewUpdateExchangeItemLogic(ctx, s.svcCtx) + return l.UpdateExchangeItem(in) +} + +func (s *PlantServiceServer) DeleteExchangeItem(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeleteExchangeItemLogic(ctx, s.svcCtx) + return l.DeleteExchangeItem(in) +} + +func (s *PlantServiceServer) CreateExchangeOrder(ctx context.Context, in *plant.CreateExchangeOrderReq) (*plant.CommonResp, error) { + l := logic.NewCreateExchangeOrderLogic(ctx, s.svcCtx) + return l.CreateExchangeOrder(in) +} + +func (s *PlantServiceServer) GetMyExchangeOrders(ctx context.Context, in *plant.ExchangeOrderListReq) (*plant.ExchangeOrderListResp, error) { + l := logic.NewGetMyExchangeOrdersLogic(ctx, s.svcCtx) + return l.GetMyExchangeOrders(in) +} + +func (s *PlantServiceServer) GetExchangeOrderList(ctx context.Context, in *plant.ExchangeOrderListReq) (*plant.ExchangeOrderListResp, error) { + l := logic.NewGetExchangeOrderListLogic(ctx, s.svcCtx) + return l.GetExchangeOrderList(in) +} + +func (s *PlantServiceServer) UpdateExchangeOrder(ctx context.Context, in *plant.UpdateExchangeOrderReq) (*plant.CommonResp, error) { + l := logic.NewUpdateExchangeOrderLogic(ctx, s.svcCtx) + return l.UpdateExchangeOrder(in) +} + +// 配置 +func (s *PlantServiceServer) GetLevelConfigList(ctx context.Context, in *plant.PageReq) (*plant.LevelConfigListResp, error) { + l := logic.NewGetLevelConfigListLogic(ctx, s.svcCtx) + return l.GetLevelConfigList(in) } -// ---- 等级配置详情 ---- func (s *PlantServiceServer) GetLevelConfigDetail(ctx context.Context, in *plant.IdReq) (*plant.LevelConfigInfo, error) { - return logic.NewGetLevelConfigDetailLogic(ctx, s.svcCtx).GetLevelConfigDetail(in) + l := logic.NewGetLevelConfigDetailLogic(ctx, s.svcCtx) + return l.GetLevelConfigDetail(in) +} + +func (s *PlantServiceServer) CreateLevelConfig(ctx context.Context, in *plant.CreateLevelConfigReq) (*plant.CommonResp, error) { + l := logic.NewCreateLevelConfigLogic(ctx, s.svcCtx) + return l.CreateLevelConfig(in) +} + +func (s *PlantServiceServer) UpdateLevelConfig(ctx context.Context, in *plant.UpdateLevelConfigReq) (*plant.CommonResp, error) { + l := logic.NewUpdateLevelConfigLogic(ctx, s.svcCtx) + return l.UpdateLevelConfig(in) +} + +func (s *PlantServiceServer) DeleteLevelConfig(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeleteLevelConfigLogic(ctx, s.svcCtx) + return l.DeleteLevelConfig(in) +} + +func (s *PlantServiceServer) GetBadgeConfigList(ctx context.Context, in *plant.BadgeConfigListReq) (*plant.BadgeConfigListResp, error) { + l := logic.NewGetBadgeConfigListLogic(ctx, s.svcCtx) + return l.GetBadgeConfigList(in) +} + +func (s *PlantServiceServer) GetBadgeConfigDetail(ctx context.Context, in *plant.IdReq) (*plant.BadgeConfigInfo, error) { + l := logic.NewGetBadgeConfigDetailLogic(ctx, s.svcCtx) + return l.GetBadgeConfigDetail(in) } -// ---- 徽章配置树 ---- func (s *PlantServiceServer) GetBadgeConfigTree(ctx context.Context, in *plant.IdReq) (*plant.BadgeConfigTreeResp, error) { - return logic.NewGetBadgeConfigTreeLogic(ctx, s.svcCtx).GetBadgeConfigTree(in) + l := logic.NewGetBadgeConfigTreeLogic(ctx, s.svcCtx) + return l.GetBadgeConfigTree(in) } -// ---- AI 历史 ---- -func (s *PlantServiceServer) GetAiChatHistory(ctx context.Context, in *plant.AiChatHistoryReq) (*plant.AiChatHistoryResp, error) { - return logic.NewGetAiChatHistoryLogic(ctx, s.svcCtx).GetAiChatHistory(in) +func (s *PlantServiceServer) CreateBadgeConfig(ctx context.Context, in *plant.CreateBadgeConfigReq) (*plant.CommonResp, error) { + l := logic.NewCreateBadgeConfigLogic(ctx, s.svcCtx) + return l.CreateBadgeConfig(in) +} + +func (s *PlantServiceServer) UpdateBadgeConfig(ctx context.Context, in *plant.UpdateBadgeConfigReq) (*plant.CommonResp, error) { + l := logic.NewUpdateBadgeConfigLogic(ctx, s.svcCtx) + return l.UpdateBadgeConfig(in) +} + +func (s *PlantServiceServer) DeleteBadgeConfig(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeleteBadgeConfigLogic(ctx, s.svcCtx) + return l.DeleteBadgeConfig(in) +} + +func (s *PlantServiceServer) GetWikiClassDetail(ctx context.Context, in *plant.IdReq) (*plant.WikiClassInfo, error) { + l := logic.NewGetWikiClassDetailLogic(ctx, s.svcCtx) + return l.GetWikiClassDetail(in) +} + +// AI +func (s *PlantServiceServer) GetAiChatHistory(ctx context.Context, in *plant.AiChatHistoryReq) (*plant.AiChatHistoryResp, error) { + l := logic.NewGetAiChatHistoryLogic(ctx, s.svcCtx) + return l.GetAiChatHistory(in) +} + +func (s *PlantServiceServer) SaveAiChatHistory(ctx context.Context, in *plant.SaveAiChatHistoryReq) (*plant.CommonResp, error) { + l := logic.NewSaveAiChatHistoryLogic(ctx, s.svcCtx) + return l.SaveAiChatHistory(in) +} + +func (s *PlantServiceServer) DeleteAiChatHistory(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeleteAiChatHistoryLogic(ctx, s.svcCtx) + return l.DeleteAiChatHistory(in) +} + +func (s *PlantServiceServer) ClearAiChatHistory(ctx context.Context, in *plant.GetProfileReq) (*plant.CommonResp, error) { + l := logic.NewClearAiChatHistoryLogic(ctx, s.svcCtx) + return l.ClearAiChatHistory(in) +} + +func (s *PlantServiceServer) GetAiChatQuota(ctx context.Context, in *plant.GetProfileReq) (*plant.AiQuotaResp, error) { + l := logic.NewGetAiChatQuotaLogic(ctx, s.svcCtx) + return l.GetAiChatQuota(in) +} + +// 快捷养护 +func (s *PlantServiceServer) QuickCare(ctx context.Context, in *plant.QuickCareReq) (*plant.CommonResp, error) { + l := logic.NewQuickCareLogic(ctx, s.svcCtx) + return l.QuickCare(in) +} + +// Banner +func (s *PlantServiceServer) CreateBanner(ctx context.Context, in *plant.CreateBannerReq) (*plant.CommonResp, error) { + l := logic.NewCreateBannerLogic(ctx, s.svcCtx) + return l.CreateBanner(in) +} + +func (s *PlantServiceServer) UpdateBanner(ctx context.Context, in *plant.UpdateBannerReq) (*plant.CommonResp, error) { + l := logic.NewUpdateBannerLogic(ctx, s.svcCtx) + return l.UpdateBanner(in) +} + +func (s *PlantServiceServer) DeleteBanner(ctx context.Context, in *plant.IdsReq) (*plant.CommonResp, error) { + l := logic.NewDeleteBannerLogic(ctx, s.svcCtx) + return l.DeleteBanner(in) +} + +func (s *PlantServiceServer) GetBannerList(ctx context.Context, in *plant.BannerListReq) (*plant.BannerListResp, error) { + l := logic.NewGetBannerListLogic(ctx, s.svcCtx) + return l.GetBannerList(in) +} + +func (s *PlantServiceServer) GetActiveBannerList(ctx context.Context, in *plant.PageReq) (*plant.BannerListResp, error) { + l := logic.NewGetActiveBannerListLogic(ctx, s.svcCtx) + return l.GetActiveBannerList(in) } diff --git a/app/plant/rpc/internal/svc/serviceContext.go b/app/plant/rpc/internal/svc/serviceContext.go index f72515f..207fa0f 100644 --- a/app/plant/rpc/internal/svc/serviceContext.go +++ b/app/plant/rpc/internal/svc/serviceContext.go @@ -3,15 +3,18 @@ package svc import ( plantModel "sundynix-micro-go/app/plant/model" "sundynix-micro-go/app/plant/rpc/internal/config" + "sundynix-micro-go/app/system/rpc/systemservice" "github.com/zeromicro/go-zero/core/logx" + "github.com/zeromicro/go-zero/zrpc" "gorm.io/driver/mysql" "gorm.io/gorm" ) type ServiceContext struct { - Config config.Config - DB *gorm.DB + Config config.Config + DB *gorm.DB + SystemRpc systemservice.SystemService } func NewServiceContext(c config.Config) *ServiceContext { @@ -55,5 +58,9 @@ func NewServiceContext(c config.Config) *ServiceContext { logx.Errorf("数据库迁移失败: %v", err) } - return &ServiceContext{Config: c, DB: db} + // 初始化 System RPC 客户端 + sysRpc := systemservice.NewSystemService(zrpc.MustNewClient(c.SystemRpc)) + logx.Info("[plant-rpc] ✅ SystemRpc 已连接") + + return &ServiceContext{Config: c, DB: db, SystemRpc: sysRpc} } diff --git a/app/plant/rpc/pb/plant.pb.go b/app/plant/rpc/pb/plant.pb.go deleted file mode 100644 index d171d95..0000000 --- a/app/plant/rpc/pb/plant.pb.go +++ /dev/null @@ -1,7385 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.11 -// protoc v7.34.1 -// source: pb/plant.proto - -package plant - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CommonResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CommonResp) Reset() { - *x = CommonResp{} - mi := &file_pb_plant_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CommonResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommonResp) ProtoMessage() {} - -func (x *CommonResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommonResp.ProtoReflect.Descriptor instead. -func (*CommonResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{0} -} - -func (x *CommonResp) GetCode() int64 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *CommonResp) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -type IdReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IdReq) Reset() { - *x = IdReq{} - mi := &file_pb_plant_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IdReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdReq) ProtoMessage() {} - -func (x *IdReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdReq.ProtoReflect.Descriptor instead. -func (*IdReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{1} -} - -func (x *IdReq) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type IdsReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IdsReq) Reset() { - *x = IdsReq{} - mi := &file_pb_plant_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IdsReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdsReq) ProtoMessage() {} - -func (x *IdsReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdsReq.ProtoReflect.Descriptor instead. -func (*IdsReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{2} -} - -func (x *IdsReq) GetIds() []string { - if x != nil { - return x.Ids - } - return nil -} - -type PageReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PageReq) Reset() { - *x = PageReq{} - mi := &file_pb_plant_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PageReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PageReq) ProtoMessage() {} - -func (x *PageReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PageReq.ProtoReflect.Descriptor instead. -func (*PageReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{3} -} - -func (x *PageReq) GetCurrent() int32 { - if x != nil { - return x.Current - } - return 0 -} - -func (x *PageReq) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -type PlantUserProfile struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` - NickName string `protobuf:"bytes,3,opt,name=nickName,proto3" json:"nickName,omitempty"` - AvatarId string `protobuf:"bytes,4,opt,name=avatarId,proto3" json:"avatarId,omitempty"` - LevelId string `protobuf:"bytes,5,opt,name=levelId,proto3" json:"levelId,omitempty"` - CurrentSunlight int64 `protobuf:"varint,6,opt,name=currentSunlight,proto3" json:"currentSunlight,omitempty"` - TotalSunlight int64 `protobuf:"varint,7,opt,name=totalSunlight,proto3" json:"totalSunlight,omitempty"` - PlantCount int64 `protobuf:"varint,8,opt,name=plantCount,proto3" json:"plantCount,omitempty"` - CareCount int64 `protobuf:"varint,9,opt,name=careCount,proto3" json:"careCount,omitempty"` - PostCount int64 `protobuf:"varint,10,opt,name=postCount,proto3" json:"postCount,omitempty"` - WaterCount int64 `protobuf:"varint,11,opt,name=waterCount,proto3" json:"waterCount,omitempty"` - FertilizeCount int64 `protobuf:"varint,12,opt,name=fertilizeCount,proto3" json:"fertilizeCount,omitempty"` - RepotCount int64 `protobuf:"varint,13,opt,name=repotCount,proto3" json:"repotCount,omitempty"` - PruneCount int64 `protobuf:"varint,14,opt,name=pruneCount,proto3" json:"pruneCount,omitempty"` - PhotoCount int64 `protobuf:"varint,15,opt,name=photoCount,proto3" json:"photoCount,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PlantUserProfile) Reset() { - *x = PlantUserProfile{} - mi := &file_pb_plant_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PlantUserProfile) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlantUserProfile) ProtoMessage() {} - -func (x *PlantUserProfile) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlantUserProfile.ProtoReflect.Descriptor instead. -func (*PlantUserProfile) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{4} -} - -func (x *PlantUserProfile) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PlantUserProfile) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *PlantUserProfile) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *PlantUserProfile) GetAvatarId() string { - if x != nil { - return x.AvatarId - } - return "" -} - -func (x *PlantUserProfile) GetLevelId() string { - if x != nil { - return x.LevelId - } - return "" -} - -func (x *PlantUserProfile) GetCurrentSunlight() int64 { - if x != nil { - return x.CurrentSunlight - } - return 0 -} - -func (x *PlantUserProfile) GetTotalSunlight() int64 { - if x != nil { - return x.TotalSunlight - } - return 0 -} - -func (x *PlantUserProfile) GetPlantCount() int64 { - if x != nil { - return x.PlantCount - } - return 0 -} - -func (x *PlantUserProfile) GetCareCount() int64 { - if x != nil { - return x.CareCount - } - return 0 -} - -func (x *PlantUserProfile) GetPostCount() int64 { - if x != nil { - return x.PostCount - } - return 0 -} - -func (x *PlantUserProfile) GetWaterCount() int64 { - if x != nil { - return x.WaterCount - } - return 0 -} - -func (x *PlantUserProfile) GetFertilizeCount() int64 { - if x != nil { - return x.FertilizeCount - } - return 0 -} - -func (x *PlantUserProfile) GetRepotCount() int64 { - if x != nil { - return x.RepotCount - } - return 0 -} - -func (x *PlantUserProfile) GetPruneCount() int64 { - if x != nil { - return x.PruneCount - } - return 0 -} - -func (x *PlantUserProfile) GetPhotoCount() int64 { - if x != nil { - return x.PhotoCount - } - return 0 -} - -type GetProfileReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetProfileReq) Reset() { - *x = GetProfileReq{} - mi := &file_pb_plant_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetProfileReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProfileReq) ProtoMessage() {} - -func (x *GetProfileReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProfileReq.ProtoReflect.Descriptor instead. -func (*GetProfileReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{5} -} - -func (x *GetProfileReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type UpdateProfileReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - NickName string `protobuf:"bytes,2,opt,name=nickName,proto3" json:"nickName,omitempty"` - AvatarId string `protobuf:"bytes,3,opt,name=avatarId,proto3" json:"avatarId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateProfileReq) Reset() { - *x = UpdateProfileReq{} - mi := &file_pb_plant_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateProfileReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateProfileReq) ProtoMessage() {} - -func (x *UpdateProfileReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateProfileReq.ProtoReflect.Descriptor instead. -func (*UpdateProfileReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{6} -} - -func (x *UpdateProfileReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *UpdateProfileReq) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *UpdateProfileReq) GetAvatarId() string { - if x != nil { - return x.AvatarId - } - return "" -} - -// 我的徽章 -type UserBadgeInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - BadgeId string `protobuf:"bytes,2,opt,name=badgeId,proto3" json:"badgeId,omitempty"` - BadgeName string `protobuf:"bytes,3,opt,name=badgeName,proto3" json:"badgeName,omitempty"` - Dimension string `protobuf:"bytes,4,opt,name=dimension,proto3" json:"dimension,omitempty"` - Tier int32 `protobuf:"varint,5,opt,name=tier,proto3" json:"tier,omitempty"` - AwardedAt string `protobuf:"bytes,6,opt,name=awardedAt,proto3" json:"awardedAt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UserBadgeInfo) Reset() { - *x = UserBadgeInfo{} - mi := &file_pb_plant_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UserBadgeInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserBadgeInfo) ProtoMessage() {} - -func (x *UserBadgeInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserBadgeInfo.ProtoReflect.Descriptor instead. -func (*UserBadgeInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{7} -} - -func (x *UserBadgeInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserBadgeInfo) GetBadgeId() string { - if x != nil { - return x.BadgeId - } - return "" -} - -func (x *UserBadgeInfo) GetBadgeName() string { - if x != nil { - return x.BadgeName - } - return "" -} - -func (x *UserBadgeInfo) GetDimension() string { - if x != nil { - return x.Dimension - } - return "" -} - -func (x *UserBadgeInfo) GetTier() int32 { - if x != nil { - return x.Tier - } - return 0 -} - -func (x *UserBadgeInfo) GetAwardedAt() string { - if x != nil { - return x.AwardedAt - } - return "" -} - -type UserBadgeListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*UserBadgeInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UserBadgeListResp) Reset() { - *x = UserBadgeListResp{} - mi := &file_pb_plant_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UserBadgeListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserBadgeListResp) ProtoMessage() {} - -func (x *UserBadgeListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[8] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserBadgeListResp.ProtoReflect.Descriptor instead. -func (*UserBadgeListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{8} -} - -func (x *UserBadgeListResp) GetList() []*UserBadgeInfo { - if x != nil { - return x.List - } - return nil -} - -// 我的收藏 -type UserStarInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - CreatedAt string `protobuf:"bytes,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UserStarInfo) Reset() { - *x = UserStarInfo{} - mi := &file_pb_plant_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UserStarInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserStarInfo) ProtoMessage() {} - -func (x *UserStarInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserStarInfo.ProtoReflect.Descriptor instead. -func (*UserStarInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{9} -} - -func (x *UserStarInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserStarInfo) GetTargetId() string { - if x != nil { - return x.TargetId - } - return "" -} - -func (x *UserStarInfo) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *UserStarInfo) GetCreatedAt() string { - if x != nil { - return x.CreatedAt - } - return "" -} - -type UserStarListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*UserStarInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UserStarListResp) Reset() { - *x = UserStarListResp{} - mi := &file_pb_plant_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UserStarListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserStarListResp) ProtoMessage() {} - -func (x *UserStarListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserStarListResp.ProtoReflect.Descriptor instead. -func (*UserStarListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{10} -} - -func (x *UserStarListResp) GetList() []*UserStarInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *UserStarListResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -type PlantInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - PlantTime string `protobuf:"bytes,4,opt,name=plantTime,proto3" json:"plantTime,omitempty"` - Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` - Placement string `protobuf:"bytes,6,opt,name=placement,proto3" json:"placement,omitempty"` - PotMaterial string `protobuf:"bytes,7,opt,name=potMaterial,proto3" json:"potMaterial,omitempty"` - PotSize string `protobuf:"bytes,8,opt,name=potSize,proto3" json:"potSize,omitempty"` - Sunlight string `protobuf:"bytes,9,opt,name=sunlight,proto3" json:"sunlight,omitempty"` - PlantingMaterial string `protobuf:"bytes,10,opt,name=plantingMaterial,proto3" json:"plantingMaterial,omitempty"` - ImgIds []string `protobuf:"bytes,11,rep,name=imgIds,proto3" json:"imgIds,omitempty"` - CreatedAt int64 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PlantInfo) Reset() { - *x = PlantInfo{} - mi := &file_pb_plant_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PlantInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlantInfo) ProtoMessage() {} - -func (x *PlantInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlantInfo.ProtoReflect.Descriptor instead. -func (*PlantInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{11} -} - -func (x *PlantInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PlantInfo) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *PlantInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *PlantInfo) GetPlantTime() string { - if x != nil { - return x.PlantTime - } - return "" -} - -func (x *PlantInfo) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *PlantInfo) GetPlacement() string { - if x != nil { - return x.Placement - } - return "" -} - -func (x *PlantInfo) GetPotMaterial() string { - if x != nil { - return x.PotMaterial - } - return "" -} - -func (x *PlantInfo) GetPotSize() string { - if x != nil { - return x.PotSize - } - return "" -} - -func (x *PlantInfo) GetSunlight() string { - if x != nil { - return x.Sunlight - } - return "" -} - -func (x *PlantInfo) GetPlantingMaterial() string { - if x != nil { - return x.PlantingMaterial - } - return "" -} - -func (x *PlantInfo) GetImgIds() []string { - if x != nil { - return x.ImgIds - } - return nil -} - -func (x *PlantInfo) GetCreatedAt() int64 { - if x != nil { - return x.CreatedAt - } - return 0 -} - -type CreatePlantReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - PlantTime string `protobuf:"bytes,3,opt,name=plantTime,proto3" json:"plantTime,omitempty"` - Placement string `protobuf:"bytes,4,opt,name=placement,proto3" json:"placement,omitempty"` - PotMaterial string `protobuf:"bytes,5,opt,name=potMaterial,proto3" json:"potMaterial,omitempty"` - PotSize string `protobuf:"bytes,6,opt,name=potSize,proto3" json:"potSize,omitempty"` - Sunlight string `protobuf:"bytes,7,opt,name=sunlight,proto3" json:"sunlight,omitempty"` - PlantingMaterial string `protobuf:"bytes,8,opt,name=plantingMaterial,proto3" json:"plantingMaterial,omitempty"` - ImgIds []string `protobuf:"bytes,9,rep,name=imgIds,proto3" json:"imgIds,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreatePlantReq) Reset() { - *x = CreatePlantReq{} - mi := &file_pb_plant_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreatePlantReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreatePlantReq) ProtoMessage() {} - -func (x *CreatePlantReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[12] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreatePlantReq.ProtoReflect.Descriptor instead. -func (*CreatePlantReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{12} -} - -func (x *CreatePlantReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *CreatePlantReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreatePlantReq) GetPlantTime() string { - if x != nil { - return x.PlantTime - } - return "" -} - -func (x *CreatePlantReq) GetPlacement() string { - if x != nil { - return x.Placement - } - return "" -} - -func (x *CreatePlantReq) GetPotMaterial() string { - if x != nil { - return x.PotMaterial - } - return "" -} - -func (x *CreatePlantReq) GetPotSize() string { - if x != nil { - return x.PotSize - } - return "" -} - -func (x *CreatePlantReq) GetSunlight() string { - if x != nil { - return x.Sunlight - } - return "" -} - -func (x *CreatePlantReq) GetPlantingMaterial() string { - if x != nil { - return x.PlantingMaterial - } - return "" -} - -func (x *CreatePlantReq) GetImgIds() []string { - if x != nil { - return x.ImgIds - } - return nil -} - -type UpdatePlantReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` - Placement string `protobuf:"bytes,4,opt,name=placement,proto3" json:"placement,omitempty"` - PotMaterial string `protobuf:"bytes,5,opt,name=potMaterial,proto3" json:"potMaterial,omitempty"` - PotSize string `protobuf:"bytes,6,opt,name=potSize,proto3" json:"potSize,omitempty"` - Sunlight string `protobuf:"bytes,7,opt,name=sunlight,proto3" json:"sunlight,omitempty"` - PlantingMaterial string `protobuf:"bytes,8,opt,name=plantingMaterial,proto3" json:"plantingMaterial,omitempty"` - ImgIds []string `protobuf:"bytes,9,rep,name=imgIds,proto3" json:"imgIds,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdatePlantReq) Reset() { - *x = UpdatePlantReq{} - mi := &file_pb_plant_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdatePlantReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdatePlantReq) ProtoMessage() {} - -func (x *UpdatePlantReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[13] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdatePlantReq.ProtoReflect.Descriptor instead. -func (*UpdatePlantReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{13} -} - -func (x *UpdatePlantReq) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdatePlantReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UpdatePlantReq) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *UpdatePlantReq) GetPlacement() string { - if x != nil { - return x.Placement - } - return "" -} - -func (x *UpdatePlantReq) GetPotMaterial() string { - if x != nil { - return x.PotMaterial - } - return "" -} - -func (x *UpdatePlantReq) GetPotSize() string { - if x != nil { - return x.PotSize - } - return "" -} - -func (x *UpdatePlantReq) GetSunlight() string { - if x != nil { - return x.Sunlight - } - return "" -} - -func (x *UpdatePlantReq) GetPlantingMaterial() string { - if x != nil { - return x.PlantingMaterial - } - return "" -} - -func (x *UpdatePlantReq) GetImgIds() []string { - if x != nil { - return x.ImgIds - } - return nil -} - -type PlantListReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - Current int32 `protobuf:"varint,2,opt,name=current,proto3" json:"current,omitempty"` - PageSize int32 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PlantListReq) Reset() { - *x = PlantListReq{} - mi := &file_pb_plant_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PlantListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlantListReq) ProtoMessage() {} - -func (x *PlantListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[14] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlantListReq.ProtoReflect.Descriptor instead. -func (*PlantListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{14} -} - -func (x *PlantListReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *PlantListReq) GetCurrent() int32 { - if x != nil { - return x.Current - } - return 0 -} - -func (x *PlantListReq) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *PlantListReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type PlantListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*PlantInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PlantListResp) Reset() { - *x = PlantListResp{} - mi := &file_pb_plant_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PlantListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlantListResp) ProtoMessage() {} - -func (x *PlantListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[15] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlantListResp.ProtoReflect.Descriptor instead. -func (*PlantListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{15} -} - -func (x *PlantListResp) GetList() []*PlantInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *PlantListResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -type PlantDetailResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Plant *PlantInfo `protobuf:"bytes,1,opt,name=plant,proto3" json:"plant,omitempty"` - CarePlans []*CarePlanInfo `protobuf:"bytes,2,rep,name=carePlans,proto3" json:"carePlans,omitempty"` - GrowthRecords []*GrowthRecordInfo `protobuf:"bytes,3,rep,name=growthRecords,proto3" json:"growthRecords,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PlantDetailResp) Reset() { - *x = PlantDetailResp{} - mi := &file_pb_plant_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PlantDetailResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlantDetailResp) ProtoMessage() {} - -func (x *PlantDetailResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[16] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlantDetailResp.ProtoReflect.Descriptor instead. -func (*PlantDetailResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{16} -} - -func (x *PlantDetailResp) GetPlant() *PlantInfo { - if x != nil { - return x.Plant - } - return nil -} - -func (x *PlantDetailResp) GetCarePlans() []*CarePlanInfo { - if x != nil { - return x.CarePlans - } - return nil -} - -func (x *PlantDetailResp) GetGrowthRecords() []*GrowthRecordInfo { - if x != nil { - return x.GrowthRecords - } - return nil -} - -type CarePlanInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - PlantId string `protobuf:"bytes,2,opt,name=plantId,proto3" json:"plantId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"` - TargetAction string `protobuf:"bytes,5,opt,name=targetAction,proto3" json:"targetAction,omitempty"` - Period int32 `protobuf:"varint,6,opt,name=period,proto3" json:"period,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CarePlanInfo) Reset() { - *x = CarePlanInfo{} - mi := &file_pb_plant_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CarePlanInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CarePlanInfo) ProtoMessage() {} - -func (x *CarePlanInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[17] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CarePlanInfo.ProtoReflect.Descriptor instead. -func (*CarePlanInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{17} -} - -func (x *CarePlanInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *CarePlanInfo) GetPlantId() string { - if x != nil { - return x.PlantId - } - return "" -} - -func (x *CarePlanInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CarePlanInfo) GetIcon() string { - if x != nil { - return x.Icon - } - return "" -} - -func (x *CarePlanInfo) GetTargetAction() string { - if x != nil { - return x.TargetAction - } - return "" -} - -func (x *CarePlanInfo) GetPeriod() int32 { - if x != nil { - return x.Period - } - return 0 -} - -type AddCarePlanReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - PlantId string `protobuf:"bytes,2,opt,name=plantId,proto3" json:"plantId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"` - TargetAction string `protobuf:"bytes,5,opt,name=targetAction,proto3" json:"targetAction,omitempty"` - Period int32 `protobuf:"varint,6,opt,name=period,proto3" json:"period,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AddCarePlanReq) Reset() { - *x = AddCarePlanReq{} - mi := &file_pb_plant_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AddCarePlanReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddCarePlanReq) ProtoMessage() {} - -func (x *AddCarePlanReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[18] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddCarePlanReq.ProtoReflect.Descriptor instead. -func (*AddCarePlanReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{18} -} - -func (x *AddCarePlanReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *AddCarePlanReq) GetPlantId() string { - if x != nil { - return x.PlantId - } - return "" -} - -func (x *AddCarePlanReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *AddCarePlanReq) GetIcon() string { - if x != nil { - return x.Icon - } - return "" -} - -func (x *AddCarePlanReq) GetTargetAction() string { - if x != nil { - return x.TargetAction - } - return "" -} - -func (x *AddCarePlanReq) GetPeriod() int32 { - if x != nil { - return x.Period - } - return 0 -} - -// 养护任务 status: 1=待完成 2=已完成 3=已过期 -type CareTaskInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - PlantId string `protobuf:"bytes,2,opt,name=plantId,proto3" json:"plantId,omitempty"` - PlanId string `protobuf:"bytes,3,opt,name=planId,proto3" json:"planId,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"` - TargetAction string `protobuf:"bytes,6,opt,name=targetAction,proto3" json:"targetAction,omitempty"` - DueDate string `protobuf:"bytes,7,opt,name=dueDate,proto3" json:"dueDate,omitempty"` - Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CareTaskInfo) Reset() { - *x = CareTaskInfo{} - mi := &file_pb_plant_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CareTaskInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CareTaskInfo) ProtoMessage() {} - -func (x *CareTaskInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[19] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CareTaskInfo.ProtoReflect.Descriptor instead. -func (*CareTaskInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{19} -} - -func (x *CareTaskInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *CareTaskInfo) GetPlantId() string { - if x != nil { - return x.PlantId - } - return "" -} - -func (x *CareTaskInfo) GetPlanId() string { - if x != nil { - return x.PlanId - } - return "" -} - -func (x *CareTaskInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CareTaskInfo) GetIcon() string { - if x != nil { - return x.Icon - } - return "" -} - -func (x *CareTaskInfo) GetTargetAction() string { - if x != nil { - return x.TargetAction - } - return "" -} - -func (x *CareTaskInfo) GetDueDate() string { - if x != nil { - return x.DueDate - } - return "" -} - -func (x *CareTaskInfo) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -type CareTaskListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*CareTaskInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CareTaskListResp) Reset() { - *x = CareTaskListResp{} - mi := &file_pb_plant_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CareTaskListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CareTaskListResp) ProtoMessage() {} - -func (x *CareTaskListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[20] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CareTaskListResp.ProtoReflect.Descriptor instead. -func (*CareTaskListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{20} -} - -func (x *CareTaskListResp) GetList() []*CareTaskInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *CareTaskListResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -type AddCareRecordReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - PlantId string `protobuf:"bytes,2,opt,name=plantId,proto3" json:"plantId,omitempty"` - PlanId string `protobuf:"bytes,3,opt,name=planId,proto3" json:"planId,omitempty"` - Action string `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"` - Note string `protobuf:"bytes,5,opt,name=note,proto3" json:"note,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AddCareRecordReq) Reset() { - *x = AddCareRecordReq{} - mi := &file_pb_plant_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AddCareRecordReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddCareRecordReq) ProtoMessage() {} - -func (x *AddCareRecordReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[21] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddCareRecordReq.ProtoReflect.Descriptor instead. -func (*AddCareRecordReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{21} -} - -func (x *AddCareRecordReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *AddCareRecordReq) GetPlantId() string { - if x != nil { - return x.PlantId - } - return "" -} - -func (x *AddCareRecordReq) GetPlanId() string { - if x != nil { - return x.PlanId - } - return "" -} - -func (x *AddCareRecordReq) GetAction() string { - if x != nil { - return x.Action - } - return "" -} - -func (x *AddCareRecordReq) GetNote() string { - if x != nil { - return x.Note - } - return "" -} - -type GrowthRecordInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - PlantId string `protobuf:"bytes,2,opt,name=plantId,proto3" json:"plantId,omitempty"` - Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GrowthRecordInfo) Reset() { - *x = GrowthRecordInfo{} - mi := &file_pb_plant_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GrowthRecordInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GrowthRecordInfo) ProtoMessage() {} - -func (x *GrowthRecordInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[22] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GrowthRecordInfo.ProtoReflect.Descriptor instead. -func (*GrowthRecordInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{22} -} - -func (x *GrowthRecordInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *GrowthRecordInfo) GetPlantId() string { - if x != nil { - return x.PlantId - } - return "" -} - -func (x *GrowthRecordInfo) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *GrowthRecordInfo) GetCreatedAt() int64 { - if x != nil { - return x.CreatedAt - } - return 0 -} - -type AddGrowthRecordReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - PlantId string `protobuf:"bytes,2,opt,name=plantId,proto3" json:"plantId,omitempty"` - Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - ImgIds []string `protobuf:"bytes,4,rep,name=imgIds,proto3" json:"imgIds,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AddGrowthRecordReq) Reset() { - *x = AddGrowthRecordReq{} - mi := &file_pb_plant_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AddGrowthRecordReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddGrowthRecordReq) ProtoMessage() {} - -func (x *AddGrowthRecordReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[23] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddGrowthRecordReq.ProtoReflect.Descriptor instead. -func (*AddGrowthRecordReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{23} -} - -func (x *AddGrowthRecordReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *AddGrowthRecordReq) GetPlantId() string { - if x != nil { - return x.PlantId - } - return "" -} - -func (x *AddGrowthRecordReq) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *AddGrowthRecordReq) GetImgIds() []string { - if x != nil { - return x.ImgIds - } - return nil -} - -type WikiInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - LatinName string `protobuf:"bytes,3,opt,name=latinName,proto3" json:"latinName,omitempty"` - Aliases string `protobuf:"bytes,4,opt,name=aliases,proto3" json:"aliases,omitempty"` - Genus string `protobuf:"bytes,5,opt,name=genus,proto3" json:"genus,omitempty"` - Difficulty int32 `protobuf:"varint,6,opt,name=difficulty,proto3" json:"difficulty,omitempty"` - IsHot int32 `protobuf:"varint,7,opt,name=isHot,proto3" json:"isHot,omitempty"` - GrowthHabit string `protobuf:"bytes,8,opt,name=growthHabit,proto3" json:"growthHabit,omitempty"` - LightIntensity string `protobuf:"bytes,9,opt,name=lightIntensity,proto3" json:"lightIntensity,omitempty"` - OptimalTempPeriod string `protobuf:"bytes,10,opt,name=optimalTempPeriod,proto3" json:"optimalTempPeriod,omitempty"` - CreatedAt int64 `protobuf:"varint,11,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - ClassId string `protobuf:"bytes,12,opt,name=classId,proto3" json:"classId,omitempty"` - DistributionArea string `protobuf:"bytes,13,opt,name=distributionArea,proto3" json:"distributionArea,omitempty"` - LifeCycle string `protobuf:"bytes,14,opt,name=lifeCycle,proto3" json:"lifeCycle,omitempty"` - ClassIds []string `protobuf:"bytes,15,rep,name=classIds,proto3" json:"classIds,omitempty"` - OssIds []string `protobuf:"bytes,16,rep,name=ossIds,proto3" json:"ossIds,omitempty"` - RelatedWikiIds []string `protobuf:"bytes,17,rep,name=relatedWikiIds,proto3" json:"relatedWikiIds,omitempty"` - IsVectorSynced bool `protobuf:"varint,18,opt,name=isVectorSynced,proto3" json:"isVectorSynced,omitempty"` - IsStar bool `protobuf:"varint,19,opt,name=isStar,proto3" json:"isStar,omitempty"` - ReproductionMethod string `protobuf:"bytes,20,opt,name=reproductionMethod,proto3" json:"reproductionMethod,omitempty"` - PestsDiseases string `protobuf:"bytes,21,opt,name=pestsDiseases,proto3" json:"pestsDiseases,omitempty"` - LightType string `protobuf:"bytes,22,opt,name=lightType,proto3" json:"lightType,omitempty"` - Stem string `protobuf:"bytes,23,opt,name=stem,proto3" json:"stem,omitempty"` - Fruit string `protobuf:"bytes,24,opt,name=fruit,proto3" json:"fruit,omitempty"` - FoliageType string `protobuf:"bytes,25,opt,name=foliageType,proto3" json:"foliageType,omitempty"` - FoliageColor string `protobuf:"bytes,26,opt,name=foliageColor,proto3" json:"foliageColor,omitempty"` - FoliageShape string `protobuf:"bytes,27,opt,name=foliageShape,proto3" json:"foliageShape,omitempty"` - Height int32 `protobuf:"varint,28,opt,name=height,proto3" json:"height,omitempty"` - FloweringPeriod string `protobuf:"bytes,29,opt,name=floweringPeriod,proto3" json:"floweringPeriod,omitempty"` - FloweringColor string `protobuf:"bytes,30,opt,name=floweringColor,proto3" json:"floweringColor,omitempty"` - FloweringShape string `protobuf:"bytes,31,opt,name=floweringShape,proto3" json:"floweringShape,omitempty"` - FloweringDiameter int32 `protobuf:"varint,32,opt,name=floweringDiameter,proto3" json:"floweringDiameter,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *WikiInfo) Reset() { - *x = WikiInfo{} - mi := &file_pb_plant_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *WikiInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WikiInfo) ProtoMessage() {} - -func (x *WikiInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[24] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WikiInfo.ProtoReflect.Descriptor instead. -func (*WikiInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{24} -} - -func (x *WikiInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *WikiInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *WikiInfo) GetLatinName() string { - if x != nil { - return x.LatinName - } - return "" -} - -func (x *WikiInfo) GetAliases() string { - if x != nil { - return x.Aliases - } - return "" -} - -func (x *WikiInfo) GetGenus() string { - if x != nil { - return x.Genus - } - return "" -} - -func (x *WikiInfo) GetDifficulty() int32 { - if x != nil { - return x.Difficulty - } - return 0 -} - -func (x *WikiInfo) GetIsHot() int32 { - if x != nil { - return x.IsHot - } - return 0 -} - -func (x *WikiInfo) GetGrowthHabit() string { - if x != nil { - return x.GrowthHabit - } - return "" -} - -func (x *WikiInfo) GetLightIntensity() string { - if x != nil { - return x.LightIntensity - } - return "" -} - -func (x *WikiInfo) GetOptimalTempPeriod() string { - if x != nil { - return x.OptimalTempPeriod - } - return "" -} - -func (x *WikiInfo) GetCreatedAt() int64 { - if x != nil { - return x.CreatedAt - } - return 0 -} - -func (x *WikiInfo) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *WikiInfo) GetDistributionArea() string { - if x != nil { - return x.DistributionArea - } - return "" -} - -func (x *WikiInfo) GetLifeCycle() string { - if x != nil { - return x.LifeCycle - } - return "" -} - -func (x *WikiInfo) GetClassIds() []string { - if x != nil { - return x.ClassIds - } - return nil -} - -func (x *WikiInfo) GetOssIds() []string { - if x != nil { - return x.OssIds - } - return nil -} - -func (x *WikiInfo) GetRelatedWikiIds() []string { - if x != nil { - return x.RelatedWikiIds - } - return nil -} - -func (x *WikiInfo) GetIsVectorSynced() bool { - if x != nil { - return x.IsVectorSynced - } - return false -} - -func (x *WikiInfo) GetIsStar() bool { - if x != nil { - return x.IsStar - } - return false -} - -func (x *WikiInfo) GetReproductionMethod() string { - if x != nil { - return x.ReproductionMethod - } - return "" -} - -func (x *WikiInfo) GetPestsDiseases() string { - if x != nil { - return x.PestsDiseases - } - return "" -} - -func (x *WikiInfo) GetLightType() string { - if x != nil { - return x.LightType - } - return "" -} - -func (x *WikiInfo) GetStem() string { - if x != nil { - return x.Stem - } - return "" -} - -func (x *WikiInfo) GetFruit() string { - if x != nil { - return x.Fruit - } - return "" -} - -func (x *WikiInfo) GetFoliageType() string { - if x != nil { - return x.FoliageType - } - return "" -} - -func (x *WikiInfo) GetFoliageColor() string { - if x != nil { - return x.FoliageColor - } - return "" -} - -func (x *WikiInfo) GetFoliageShape() string { - if x != nil { - return x.FoliageShape - } - return "" -} - -func (x *WikiInfo) GetHeight() int32 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *WikiInfo) GetFloweringPeriod() string { - if x != nil { - return x.FloweringPeriod - } - return "" -} - -func (x *WikiInfo) GetFloweringColor() string { - if x != nil { - return x.FloweringColor - } - return "" -} - -func (x *WikiInfo) GetFloweringShape() string { - if x != nil { - return x.FloweringShape - } - return "" -} - -func (x *WikiInfo) GetFloweringDiameter() int32 { - if x != nil { - return x.FloweringDiameter - } - return 0 -} - -type WikiListReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - ClassId string `protobuf:"bytes,4,opt,name=classId,proto3" json:"classId,omitempty"` - IsHot int32 `protobuf:"varint,5,opt,name=isHot,proto3" json:"isHot,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *WikiListReq) Reset() { - *x = WikiListReq{} - mi := &file_pb_plant_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *WikiListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WikiListReq) ProtoMessage() {} - -func (x *WikiListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[25] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WikiListReq.ProtoReflect.Descriptor instead. -func (*WikiListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{25} -} - -func (x *WikiListReq) GetCurrent() int32 { - if x != nil { - return x.Current - } - return 0 -} - -func (x *WikiListReq) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *WikiListReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *WikiListReq) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *WikiListReq) GetIsHot() int32 { - if x != nil { - return x.IsHot - } - return 0 -} - -type WikiListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*WikiInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *WikiListResp) Reset() { - *x = WikiListResp{} - mi := &file_pb_plant_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *WikiListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WikiListResp) ProtoMessage() {} - -func (x *WikiListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[26] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WikiListResp.ProtoReflect.Descriptor instead. -func (*WikiListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{26} -} - -func (x *WikiListResp) GetList() []*WikiInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *WikiListResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -type WikiDetailResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Wiki *WikiInfo `protobuf:"bytes,1,opt,name=wiki,proto3" json:"wiki,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *WikiDetailResp) Reset() { - *x = WikiDetailResp{} - mi := &file_pb_plant_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *WikiDetailResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WikiDetailResp) ProtoMessage() {} - -func (x *WikiDetailResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[27] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WikiDetailResp.ProtoReflect.Descriptor instead. -func (*WikiDetailResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{27} -} - -func (x *WikiDetailResp) GetWiki() *WikiInfo { - if x != nil { - return x.Wiki - } - return nil -} - -type CreateWikiReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - LatinName string `protobuf:"bytes,2,opt,name=latinName,proto3" json:"latinName,omitempty"` - Aliases string `protobuf:"bytes,3,opt,name=aliases,proto3" json:"aliases,omitempty"` - Genus string `protobuf:"bytes,4,opt,name=genus,proto3" json:"genus,omitempty"` - Difficulty int32 `protobuf:"varint,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"` - IsHot int32 `protobuf:"varint,6,opt,name=isHot,proto3" json:"isHot,omitempty"` - GrowthHabit string `protobuf:"bytes,7,opt,name=growthHabit,proto3" json:"growthHabit,omitempty"` - LightIntensity string `protobuf:"bytes,8,opt,name=lightIntensity,proto3" json:"lightIntensity,omitempty"` - OptimalTempPeriod string `protobuf:"bytes,9,opt,name=optimalTempPeriod,proto3" json:"optimalTempPeriod,omitempty"` - ClassId string `protobuf:"bytes,10,opt,name=classId,proto3" json:"classId,omitempty"` - DistributionArea string `protobuf:"bytes,11,opt,name=distributionArea,proto3" json:"distributionArea,omitempty"` - LifeCycle string `protobuf:"bytes,12,opt,name=lifeCycle,proto3" json:"lifeCycle,omitempty"` - ClassIds []string `protobuf:"bytes,13,rep,name=classIds,proto3" json:"classIds,omitempty"` - OssIds []string `protobuf:"bytes,14,rep,name=ossIds,proto3" json:"ossIds,omitempty"` - RelatedWikiIds []string `protobuf:"bytes,15,rep,name=relatedWikiIds,proto3" json:"relatedWikiIds,omitempty"` - ReproductionMethod string `protobuf:"bytes,16,opt,name=reproductionMethod,proto3" json:"reproductionMethod,omitempty"` - PestsDiseases string `protobuf:"bytes,17,opt,name=pestsDiseases,proto3" json:"pestsDiseases,omitempty"` - LightType string `protobuf:"bytes,18,opt,name=lightType,proto3" json:"lightType,omitempty"` - Stem string `protobuf:"bytes,19,opt,name=stem,proto3" json:"stem,omitempty"` - Fruit string `protobuf:"bytes,20,opt,name=fruit,proto3" json:"fruit,omitempty"` - FoliageType string `protobuf:"bytes,21,opt,name=foliageType,proto3" json:"foliageType,omitempty"` - FoliageColor string `protobuf:"bytes,22,opt,name=foliageColor,proto3" json:"foliageColor,omitempty"` - FoliageShape string `protobuf:"bytes,23,opt,name=foliageShape,proto3" json:"foliageShape,omitempty"` - Height int32 `protobuf:"varint,24,opt,name=height,proto3" json:"height,omitempty"` - FloweringPeriod string `protobuf:"bytes,25,opt,name=floweringPeriod,proto3" json:"floweringPeriod,omitempty"` - FloweringColor string `protobuf:"bytes,26,opt,name=floweringColor,proto3" json:"floweringColor,omitempty"` - FloweringShape string `protobuf:"bytes,27,opt,name=floweringShape,proto3" json:"floweringShape,omitempty"` - FloweringDiameter int32 `protobuf:"varint,28,opt,name=floweringDiameter,proto3" json:"floweringDiameter,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateWikiReq) Reset() { - *x = CreateWikiReq{} - mi := &file_pb_plant_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateWikiReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateWikiReq) ProtoMessage() {} - -func (x *CreateWikiReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[28] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateWikiReq.ProtoReflect.Descriptor instead. -func (*CreateWikiReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{28} -} - -func (x *CreateWikiReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateWikiReq) GetLatinName() string { - if x != nil { - return x.LatinName - } - return "" -} - -func (x *CreateWikiReq) GetAliases() string { - if x != nil { - return x.Aliases - } - return "" -} - -func (x *CreateWikiReq) GetGenus() string { - if x != nil { - return x.Genus - } - return "" -} - -func (x *CreateWikiReq) GetDifficulty() int32 { - if x != nil { - return x.Difficulty - } - return 0 -} - -func (x *CreateWikiReq) GetIsHot() int32 { - if x != nil { - return x.IsHot - } - return 0 -} - -func (x *CreateWikiReq) GetGrowthHabit() string { - if x != nil { - return x.GrowthHabit - } - return "" -} - -func (x *CreateWikiReq) GetLightIntensity() string { - if x != nil { - return x.LightIntensity - } - return "" -} - -func (x *CreateWikiReq) GetOptimalTempPeriod() string { - if x != nil { - return x.OptimalTempPeriod - } - return "" -} - -func (x *CreateWikiReq) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *CreateWikiReq) GetDistributionArea() string { - if x != nil { - return x.DistributionArea - } - return "" -} - -func (x *CreateWikiReq) GetLifeCycle() string { - if x != nil { - return x.LifeCycle - } - return "" -} - -func (x *CreateWikiReq) GetClassIds() []string { - if x != nil { - return x.ClassIds - } - return nil -} - -func (x *CreateWikiReq) GetOssIds() []string { - if x != nil { - return x.OssIds - } - return nil -} - -func (x *CreateWikiReq) GetRelatedWikiIds() []string { - if x != nil { - return x.RelatedWikiIds - } - return nil -} - -func (x *CreateWikiReq) GetReproductionMethod() string { - if x != nil { - return x.ReproductionMethod - } - return "" -} - -func (x *CreateWikiReq) GetPestsDiseases() string { - if x != nil { - return x.PestsDiseases - } - return "" -} - -func (x *CreateWikiReq) GetLightType() string { - if x != nil { - return x.LightType - } - return "" -} - -func (x *CreateWikiReq) GetStem() string { - if x != nil { - return x.Stem - } - return "" -} - -func (x *CreateWikiReq) GetFruit() string { - if x != nil { - return x.Fruit - } - return "" -} - -func (x *CreateWikiReq) GetFoliageType() string { - if x != nil { - return x.FoliageType - } - return "" -} - -func (x *CreateWikiReq) GetFoliageColor() string { - if x != nil { - return x.FoliageColor - } - return "" -} - -func (x *CreateWikiReq) GetFoliageShape() string { - if x != nil { - return x.FoliageShape - } - return "" -} - -func (x *CreateWikiReq) GetHeight() int32 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *CreateWikiReq) GetFloweringPeriod() string { - if x != nil { - return x.FloweringPeriod - } - return "" -} - -func (x *CreateWikiReq) GetFloweringColor() string { - if x != nil { - return x.FloweringColor - } - return "" -} - -func (x *CreateWikiReq) GetFloweringShape() string { - if x != nil { - return x.FloweringShape - } - return "" -} - -func (x *CreateWikiReq) GetFloweringDiameter() int32 { - if x != nil { - return x.FloweringDiameter - } - return 0 -} - -type UpdateWikiReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - LatinName string `protobuf:"bytes,3,opt,name=latinName,proto3" json:"latinName,omitempty"` - Aliases string `protobuf:"bytes,4,opt,name=aliases,proto3" json:"aliases,omitempty"` - Genus string `protobuf:"bytes,5,opt,name=genus,proto3" json:"genus,omitempty"` - Difficulty int32 `protobuf:"varint,6,opt,name=difficulty,proto3" json:"difficulty,omitempty"` - IsHot int32 `protobuf:"varint,7,opt,name=isHot,proto3" json:"isHot,omitempty"` - GrowthHabit string `protobuf:"bytes,8,opt,name=growthHabit,proto3" json:"growthHabit,omitempty"` - LightIntensity string `protobuf:"bytes,9,opt,name=lightIntensity,proto3" json:"lightIntensity,omitempty"` - OptimalTempPeriod string `protobuf:"bytes,10,opt,name=optimalTempPeriod,proto3" json:"optimalTempPeriod,omitempty"` - ClassId string `protobuf:"bytes,11,opt,name=classId,proto3" json:"classId,omitempty"` - DistributionArea string `protobuf:"bytes,12,opt,name=distributionArea,proto3" json:"distributionArea,omitempty"` - LifeCycle string `protobuf:"bytes,13,opt,name=lifeCycle,proto3" json:"lifeCycle,omitempty"` - ClassIds []string `protobuf:"bytes,14,rep,name=classIds,proto3" json:"classIds,omitempty"` - OssIds []string `protobuf:"bytes,15,rep,name=ossIds,proto3" json:"ossIds,omitempty"` - RelatedWikiIds []string `protobuf:"bytes,16,rep,name=relatedWikiIds,proto3" json:"relatedWikiIds,omitempty"` - ReproductionMethod string `protobuf:"bytes,17,opt,name=reproductionMethod,proto3" json:"reproductionMethod,omitempty"` - PestsDiseases string `protobuf:"bytes,18,opt,name=pestsDiseases,proto3" json:"pestsDiseases,omitempty"` - LightType string `protobuf:"bytes,19,opt,name=lightType,proto3" json:"lightType,omitempty"` - Stem string `protobuf:"bytes,20,opt,name=stem,proto3" json:"stem,omitempty"` - Fruit string `protobuf:"bytes,21,opt,name=fruit,proto3" json:"fruit,omitempty"` - FoliageType string `protobuf:"bytes,22,opt,name=foliageType,proto3" json:"foliageType,omitempty"` - FoliageColor string `protobuf:"bytes,23,opt,name=foliageColor,proto3" json:"foliageColor,omitempty"` - FoliageShape string `protobuf:"bytes,24,opt,name=foliageShape,proto3" json:"foliageShape,omitempty"` - Height int32 `protobuf:"varint,25,opt,name=height,proto3" json:"height,omitempty"` - FloweringPeriod string `protobuf:"bytes,26,opt,name=floweringPeriod,proto3" json:"floweringPeriod,omitempty"` - FloweringColor string `protobuf:"bytes,27,opt,name=floweringColor,proto3" json:"floweringColor,omitempty"` - FloweringShape string `protobuf:"bytes,28,opt,name=floweringShape,proto3" json:"floweringShape,omitempty"` - FloweringDiameter int32 `protobuf:"varint,29,opt,name=floweringDiameter,proto3" json:"floweringDiameter,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateWikiReq) Reset() { - *x = UpdateWikiReq{} - mi := &file_pb_plant_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateWikiReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateWikiReq) ProtoMessage() {} - -func (x *UpdateWikiReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[29] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateWikiReq.ProtoReflect.Descriptor instead. -func (*UpdateWikiReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{29} -} - -func (x *UpdateWikiReq) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateWikiReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UpdateWikiReq) GetLatinName() string { - if x != nil { - return x.LatinName - } - return "" -} - -func (x *UpdateWikiReq) GetAliases() string { - if x != nil { - return x.Aliases - } - return "" -} - -func (x *UpdateWikiReq) GetGenus() string { - if x != nil { - return x.Genus - } - return "" -} - -func (x *UpdateWikiReq) GetDifficulty() int32 { - if x != nil { - return x.Difficulty - } - return 0 -} - -func (x *UpdateWikiReq) GetIsHot() int32 { - if x != nil { - return x.IsHot - } - return 0 -} - -func (x *UpdateWikiReq) GetGrowthHabit() string { - if x != nil { - return x.GrowthHabit - } - return "" -} - -func (x *UpdateWikiReq) GetLightIntensity() string { - if x != nil { - return x.LightIntensity - } - return "" -} - -func (x *UpdateWikiReq) GetOptimalTempPeriod() string { - if x != nil { - return x.OptimalTempPeriod - } - return "" -} - -func (x *UpdateWikiReq) GetClassId() string { - if x != nil { - return x.ClassId - } - return "" -} - -func (x *UpdateWikiReq) GetDistributionArea() string { - if x != nil { - return x.DistributionArea - } - return "" -} - -func (x *UpdateWikiReq) GetLifeCycle() string { - if x != nil { - return x.LifeCycle - } - return "" -} - -func (x *UpdateWikiReq) GetClassIds() []string { - if x != nil { - return x.ClassIds - } - return nil -} - -func (x *UpdateWikiReq) GetOssIds() []string { - if x != nil { - return x.OssIds - } - return nil -} - -func (x *UpdateWikiReq) GetRelatedWikiIds() []string { - if x != nil { - return x.RelatedWikiIds - } - return nil -} - -func (x *UpdateWikiReq) GetReproductionMethod() string { - if x != nil { - return x.ReproductionMethod - } - return "" -} - -func (x *UpdateWikiReq) GetPestsDiseases() string { - if x != nil { - return x.PestsDiseases - } - return "" -} - -func (x *UpdateWikiReq) GetLightType() string { - if x != nil { - return x.LightType - } - return "" -} - -func (x *UpdateWikiReq) GetStem() string { - if x != nil { - return x.Stem - } - return "" -} - -func (x *UpdateWikiReq) GetFruit() string { - if x != nil { - return x.Fruit - } - return "" -} - -func (x *UpdateWikiReq) GetFoliageType() string { - if x != nil { - return x.FoliageType - } - return "" -} - -func (x *UpdateWikiReq) GetFoliageColor() string { - if x != nil { - return x.FoliageColor - } - return "" -} - -func (x *UpdateWikiReq) GetFoliageShape() string { - if x != nil { - return x.FoliageShape - } - return "" -} - -func (x *UpdateWikiReq) GetHeight() int32 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *UpdateWikiReq) GetFloweringPeriod() string { - if x != nil { - return x.FloweringPeriod - } - return "" -} - -func (x *UpdateWikiReq) GetFloweringColor() string { - if x != nil { - return x.FloweringColor - } - return "" -} - -func (x *UpdateWikiReq) GetFloweringShape() string { - if x != nil { - return x.FloweringShape - } - return "" -} - -func (x *UpdateWikiReq) GetFloweringDiameter() int32 { - if x != nil { - return x.FloweringDiameter - } - return 0 -} - -type WikiClassInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - OssId string `protobuf:"bytes,3,opt,name=ossId,proto3" json:"ossId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *WikiClassInfo) Reset() { - *x = WikiClassInfo{} - mi := &file_pb_plant_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *WikiClassInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WikiClassInfo) ProtoMessage() {} - -func (x *WikiClassInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[30] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WikiClassInfo.ProtoReflect.Descriptor instead. -func (*WikiClassInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{30} -} - -func (x *WikiClassInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *WikiClassInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *WikiClassInfo) GetOssId() string { - if x != nil { - return x.OssId - } - return "" -} - -type WikiClassListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*WikiClassInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *WikiClassListResp) Reset() { - *x = WikiClassListResp{} - mi := &file_pb_plant_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *WikiClassListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WikiClassListResp) ProtoMessage() {} - -func (x *WikiClassListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[31] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WikiClassListResp.ProtoReflect.Descriptor instead. -func (*WikiClassListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{31} -} - -func (x *WikiClassListResp) GetList() []*WikiClassInfo { - if x != nil { - return x.List - } - return nil -} - -type CreateWikiClassReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateWikiClassReq) Reset() { - *x = CreateWikiClassReq{} - mi := &file_pb_plant_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateWikiClassReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateWikiClassReq) ProtoMessage() {} - -func (x *CreateWikiClassReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[32] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateWikiClassReq.ProtoReflect.Descriptor instead. -func (*CreateWikiClassReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{32} -} - -func (x *CreateWikiClassReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateWikiClassReq) GetIcon() string { - if x != nil { - return x.Icon - } - return "" -} - -type UpdateWikiClassReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateWikiClassReq) Reset() { - *x = UpdateWikiClassReq{} - mi := &file_pb_plant_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateWikiClassReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateWikiClassReq) ProtoMessage() {} - -func (x *UpdateWikiClassReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[33] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateWikiClassReq.ProtoReflect.Descriptor instead. -func (*UpdateWikiClassReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{33} -} - -func (x *UpdateWikiClassReq) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateWikiClassReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UpdateWikiClassReq) GetIcon() string { - if x != nil { - return x.Icon - } - return "" -} - -type ToggleStarReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ToggleStarReq) Reset() { - *x = ToggleStarReq{} - mi := &file_pb_plant_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ToggleStarReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ToggleStarReq) ProtoMessage() {} - -func (x *ToggleStarReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[34] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ToggleStarReq.ProtoReflect.Descriptor instead. -func (*ToggleStarReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{34} -} - -func (x *ToggleStarReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ToggleStarReq) GetTargetId() string { - if x != nil { - return x.TargetId - } - return "" -} - -func (x *ToggleStarReq) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -type ClassifyLogInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` - ImageUrl string `protobuf:"bytes,3,opt,name=imageUrl,proto3" json:"imageUrl,omitempty"` - Result string `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` - CreatedAt string `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ClassifyLogInfo) Reset() { - *x = ClassifyLogInfo{} - mi := &file_pb_plant_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ClassifyLogInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClassifyLogInfo) ProtoMessage() {} - -func (x *ClassifyLogInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[35] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClassifyLogInfo.ProtoReflect.Descriptor instead. -func (*ClassifyLogInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{35} -} - -func (x *ClassifyLogInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ClassifyLogInfo) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ClassifyLogInfo) GetImageUrl() string { - if x != nil { - return x.ImageUrl - } - return "" -} - -func (x *ClassifyLogInfo) GetResult() string { - if x != nil { - return x.Result - } - return "" -} - -func (x *ClassifyLogInfo) GetCreatedAt() string { - if x != nil { - return x.CreatedAt - } - return "" -} - -type ClassifyLogListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*ClassifyLogInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ClassifyLogListResp) Reset() { - *x = ClassifyLogListResp{} - mi := &file_pb_plant_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ClassifyLogListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClassifyLogListResp) ProtoMessage() {} - -func (x *ClassifyLogListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[36] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClassifyLogListResp.ProtoReflect.Descriptor instead. -func (*ClassifyLogListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{36} -} - -func (x *ClassifyLogListResp) GetList() []*ClassifyLogInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *ClassifyLogListResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -type PostInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` - Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` - ViewCount int32 `protobuf:"varint,5,opt,name=viewCount,proto3" json:"viewCount,omitempty"` - CommentCount int32 `protobuf:"varint,6,opt,name=commentCount,proto3" json:"commentCount,omitempty"` - LikeCount int32 `protobuf:"varint,7,opt,name=likeCount,proto3" json:"likeCount,omitempty"` - StarCount int32 `protobuf:"varint,8,opt,name=starCount,proto3" json:"starCount,omitempty"` - Location string `protobuf:"bytes,9,opt,name=location,proto3" json:"location,omitempty"` - CreatedAt int64 `protobuf:"varint,10,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - TopicId string `protobuf:"bytes,11,opt,name=topicId,proto3" json:"topicId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PostInfo) Reset() { - *x = PostInfo{} - mi := &file_pb_plant_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PostInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PostInfo) ProtoMessage() {} - -func (x *PostInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[37] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PostInfo.ProtoReflect.Descriptor instead. -func (*PostInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{37} -} - -func (x *PostInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PostInfo) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *PostInfo) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *PostInfo) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *PostInfo) GetViewCount() int32 { - if x != nil { - return x.ViewCount - } - return 0 -} - -func (x *PostInfo) GetCommentCount() int32 { - if x != nil { - return x.CommentCount - } - return 0 -} - -func (x *PostInfo) GetLikeCount() int32 { - if x != nil { - return x.LikeCount - } - return 0 -} - -func (x *PostInfo) GetStarCount() int32 { - if x != nil { - return x.StarCount - } - return 0 -} - -func (x *PostInfo) GetLocation() string { - if x != nil { - return x.Location - } - return "" -} - -func (x *PostInfo) GetCreatedAt() int64 { - if x != nil { - return x.CreatedAt - } - return 0 -} - -func (x *PostInfo) GetTopicId() string { - if x != nil { - return x.TopicId - } - return "" -} - -type CreatePostReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` - ImgIds []string `protobuf:"bytes,5,rep,name=imgIds,proto3" json:"imgIds,omitempty"` - TopicId string `protobuf:"bytes,6,opt,name=topicId,proto3" json:"topicId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreatePostReq) Reset() { - *x = CreatePostReq{} - mi := &file_pb_plant_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreatePostReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreatePostReq) ProtoMessage() {} - -func (x *CreatePostReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[38] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreatePostReq.ProtoReflect.Descriptor instead. -func (*CreatePostReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{38} -} - -func (x *CreatePostReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *CreatePostReq) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *CreatePostReq) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *CreatePostReq) GetLocation() string { - if x != nil { - return x.Location - } - return "" -} - -func (x *CreatePostReq) GetImgIds() []string { - if x != nil { - return x.ImgIds - } - return nil -} - -func (x *CreatePostReq) GetTopicId() string { - if x != nil { - return x.TopicId - } - return "" -} - -type PostListReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` - TopicId string `protobuf:"bytes,4,opt,name=topicId,proto3" json:"topicId,omitempty"` - UserId string `protobuf:"bytes,5,opt,name=userId,proto3" json:"userId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PostListReq) Reset() { - *x = PostListReq{} - mi := &file_pb_plant_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PostListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PostListReq) ProtoMessage() {} - -func (x *PostListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[39] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PostListReq.ProtoReflect.Descriptor instead. -func (*PostListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{39} -} - -func (x *PostListReq) GetCurrent() int32 { - if x != nil { - return x.Current - } - return 0 -} - -func (x *PostListReq) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *PostListReq) GetKeyword() string { - if x != nil { - return x.Keyword - } - return "" -} - -func (x *PostListReq) GetTopicId() string { - if x != nil { - return x.TopicId - } - return "" -} - -func (x *PostListReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type PostListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*PostInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PostListResp) Reset() { - *x = PostListResp{} - mi := &file_pb_plant_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PostListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PostListResp) ProtoMessage() {} - -func (x *PostListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[40] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PostListResp.ProtoReflect.Descriptor instead. -func (*PostListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{40} -} - -func (x *PostListResp) GetList() []*PostInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *PostListResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -type PostDetailResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Post *PostInfo `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"` - Comments []*PostCommentInfo `protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PostDetailResp) Reset() { - *x = PostDetailResp{} - mi := &file_pb_plant_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PostDetailResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PostDetailResp) ProtoMessage() {} - -func (x *PostDetailResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[41] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PostDetailResp.ProtoReflect.Descriptor instead. -func (*PostDetailResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{41} -} - -func (x *PostDetailResp) GetPost() *PostInfo { - if x != nil { - return x.Post - } - return nil -} - -func (x *PostDetailResp) GetComments() []*PostCommentInfo { - if x != nil { - return x.Comments - } - return nil -} - -type PostCommentInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` - Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - ParentId string `protobuf:"bytes,4,opt,name=parentId,proto3" json:"parentId,omitempty"` - CreatedAt int64 `protobuf:"varint,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *PostCommentInfo) Reset() { - *x = PostCommentInfo{} - mi := &file_pb_plant_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *PostCommentInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PostCommentInfo) ProtoMessage() {} - -func (x *PostCommentInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[42] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PostCommentInfo.ProtoReflect.Descriptor instead. -func (*PostCommentInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{42} -} - -func (x *PostCommentInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PostCommentInfo) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *PostCommentInfo) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *PostCommentInfo) GetParentId() string { - if x != nil { - return x.ParentId - } - return "" -} - -func (x *PostCommentInfo) GetCreatedAt() int64 { - if x != nil { - return x.CreatedAt - } - return 0 -} - -type CommentPostReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - PostId string `protobuf:"bytes,2,opt,name=postId,proto3" json:"postId,omitempty"` - Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` - ParentId string `protobuf:"bytes,4,opt,name=parentId,proto3" json:"parentId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CommentPostReq) Reset() { - *x = CommentPostReq{} - mi := &file_pb_plant_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CommentPostReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommentPostReq) ProtoMessage() {} - -func (x *CommentPostReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[43] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CommentPostReq.ProtoReflect.Descriptor instead. -func (*CommentPostReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{43} -} - -func (x *CommentPostReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *CommentPostReq) GetPostId() string { - if x != nil { - return x.PostId - } - return "" -} - -func (x *CommentPostReq) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - -func (x *CommentPostReq) GetParentId() string { - if x != nil { - return x.ParentId - } - return "" -} - -type LikePostReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - PostId string `protobuf:"bytes,2,opt,name=postId,proto3" json:"postId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *LikePostReq) Reset() { - *x = LikePostReq{} - mi := &file_pb_plant_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *LikePostReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LikePostReq) ProtoMessage() {} - -func (x *LikePostReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[44] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LikePostReq.ProtoReflect.Descriptor instead. -func (*LikePostReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{44} -} - -func (x *LikePostReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *LikePostReq) GetPostId() string { - if x != nil { - return x.PostId - } - return "" -} - -type TopicInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - PostCount int32 `protobuf:"varint,3,opt,name=postCount,proto3" json:"postCount,omitempty"` - Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"` - Desc string `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty"` - Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` - Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` - StartTime string `protobuf:"bytes,8,opt,name=startTime,proto3" json:"startTime,omitempty"` - EndTime string `protobuf:"bytes,9,opt,name=endTime,proto3" json:"endTime,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *TopicInfo) Reset() { - *x = TopicInfo{} - mi := &file_pb_plant_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TopicInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TopicInfo) ProtoMessage() {} - -func (x *TopicInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[45] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TopicInfo.ProtoReflect.Descriptor instead. -func (*TopicInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{45} -} - -func (x *TopicInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *TopicInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TopicInfo) GetPostCount() int32 { - if x != nil { - return x.PostCount - } - return 0 -} - -func (x *TopicInfo) GetIcon() string { - if x != nil { - return x.Icon - } - return "" -} - -func (x *TopicInfo) GetDesc() string { - if x != nil { - return x.Desc - } - return "" -} - -func (x *TopicInfo) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *TopicInfo) GetRemark() string { - if x != nil { - return x.Remark - } - return "" -} - -func (x *TopicInfo) GetStartTime() string { - if x != nil { - return x.StartTime - } - return "" -} - -func (x *TopicInfo) GetEndTime() string { - if x != nil { - return x.EndTime - } - return "" -} - -type TopicListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*TopicInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *TopicListResp) Reset() { - *x = TopicListResp{} - mi := &file_pb_plant_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TopicListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TopicListResp) ProtoMessage() {} - -func (x *TopicListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[46] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TopicListResp.ProtoReflect.Descriptor instead. -func (*TopicListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{46} -} - -func (x *TopicListResp) GetList() []*TopicInfo { - if x != nil { - return x.List - } - return nil -} - -type CreateTopicReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` - Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` - Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` - Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` - StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime,omitempty"` - EndTime string `protobuf:"bytes,7,opt,name=endTime,proto3" json:"endTime,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateTopicReq) Reset() { - *x = CreateTopicReq{} - mi := &file_pb_plant_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateTopicReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTopicReq) ProtoMessage() {} - -func (x *CreateTopicReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[47] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTopicReq.ProtoReflect.Descriptor instead. -func (*CreateTopicReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{47} -} - -func (x *CreateTopicReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateTopicReq) GetIcon() string { - if x != nil { - return x.Icon - } - return "" -} - -func (x *CreateTopicReq) GetDesc() string { - if x != nil { - return x.Desc - } - return "" -} - -func (x *CreateTopicReq) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *CreateTopicReq) GetRemark() string { - if x != nil { - return x.Remark - } - return "" -} - -func (x *CreateTopicReq) GetStartTime() string { - if x != nil { - return x.StartTime - } - return "" -} - -func (x *CreateTopicReq) GetEndTime() string { - if x != nil { - return x.EndTime - } - return "" -} - -type UpdateTopicReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"` - Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"` - Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` - Remark string `protobuf:"bytes,6,opt,name=remark,proto3" json:"remark,omitempty"` - StartTime string `protobuf:"bytes,7,opt,name=startTime,proto3" json:"startTime,omitempty"` - EndTime string `protobuf:"bytes,8,opt,name=endTime,proto3" json:"endTime,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateTopicReq) Reset() { - *x = UpdateTopicReq{} - mi := &file_pb_plant_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateTopicReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateTopicReq) ProtoMessage() {} - -func (x *UpdateTopicReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[48] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateTopicReq.ProtoReflect.Descriptor instead. -func (*UpdateTopicReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{48} -} - -func (x *UpdateTopicReq) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateTopicReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UpdateTopicReq) GetIcon() string { - if x != nil { - return x.Icon - } - return "" -} - -func (x *UpdateTopicReq) GetDesc() string { - if x != nil { - return x.Desc - } - return "" -} - -func (x *UpdateTopicReq) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *UpdateTopicReq) GetRemark() string { - if x != nil { - return x.Remark - } - return "" -} - -func (x *UpdateTopicReq) GetStartTime() string { - if x != nil { - return x.StartTime - } - return "" -} - -func (x *UpdateTopicReq) GetEndTime() string { - if x != nil { - return x.EndTime - } - return "" -} - -type ExchangeItemInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` - ImgId string `protobuf:"bytes,4,opt,name=imgId,proto3" json:"imgId,omitempty"` - Cost int64 `protobuf:"varint,5,opt,name=cost,proto3" json:"cost,omitempty"` - Stock int32 `protobuf:"varint,6,opt,name=stock,proto3" json:"stock,omitempty"` - Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExchangeItemInfo) Reset() { - *x = ExchangeItemInfo{} - mi := &file_pb_plant_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExchangeItemInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExchangeItemInfo) ProtoMessage() {} - -func (x *ExchangeItemInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[49] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExchangeItemInfo.ProtoReflect.Descriptor instead. -func (*ExchangeItemInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{49} -} - -func (x *ExchangeItemInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ExchangeItemInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ExchangeItemInfo) GetDesc() string { - if x != nil { - return x.Desc - } - return "" -} - -func (x *ExchangeItemInfo) GetImgId() string { - if x != nil { - return x.ImgId - } - return "" -} - -func (x *ExchangeItemInfo) GetCost() int64 { - if x != nil { - return x.Cost - } - return 0 -} - -func (x *ExchangeItemInfo) GetStock() int32 { - if x != nil { - return x.Stock - } - return 0 -} - -func (x *ExchangeItemInfo) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -type ExchangeItemListReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExchangeItemListReq) Reset() { - *x = ExchangeItemListReq{} - mi := &file_pb_plant_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExchangeItemListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExchangeItemListReq) ProtoMessage() {} - -func (x *ExchangeItemListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[50] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExchangeItemListReq.ProtoReflect.Descriptor instead. -func (*ExchangeItemListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{50} -} - -func (x *ExchangeItemListReq) GetCurrent() int32 { - if x != nil { - return x.Current - } - return 0 -} - -func (x *ExchangeItemListReq) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ExchangeItemListReq) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -type ExchangeItemListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*ExchangeItemInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExchangeItemListResp) Reset() { - *x = ExchangeItemListResp{} - mi := &file_pb_plant_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExchangeItemListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExchangeItemListResp) ProtoMessage() {} - -func (x *ExchangeItemListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[51] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExchangeItemListResp.ProtoReflect.Descriptor instead. -func (*ExchangeItemListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{51} -} - -func (x *ExchangeItemListResp) GetList() []*ExchangeItemInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *ExchangeItemListResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -type CreateExchangeOrderReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - ItemId string `protobuf:"bytes,2,opt,name=itemId,proto3" json:"itemId,omitempty"` - Quantity int32 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"` - RecipientName string `protobuf:"bytes,4,opt,name=recipientName,proto3" json:"recipientName,omitempty"` - Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` - Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateExchangeOrderReq) Reset() { - *x = CreateExchangeOrderReq{} - mi := &file_pb_plant_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateExchangeOrderReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateExchangeOrderReq) ProtoMessage() {} - -func (x *CreateExchangeOrderReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[52] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateExchangeOrderReq.ProtoReflect.Descriptor instead. -func (*CreateExchangeOrderReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{52} -} - -func (x *CreateExchangeOrderReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *CreateExchangeOrderReq) GetItemId() string { - if x != nil { - return x.ItemId - } - return "" -} - -func (x *CreateExchangeOrderReq) GetQuantity() int32 { - if x != nil { - return x.Quantity - } - return 0 -} - -func (x *CreateExchangeOrderReq) GetRecipientName() string { - if x != nil { - return x.RecipientName - } - return "" -} - -func (x *CreateExchangeOrderReq) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *CreateExchangeOrderReq) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -type CreateExchangeItemReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` - ImgId string `protobuf:"bytes,3,opt,name=imgId,proto3" json:"imgId,omitempty"` - Cost int64 `protobuf:"varint,4,opt,name=cost,proto3" json:"cost,omitempty"` - Stock int32 `protobuf:"varint,5,opt,name=stock,proto3" json:"stock,omitempty"` - Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` - CostSunlight int64 `protobuf:"varint,7,opt,name=costSunlight,proto3" json:"costSunlight,omitempty"` - LimitPerUser int32 `protobuf:"varint,8,opt,name=limitPerUser,proto3" json:"limitPerUser,omitempty"` - Sort int32 `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"` - StartTime string `protobuf:"bytes,10,opt,name=startTime,proto3" json:"startTime,omitempty"` - EndTime string `protobuf:"bytes,11,opt,name=endTime,proto3" json:"endTime,omitempty"` - ImageId string `protobuf:"bytes,12,opt,name=imageId,proto3" json:"imageId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateExchangeItemReq) Reset() { - *x = CreateExchangeItemReq{} - mi := &file_pb_plant_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateExchangeItemReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateExchangeItemReq) ProtoMessage() {} - -func (x *CreateExchangeItemReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[53] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateExchangeItemReq.ProtoReflect.Descriptor instead. -func (*CreateExchangeItemReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{53} -} - -func (x *CreateExchangeItemReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateExchangeItemReq) GetDesc() string { - if x != nil { - return x.Desc - } - return "" -} - -func (x *CreateExchangeItemReq) GetImgId() string { - if x != nil { - return x.ImgId - } - return "" -} - -func (x *CreateExchangeItemReq) GetCost() int64 { - if x != nil { - return x.Cost - } - return 0 -} - -func (x *CreateExchangeItemReq) GetStock() int32 { - if x != nil { - return x.Stock - } - return 0 -} - -func (x *CreateExchangeItemReq) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *CreateExchangeItemReq) GetCostSunlight() int64 { - if x != nil { - return x.CostSunlight - } - return 0 -} - -func (x *CreateExchangeItemReq) GetLimitPerUser() int32 { - if x != nil { - return x.LimitPerUser - } - return 0 -} - -func (x *CreateExchangeItemReq) GetSort() int32 { - if x != nil { - return x.Sort - } - return 0 -} - -func (x *CreateExchangeItemReq) GetStartTime() string { - if x != nil { - return x.StartTime - } - return "" -} - -func (x *CreateExchangeItemReq) GetEndTime() string { - if x != nil { - return x.EndTime - } - return "" -} - -func (x *CreateExchangeItemReq) GetImageId() string { - if x != nil { - return x.ImageId - } - return "" -} - -type UpdateExchangeItemReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` - ImgId string `protobuf:"bytes,4,opt,name=imgId,proto3" json:"imgId,omitempty"` - Cost int64 `protobuf:"varint,5,opt,name=cost,proto3" json:"cost,omitempty"` - Stock int32 `protobuf:"varint,6,opt,name=stock,proto3" json:"stock,omitempty"` - Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` - Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` - CostSunlight int64 `protobuf:"varint,9,opt,name=costSunlight,proto3" json:"costSunlight,omitempty"` - LimitPerUser int32 `protobuf:"varint,10,opt,name=limitPerUser,proto3" json:"limitPerUser,omitempty"` - Sort int32 `protobuf:"varint,11,opt,name=sort,proto3" json:"sort,omitempty"` - StartTime string `protobuf:"bytes,12,opt,name=startTime,proto3" json:"startTime,omitempty"` - EndTime string `protobuf:"bytes,13,opt,name=endTime,proto3" json:"endTime,omitempty"` - ImageId string `protobuf:"bytes,14,opt,name=imageId,proto3" json:"imageId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateExchangeItemReq) Reset() { - *x = UpdateExchangeItemReq{} - mi := &file_pb_plant_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateExchangeItemReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateExchangeItemReq) ProtoMessage() {} - -func (x *UpdateExchangeItemReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[54] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateExchangeItemReq.ProtoReflect.Descriptor instead. -func (*UpdateExchangeItemReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{54} -} - -func (x *UpdateExchangeItemReq) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateExchangeItemReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UpdateExchangeItemReq) GetDesc() string { - if x != nil { - return x.Desc - } - return "" -} - -func (x *UpdateExchangeItemReq) GetImgId() string { - if x != nil { - return x.ImgId - } - return "" -} - -func (x *UpdateExchangeItemReq) GetCost() int64 { - if x != nil { - return x.Cost - } - return 0 -} - -func (x *UpdateExchangeItemReq) GetStock() int32 { - if x != nil { - return x.Stock - } - return 0 -} - -func (x *UpdateExchangeItemReq) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *UpdateExchangeItemReq) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *UpdateExchangeItemReq) GetCostSunlight() int64 { - if x != nil { - return x.CostSunlight - } - return 0 -} - -func (x *UpdateExchangeItemReq) GetLimitPerUser() int32 { - if x != nil { - return x.LimitPerUser - } - return 0 -} - -func (x *UpdateExchangeItemReq) GetSort() int32 { - if x != nil { - return x.Sort - } - return 0 -} - -func (x *UpdateExchangeItemReq) GetStartTime() string { - if x != nil { - return x.StartTime - } - return "" -} - -func (x *UpdateExchangeItemReq) GetEndTime() string { - if x != nil { - return x.EndTime - } - return "" -} - -func (x *UpdateExchangeItemReq) GetImageId() string { - if x != nil { - return x.ImageId - } - return "" -} - -type ExchangeOrderInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` - ItemId string `protobuf:"bytes,3,opt,name=itemId,proto3" json:"itemId,omitempty"` - ItemName string `protobuf:"bytes,4,opt,name=itemName,proto3" json:"itemName,omitempty"` - Cost int64 `protobuf:"varint,5,opt,name=cost,proto3" json:"cost,omitempty"` - Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` - Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` - CreatedAt string `protobuf:"bytes,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - Quantity int32 `protobuf:"varint,9,opt,name=quantity,proto3" json:"quantity,omitempty"` - ItemType string `protobuf:"bytes,10,opt,name=itemType,proto3" json:"itemType,omitempty"` - RecipientName string `protobuf:"bytes,11,opt,name=recipientName,proto3" json:"recipientName,omitempty"` - Phone string `protobuf:"bytes,12,opt,name=phone,proto3" json:"phone,omitempty"` - TrackingNo string `protobuf:"bytes,13,opt,name=trackingNo,proto3" json:"trackingNo,omitempty"` - Remark string `protobuf:"bytes,14,opt,name=remark,proto3" json:"remark,omitempty"` - CompletedAt string `protobuf:"bytes,15,opt,name=completedAt,proto3" json:"completedAt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExchangeOrderInfo) Reset() { - *x = ExchangeOrderInfo{} - mi := &file_pb_plant_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExchangeOrderInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExchangeOrderInfo) ProtoMessage() {} - -func (x *ExchangeOrderInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[55] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExchangeOrderInfo.ProtoReflect.Descriptor instead. -func (*ExchangeOrderInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{55} -} - -func (x *ExchangeOrderInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ExchangeOrderInfo) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ExchangeOrderInfo) GetItemId() string { - if x != nil { - return x.ItemId - } - return "" -} - -func (x *ExchangeOrderInfo) GetItemName() string { - if x != nil { - return x.ItemName - } - return "" -} - -func (x *ExchangeOrderInfo) GetCost() int64 { - if x != nil { - return x.Cost - } - return 0 -} - -func (x *ExchangeOrderInfo) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *ExchangeOrderInfo) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *ExchangeOrderInfo) GetCreatedAt() string { - if x != nil { - return x.CreatedAt - } - return "" -} - -func (x *ExchangeOrderInfo) GetQuantity() int32 { - if x != nil { - return x.Quantity - } - return 0 -} - -func (x *ExchangeOrderInfo) GetItemType() string { - if x != nil { - return x.ItemType - } - return "" -} - -func (x *ExchangeOrderInfo) GetRecipientName() string { - if x != nil { - return x.RecipientName - } - return "" -} - -func (x *ExchangeOrderInfo) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *ExchangeOrderInfo) GetTrackingNo() string { - if x != nil { - return x.TrackingNo - } - return "" -} - -func (x *ExchangeOrderInfo) GetRemark() string { - if x != nil { - return x.Remark - } - return "" -} - -func (x *ExchangeOrderInfo) GetCompletedAt() string { - if x != nil { - return x.CompletedAt - } - return "" -} - -type ExchangeOrderListReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"` - Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExchangeOrderListReq) Reset() { - *x = ExchangeOrderListReq{} - mi := &file_pb_plant_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExchangeOrderListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExchangeOrderListReq) ProtoMessage() {} - -func (x *ExchangeOrderListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[56] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExchangeOrderListReq.ProtoReflect.Descriptor instead. -func (*ExchangeOrderListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{56} -} - -func (x *ExchangeOrderListReq) GetCurrent() int32 { - if x != nil { - return x.Current - } - return 0 -} - -func (x *ExchangeOrderListReq) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ExchangeOrderListReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ExchangeOrderListReq) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -type ExchangeOrderListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*ExchangeOrderInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ExchangeOrderListResp) Reset() { - *x = ExchangeOrderListResp{} - mi := &file_pb_plant_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ExchangeOrderListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExchangeOrderListResp) ProtoMessage() {} - -func (x *ExchangeOrderListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[57] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExchangeOrderListResp.ProtoReflect.Descriptor instead. -func (*ExchangeOrderListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{57} -} - -func (x *ExchangeOrderListResp) GetList() []*ExchangeOrderInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *ExchangeOrderListResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -type UpdateExchangeOrderReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` - TrackingNo string `protobuf:"bytes,3,opt,name=trackingNo,proto3" json:"trackingNo,omitempty"` - Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateExchangeOrderReq) Reset() { - *x = UpdateExchangeOrderReq{} - mi := &file_pb_plant_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateExchangeOrderReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateExchangeOrderReq) ProtoMessage() {} - -func (x *UpdateExchangeOrderReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[58] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateExchangeOrderReq.ProtoReflect.Descriptor instead. -func (*UpdateExchangeOrderReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{58} -} - -func (x *UpdateExchangeOrderReq) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateExchangeOrderReq) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *UpdateExchangeOrderReq) GetTrackingNo() string { - if x != nil { - return x.TrackingNo - } - return "" -} - -func (x *UpdateExchangeOrderReq) GetRemark() string { - if x != nil { - return x.Remark - } - return "" -} - -type MediaCheckCallbackReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - TraceId string `protobuf:"bytes,1,opt,name=traceId,proto3" json:"traceId,omitempty"` - PostId string `protobuf:"bytes,2,opt,name=postId,proto3" json:"postId,omitempty"` - OssId string `protobuf:"bytes,3,opt,name=ossId,proto3" json:"ossId,omitempty"` - UserId string `protobuf:"bytes,4,opt,name=userId,proto3" json:"userId,omitempty"` - Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` - Type int32 `protobuf:"varint,6,opt,name=type,proto3" json:"type,omitempty"` - ErrMsg string `protobuf:"bytes,7,opt,name=errMsg,proto3" json:"errMsg,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MediaCheckCallbackReq) Reset() { - *x = MediaCheckCallbackReq{} - mi := &file_pb_plant_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MediaCheckCallbackReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MediaCheckCallbackReq) ProtoMessage() {} - -func (x *MediaCheckCallbackReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[59] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MediaCheckCallbackReq.ProtoReflect.Descriptor instead. -func (*MediaCheckCallbackReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{59} -} - -func (x *MediaCheckCallbackReq) GetTraceId() string { - if x != nil { - return x.TraceId - } - return "" -} - -func (x *MediaCheckCallbackReq) GetPostId() string { - if x != nil { - return x.PostId - } - return "" -} - -func (x *MediaCheckCallbackReq) GetOssId() string { - if x != nil { - return x.OssId - } - return "" -} - -func (x *MediaCheckCallbackReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *MediaCheckCallbackReq) GetStatus() int32 { - if x != nil { - return x.Status - } - return 0 -} - -func (x *MediaCheckCallbackReq) GetType() int32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *MediaCheckCallbackReq) GetErrMsg() string { - if x != nil { - return x.ErrMsg - } - return "" -} - -type SaveAiChatHistoryReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - Question string `protobuf:"bytes,2,opt,name=question,proto3" json:"question,omitempty"` - Answer string `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SaveAiChatHistoryReq) Reset() { - *x = SaveAiChatHistoryReq{} - mi := &file_pb_plant_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SaveAiChatHistoryReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SaveAiChatHistoryReq) ProtoMessage() {} - -func (x *SaveAiChatHistoryReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[60] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SaveAiChatHistoryReq.ProtoReflect.Descriptor instead. -func (*SaveAiChatHistoryReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{60} -} - -func (x *SaveAiChatHistoryReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *SaveAiChatHistoryReq) GetQuestion() string { - if x != nil { - return x.Question - } - return "" -} - -func (x *SaveAiChatHistoryReq) GetAnswer() string { - if x != nil { - return x.Answer - } - return "" -} - -type SyncWikiVectorReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - WikiId string `protobuf:"bytes,1,opt,name=wikiId,proto3" json:"wikiId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SyncWikiVectorReq) Reset() { - *x = SyncWikiVectorReq{} - mi := &file_pb_plant_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SyncWikiVectorReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncWikiVectorReq) ProtoMessage() {} - -func (x *SyncWikiVectorReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[61] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncWikiVectorReq.ProtoReflect.Descriptor instead. -func (*SyncWikiVectorReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{61} -} - -func (x *SyncWikiVectorReq) GetWikiId() string { - if x != nil { - return x.WikiId - } - return "" -} - -type LevelConfigInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` - Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - MinSunlight int64 `protobuf:"varint,4,opt,name=minSunlight,proto3" json:"minSunlight,omitempty"` - Perks string `protobuf:"bytes,5,opt,name=perks,proto3" json:"perks,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *LevelConfigInfo) Reset() { - *x = LevelConfigInfo{} - mi := &file_pb_plant_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *LevelConfigInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LevelConfigInfo) ProtoMessage() {} - -func (x *LevelConfigInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[62] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LevelConfigInfo.ProtoReflect.Descriptor instead. -func (*LevelConfigInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{62} -} - -func (x *LevelConfigInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *LevelConfigInfo) GetLevel() int32 { - if x != nil { - return x.Level - } - return 0 -} - -func (x *LevelConfigInfo) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *LevelConfigInfo) GetMinSunlight() int64 { - if x != nil { - return x.MinSunlight - } - return 0 -} - -func (x *LevelConfigInfo) GetPerks() string { - if x != nil { - return x.Perks - } - return "" -} - -type LevelConfigListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*LevelConfigInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *LevelConfigListResp) Reset() { - *x = LevelConfigListResp{} - mi := &file_pb_plant_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *LevelConfigListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LevelConfigListResp) ProtoMessage() {} - -func (x *LevelConfigListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[63] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LevelConfigListResp.ProtoReflect.Descriptor instead. -func (*LevelConfigListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{63} -} - -func (x *LevelConfigListResp) GetList() []*LevelConfigInfo { - if x != nil { - return x.List - } - return nil -} - -type CreateLevelConfigReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - MinSunlight int64 `protobuf:"varint,3,opt,name=minSunlight,proto3" json:"minSunlight,omitempty"` - Perks string `protobuf:"bytes,4,opt,name=perks,proto3" json:"perks,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateLevelConfigReq) Reset() { - *x = CreateLevelConfigReq{} - mi := &file_pb_plant_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateLevelConfigReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateLevelConfigReq) ProtoMessage() {} - -func (x *CreateLevelConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[64] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateLevelConfigReq.ProtoReflect.Descriptor instead. -func (*CreateLevelConfigReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{64} -} - -func (x *CreateLevelConfigReq) GetLevel() int32 { - if x != nil { - return x.Level - } - return 0 -} - -func (x *CreateLevelConfigReq) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *CreateLevelConfigReq) GetMinSunlight() int64 { - if x != nil { - return x.MinSunlight - } - return 0 -} - -func (x *CreateLevelConfigReq) GetPerks() string { - if x != nil { - return x.Perks - } - return "" -} - -type UpdateLevelConfigReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` - Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - MinSunlight int64 `protobuf:"varint,4,opt,name=minSunlight,proto3" json:"minSunlight,omitempty"` - Perks string `protobuf:"bytes,5,opt,name=perks,proto3" json:"perks,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateLevelConfigReq) Reset() { - *x = UpdateLevelConfigReq{} - mi := &file_pb_plant_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateLevelConfigReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateLevelConfigReq) ProtoMessage() {} - -func (x *UpdateLevelConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[65] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateLevelConfigReq.ProtoReflect.Descriptor instead. -func (*UpdateLevelConfigReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{65} -} - -func (x *UpdateLevelConfigReq) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateLevelConfigReq) GetLevel() int32 { - if x != nil { - return x.Level - } - return 0 -} - -func (x *UpdateLevelConfigReq) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *UpdateLevelConfigReq) GetMinSunlight() int64 { - if x != nil { - return x.MinSunlight - } - return 0 -} - -func (x *UpdateLevelConfigReq) GetPerks() string { - if x != nil { - return x.Perks - } - return "" -} - -type BadgeConfigInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Dimension string `protobuf:"bytes,4,opt,name=dimension,proto3" json:"dimension,omitempty"` - GroupId string `protobuf:"bytes,5,opt,name=groupId,proto3" json:"groupId,omitempty"` - Tier int32 `protobuf:"varint,6,opt,name=tier,proto3" json:"tier,omitempty"` - TargetAction string `protobuf:"bytes,7,opt,name=targetAction,proto3" json:"targetAction,omitempty"` - Threshold int64 `protobuf:"varint,8,opt,name=threshold,proto3" json:"threshold,omitempty"` - RewardSunlight int64 `protobuf:"varint,9,opt,name=rewardSunlight,proto3" json:"rewardSunlight,omitempty"` - IconId string `protobuf:"bytes,10,opt,name=iconId,proto3" json:"iconId,omitempty"` - Sort int32 `protobuf:"varint,11,opt,name=sort,proto3" json:"sort,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *BadgeConfigInfo) Reset() { - *x = BadgeConfigInfo{} - mi := &file_pb_plant_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *BadgeConfigInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BadgeConfigInfo) ProtoMessage() {} - -func (x *BadgeConfigInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[66] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BadgeConfigInfo.ProtoReflect.Descriptor instead. -func (*BadgeConfigInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{66} -} - -func (x *BadgeConfigInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *BadgeConfigInfo) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *BadgeConfigInfo) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *BadgeConfigInfo) GetDimension() string { - if x != nil { - return x.Dimension - } - return "" -} - -func (x *BadgeConfigInfo) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -func (x *BadgeConfigInfo) GetTier() int32 { - if x != nil { - return x.Tier - } - return 0 -} - -func (x *BadgeConfigInfo) GetTargetAction() string { - if x != nil { - return x.TargetAction - } - return "" -} - -func (x *BadgeConfigInfo) GetThreshold() int64 { - if x != nil { - return x.Threshold - } - return 0 -} - -func (x *BadgeConfigInfo) GetRewardSunlight() int64 { - if x != nil { - return x.RewardSunlight - } - return 0 -} - -func (x *BadgeConfigInfo) GetIconId() string { - if x != nil { - return x.IconId - } - return "" -} - -func (x *BadgeConfigInfo) GetSort() int32 { - if x != nil { - return x.Sort - } - return 0 -} - -type BadgeConfigListReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - Dimension string `protobuf:"bytes,3,opt,name=dimension,proto3" json:"dimension,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *BadgeConfigListReq) Reset() { - *x = BadgeConfigListReq{} - mi := &file_pb_plant_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *BadgeConfigListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BadgeConfigListReq) ProtoMessage() {} - -func (x *BadgeConfigListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[67] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BadgeConfigListReq.ProtoReflect.Descriptor instead. -func (*BadgeConfigListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{67} -} - -func (x *BadgeConfigListReq) GetCurrent() int32 { - if x != nil { - return x.Current - } - return 0 -} - -func (x *BadgeConfigListReq) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *BadgeConfigListReq) GetDimension() string { - if x != nil { - return x.Dimension - } - return "" -} - -type BadgeConfigListResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*BadgeConfigInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *BadgeConfigListResp) Reset() { - *x = BadgeConfigListResp{} - mi := &file_pb_plant_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *BadgeConfigListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BadgeConfigListResp) ProtoMessage() {} - -func (x *BadgeConfigListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[68] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BadgeConfigListResp.ProtoReflect.Descriptor instead. -func (*BadgeConfigListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{68} -} - -func (x *BadgeConfigListResp) GetList() []*BadgeConfigInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *BadgeConfigListResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -type CreateBadgeConfigReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Dimension string `protobuf:"bytes,3,opt,name=dimension,proto3" json:"dimension,omitempty"` - GroupId string `protobuf:"bytes,4,opt,name=groupId,proto3" json:"groupId,omitempty"` - Tier int32 `protobuf:"varint,5,opt,name=tier,proto3" json:"tier,omitempty"` - TargetAction string `protobuf:"bytes,6,opt,name=targetAction,proto3" json:"targetAction,omitempty"` - Threshold int64 `protobuf:"varint,7,opt,name=threshold,proto3" json:"threshold,omitempty"` - RewardSunlight int64 `protobuf:"varint,8,opt,name=rewardSunlight,proto3" json:"rewardSunlight,omitempty"` - IconId string `protobuf:"bytes,9,opt,name=iconId,proto3" json:"iconId,omitempty"` - Sort int32 `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CreateBadgeConfigReq) Reset() { - *x = CreateBadgeConfigReq{} - mi := &file_pb_plant_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CreateBadgeConfigReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateBadgeConfigReq) ProtoMessage() {} - -func (x *CreateBadgeConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[69] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateBadgeConfigReq.ProtoReflect.Descriptor instead. -func (*CreateBadgeConfigReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{69} -} - -func (x *CreateBadgeConfigReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateBadgeConfigReq) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *CreateBadgeConfigReq) GetDimension() string { - if x != nil { - return x.Dimension - } - return "" -} - -func (x *CreateBadgeConfigReq) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -func (x *CreateBadgeConfigReq) GetTier() int32 { - if x != nil { - return x.Tier - } - return 0 -} - -func (x *CreateBadgeConfigReq) GetTargetAction() string { - if x != nil { - return x.TargetAction - } - return "" -} - -func (x *CreateBadgeConfigReq) GetThreshold() int64 { - if x != nil { - return x.Threshold - } - return 0 -} - -func (x *CreateBadgeConfigReq) GetRewardSunlight() int64 { - if x != nil { - return x.RewardSunlight - } - return 0 -} - -func (x *CreateBadgeConfigReq) GetIconId() string { - if x != nil { - return x.IconId - } - return "" -} - -func (x *CreateBadgeConfigReq) GetSort() int32 { - if x != nil { - return x.Sort - } - return 0 -} - -type UpdateBadgeConfigReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Dimension string `protobuf:"bytes,4,opt,name=dimension,proto3" json:"dimension,omitempty"` - GroupId string `protobuf:"bytes,5,opt,name=groupId,proto3" json:"groupId,omitempty"` - Tier int32 `protobuf:"varint,6,opt,name=tier,proto3" json:"tier,omitempty"` - TargetAction string `protobuf:"bytes,7,opt,name=targetAction,proto3" json:"targetAction,omitempty"` - Threshold int64 `protobuf:"varint,8,opt,name=threshold,proto3" json:"threshold,omitempty"` - RewardSunlight int64 `protobuf:"varint,9,opt,name=rewardSunlight,proto3" json:"rewardSunlight,omitempty"` - IconId string `protobuf:"bytes,10,opt,name=iconId,proto3" json:"iconId,omitempty"` - Sort int32 `protobuf:"varint,11,opt,name=sort,proto3" json:"sort,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *UpdateBadgeConfigReq) Reset() { - *x = UpdateBadgeConfigReq{} - mi := &file_pb_plant_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UpdateBadgeConfigReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateBadgeConfigReq) ProtoMessage() {} - -func (x *UpdateBadgeConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[70] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateBadgeConfigReq.ProtoReflect.Descriptor instead. -func (*UpdateBadgeConfigReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{70} -} - -func (x *UpdateBadgeConfigReq) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateBadgeConfigReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UpdateBadgeConfigReq) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *UpdateBadgeConfigReq) GetDimension() string { - if x != nil { - return x.Dimension - } - return "" -} - -func (x *UpdateBadgeConfigReq) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -func (x *UpdateBadgeConfigReq) GetTier() int32 { - if x != nil { - return x.Tier - } - return 0 -} - -func (x *UpdateBadgeConfigReq) GetTargetAction() string { - if x != nil { - return x.TargetAction - } - return "" -} - -func (x *UpdateBadgeConfigReq) GetThreshold() int64 { - if x != nil { - return x.Threshold - } - return 0 -} - -func (x *UpdateBadgeConfigReq) GetRewardSunlight() int64 { - if x != nil { - return x.RewardSunlight - } - return 0 -} - -func (x *UpdateBadgeConfigReq) GetIconId() string { - if x != nil { - return x.IconId - } - return "" -} - -func (x *UpdateBadgeConfigReq) GetSort() int32 { - if x != nil { - return x.Sort - } - return 0 -} - -type CompleteTaskReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - TaskId string `protobuf:"bytes,2,opt,name=taskId,proto3" json:"taskId,omitempty"` - Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CompleteTaskReq) Reset() { - *x = CompleteTaskReq{} - mi := &file_pb_plant_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CompleteTaskReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompleteTaskReq) ProtoMessage() {} - -func (x *CompleteTaskReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[71] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompleteTaskReq.ProtoReflect.Descriptor instead. -func (*CompleteTaskReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{71} -} - -func (x *CompleteTaskReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *CompleteTaskReq) GetTaskId() string { - if x != nil { - return x.TaskId - } - return "" -} - -func (x *CompleteTaskReq) GetRemark() string { - if x != nil { - return x.Remark - } - return "" -} - -type TaskCompletionResult struct { - state protoimpl.MessageState `protogen:"open.v1"` - IsLevelUp bool `protobuf:"varint,1,opt,name=isLevelUp,proto3" json:"isLevelUp,omitempty"` - CurrentLevel *LevelConfigInfo `protobuf:"bytes,2,opt,name=currentLevel,proto3" json:"currentLevel,omitempty"` - IsGetBadge bool `protobuf:"varint,3,opt,name=isGetBadge,proto3" json:"isGetBadge,omitempty"` - NewBadge *BadgeConfigInfo `protobuf:"bytes,4,opt,name=newBadge,proto3" json:"newBadge,omitempty"` - RewardSunlight int64 `protobuf:"varint,5,opt,name=rewardSunlight,proto3" json:"rewardSunlight,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *TaskCompletionResult) Reset() { - *x = TaskCompletionResult{} - mi := &file_pb_plant_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TaskCompletionResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskCompletionResult) ProtoMessage() {} - -func (x *TaskCompletionResult) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[72] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskCompletionResult.ProtoReflect.Descriptor instead. -func (*TaskCompletionResult) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{72} -} - -func (x *TaskCompletionResult) GetIsLevelUp() bool { - if x != nil { - return x.IsLevelUp - } - return false -} - -func (x *TaskCompletionResult) GetCurrentLevel() *LevelConfigInfo { - if x != nil { - return x.CurrentLevel - } - return nil -} - -func (x *TaskCompletionResult) GetIsGetBadge() bool { - if x != nil { - return x.IsGetBadge - } - return false -} - -func (x *TaskCompletionResult) GetNewBadge() *BadgeConfigInfo { - if x != nil { - return x.NewBadge - } - return nil -} - -func (x *TaskCompletionResult) GetRewardSunlight() int64 { - if x != nil { - return x.RewardSunlight - } - return 0 -} - -type BadgeGroupInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - GroupId string `protobuf:"bytes,1,opt,name=groupId,proto3" json:"groupId,omitempty"` - Dimension string `protobuf:"bytes,2,opt,name=dimension,proto3" json:"dimension,omitempty"` - Badges []*BadgeConfigInfo `protobuf:"bytes,3,rep,name=badges,proto3" json:"badges,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *BadgeGroupInfo) Reset() { - *x = BadgeGroupInfo{} - mi := &file_pb_plant_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *BadgeGroupInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BadgeGroupInfo) ProtoMessage() {} - -func (x *BadgeGroupInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[73] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BadgeGroupInfo.ProtoReflect.Descriptor instead. -func (*BadgeGroupInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{73} -} - -func (x *BadgeGroupInfo) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -func (x *BadgeGroupInfo) GetDimension() string { - if x != nil { - return x.Dimension - } - return "" -} - -func (x *BadgeGroupInfo) GetBadges() []*BadgeConfigInfo { - if x != nil { - return x.Badges - } - return nil -} - -type BadgeConfigTreeResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Groups []*BadgeGroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *BadgeConfigTreeResp) Reset() { - *x = BadgeConfigTreeResp{} - mi := &file_pb_plant_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *BadgeConfigTreeResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BadgeConfigTreeResp) ProtoMessage() {} - -func (x *BadgeConfigTreeResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[74] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BadgeConfigTreeResp.ProtoReflect.Descriptor instead. -func (*BadgeConfigTreeResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{74} -} - -func (x *BadgeConfigTreeResp) GetGroups() []*BadgeGroupInfo { - if x != nil { - return x.Groups - } - return nil -} - -type AiQuotaResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Remaining int64 `protobuf:"varint,1,opt,name=remaining,proto3" json:"remaining,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - Used int64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"` - Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AiQuotaResp) Reset() { - *x = AiQuotaResp{} - mi := &file_pb_plant_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AiQuotaResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AiQuotaResp) ProtoMessage() {} - -func (x *AiQuotaResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[75] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AiQuotaResp.ProtoReflect.Descriptor instead. -func (*AiQuotaResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{75} -} - -func (x *AiQuotaResp) GetRemaining() int64 { - if x != nil { - return x.Remaining - } - return 0 -} - -func (x *AiQuotaResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -func (x *AiQuotaResp) GetUsed() int64 { - if x != nil { - return x.Used - } - return 0 -} - -func (x *AiQuotaResp) GetLimit() int64 { - if x != nil { - return x.Limit - } - return 0 -} - -type AiChatHistoryInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` - Question string `protobuf:"bytes,3,opt,name=question,proto3" json:"question,omitempty"` - Answer string `protobuf:"bytes,4,opt,name=answer,proto3" json:"answer,omitempty"` - CreatedAt string `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AiChatHistoryInfo) Reset() { - *x = AiChatHistoryInfo{} - mi := &file_pb_plant_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AiChatHistoryInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AiChatHistoryInfo) ProtoMessage() {} - -func (x *AiChatHistoryInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[76] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AiChatHistoryInfo.ProtoReflect.Descriptor instead. -func (*AiChatHistoryInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{76} -} - -func (x *AiChatHistoryInfo) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *AiChatHistoryInfo) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *AiChatHistoryInfo) GetQuestion() string { - if x != nil { - return x.Question - } - return "" -} - -func (x *AiChatHistoryInfo) GetAnswer() string { - if x != nil { - return x.Answer - } - return "" -} - -func (x *AiChatHistoryInfo) GetCreatedAt() string { - if x != nil { - return x.CreatedAt - } - return "" -} - -type AiChatHistoryReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` - Current int32 `protobuf:"varint,2,opt,name=current,proto3" json:"current,omitempty"` - PageSize int32 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AiChatHistoryReq) Reset() { - *x = AiChatHistoryReq{} - mi := &file_pb_plant_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AiChatHistoryReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AiChatHistoryReq) ProtoMessage() {} - -func (x *AiChatHistoryReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[77] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AiChatHistoryReq.ProtoReflect.Descriptor instead. -func (*AiChatHistoryReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{77} -} - -func (x *AiChatHistoryReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *AiChatHistoryReq) GetCurrent() int32 { - if x != nil { - return x.Current - } - return 0 -} - -func (x *AiChatHistoryReq) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -type AiChatHistoryResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - List []*AiChatHistoryInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` - Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AiChatHistoryResp) Reset() { - *x = AiChatHistoryResp{} - mi := &file_pb_plant_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AiChatHistoryResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AiChatHistoryResp) ProtoMessage() {} - -func (x *AiChatHistoryResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[78] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AiChatHistoryResp.ProtoReflect.Descriptor instead. -func (*AiChatHistoryResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{78} -} - -func (x *AiChatHistoryResp) GetList() []*AiChatHistoryInfo { - if x != nil { - return x.List - } - return nil -} - -func (x *AiChatHistoryResp) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -var File_pb_plant_proto protoreflect.FileDescriptor - -const file_pb_plant_proto_rawDesc = "" + - "\n" + - "\x0epb/plant.proto\x12\x05plant\"2\n" + - "\n" + - "CommonResp\x12\x12\n" + - "\x04code\x18\x01 \x01(\x03R\x04code\x12\x10\n" + - "\x03msg\x18\x02 \x01(\tR\x03msg\"\x17\n" + - "\x05IdReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\"\x1a\n" + - "\x06IdsReq\x12\x10\n" + - "\x03ids\x18\x01 \x03(\tR\x03ids\"?\n" + - "\aPageReq\x12\x18\n" + - "\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" + - "\bpageSize\x18\x02 \x01(\x05R\bpageSize\"\xe0\x03\n" + - "\x10PlantUserProfile\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + - "\x06userId\x18\x02 \x01(\tR\x06userId\x12\x1a\n" + - "\bnickName\x18\x03 \x01(\tR\bnickName\x12\x1a\n" + - "\bavatarId\x18\x04 \x01(\tR\bavatarId\x12\x18\n" + - "\alevelId\x18\x05 \x01(\tR\alevelId\x12(\n" + - "\x0fcurrentSunlight\x18\x06 \x01(\x03R\x0fcurrentSunlight\x12$\n" + - "\rtotalSunlight\x18\a \x01(\x03R\rtotalSunlight\x12\x1e\n" + - "\n" + - "plantCount\x18\b \x01(\x03R\n" + - "plantCount\x12\x1c\n" + - "\tcareCount\x18\t \x01(\x03R\tcareCount\x12\x1c\n" + - "\tpostCount\x18\n" + - " \x01(\x03R\tpostCount\x12\x1e\n" + - "\n" + - "waterCount\x18\v \x01(\x03R\n" + - "waterCount\x12&\n" + - "\x0efertilizeCount\x18\f \x01(\x03R\x0efertilizeCount\x12\x1e\n" + - "\n" + - "repotCount\x18\r \x01(\x03R\n" + - "repotCount\x12\x1e\n" + - "\n" + - "pruneCount\x18\x0e \x01(\x03R\n" + - "pruneCount\x12\x1e\n" + - "\n" + - "photoCount\x18\x0f \x01(\x03R\n" + - "photoCount\"'\n" + - "\rGetProfileReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\"b\n" + - "\x10UpdateProfileReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + - "\bnickName\x18\x02 \x01(\tR\bnickName\x12\x1a\n" + - "\bavatarId\x18\x03 \x01(\tR\bavatarId\"\xa7\x01\n" + - "\rUserBadgeInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" + - "\abadgeId\x18\x02 \x01(\tR\abadgeId\x12\x1c\n" + - "\tbadgeName\x18\x03 \x01(\tR\tbadgeName\x12\x1c\n" + - "\tdimension\x18\x04 \x01(\tR\tdimension\x12\x12\n" + - "\x04tier\x18\x05 \x01(\x05R\x04tier\x12\x1c\n" + - "\tawardedAt\x18\x06 \x01(\tR\tawardedAt\"=\n" + - "\x11UserBadgeListResp\x12(\n" + - "\x04list\x18\x01 \x03(\v2\x14.plant.UserBadgeInfoR\x04list\"l\n" + - "\fUserStarInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" + - "\btargetId\x18\x02 \x01(\tR\btargetId\x12\x12\n" + - "\x04type\x18\x03 \x01(\tR\x04type\x12\x1c\n" + - "\tcreatedAt\x18\x04 \x01(\tR\tcreatedAt\"Q\n" + - "\x10UserStarListResp\x12'\n" + - "\x04list\x18\x01 \x03(\v2\x13.plant.UserStarInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"\xd5\x02\n" + - "\tPlantInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + - "\x06userId\x18\x02 \x01(\tR\x06userId\x12\x12\n" + - "\x04name\x18\x03 \x01(\tR\x04name\x12\x1c\n" + - "\tplantTime\x18\x04 \x01(\tR\tplantTime\x12\x16\n" + - "\x06status\x18\x05 \x01(\x05R\x06status\x12\x1c\n" + - "\tplacement\x18\x06 \x01(\tR\tplacement\x12 \n" + - "\vpotMaterial\x18\a \x01(\tR\vpotMaterial\x12\x18\n" + - "\apotSize\x18\b \x01(\tR\apotSize\x12\x1a\n" + - "\bsunlight\x18\t \x01(\tR\bsunlight\x12*\n" + - "\x10plantingMaterial\x18\n" + - " \x01(\tR\x10plantingMaterial\x12\x16\n" + - "\x06imgIds\x18\v \x03(\tR\x06imgIds\x12\x1c\n" + - "\tcreatedAt\x18\f \x01(\x03R\tcreatedAt\"\x94\x02\n" + - "\x0eCreatePlantReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" + - "\tplantTime\x18\x03 \x01(\tR\tplantTime\x12\x1c\n" + - "\tplacement\x18\x04 \x01(\tR\tplacement\x12 \n" + - "\vpotMaterial\x18\x05 \x01(\tR\vpotMaterial\x12\x18\n" + - "\apotSize\x18\x06 \x01(\tR\apotSize\x12\x1a\n" + - "\bsunlight\x18\a \x01(\tR\bsunlight\x12*\n" + - "\x10plantingMaterial\x18\b \x01(\tR\x10plantingMaterial\x12\x16\n" + - "\x06imgIds\x18\t \x03(\tR\x06imgIds\"\x86\x02\n" + - "\x0eUpdatePlantReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n" + - "\x06status\x18\x03 \x01(\x05R\x06status\x12\x1c\n" + - "\tplacement\x18\x04 \x01(\tR\tplacement\x12 \n" + - "\vpotMaterial\x18\x05 \x01(\tR\vpotMaterial\x12\x18\n" + - "\apotSize\x18\x06 \x01(\tR\apotSize\x12\x1a\n" + - "\bsunlight\x18\a \x01(\tR\bsunlight\x12*\n" + - "\x10plantingMaterial\x18\b \x01(\tR\x10plantingMaterial\x12\x16\n" + - "\x06imgIds\x18\t \x03(\tR\x06imgIds\"p\n" + - "\fPlantListReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x18\n" + - "\acurrent\x18\x02 \x01(\x05R\acurrent\x12\x1a\n" + - "\bpageSize\x18\x03 \x01(\x05R\bpageSize\x12\x12\n" + - "\x04name\x18\x04 \x01(\tR\x04name\"K\n" + - "\rPlantListResp\x12$\n" + - "\x04list\x18\x01 \x03(\v2\x10.plant.PlantInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"\xab\x01\n" + - "\x0fPlantDetailResp\x12&\n" + - "\x05plant\x18\x01 \x01(\v2\x10.plant.PlantInfoR\x05plant\x121\n" + - "\tcarePlans\x18\x02 \x03(\v2\x13.plant.CarePlanInfoR\tcarePlans\x12=\n" + - "\rgrowthRecords\x18\x03 \x03(\v2\x17.plant.GrowthRecordInfoR\rgrowthRecords\"\x9c\x01\n" + - "\fCarePlanInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" + - "\aplantId\x18\x02 \x01(\tR\aplantId\x12\x12\n" + - "\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" + - "\x04icon\x18\x04 \x01(\tR\x04icon\x12\"\n" + - "\ftargetAction\x18\x05 \x01(\tR\ftargetAction\x12\x16\n" + - "\x06period\x18\x06 \x01(\x05R\x06period\"\xa6\x01\n" + - "\x0eAddCarePlanReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x18\n" + - "\aplantId\x18\x02 \x01(\tR\aplantId\x12\x12\n" + - "\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" + - "\x04icon\x18\x04 \x01(\tR\x04icon\x12\"\n" + - "\ftargetAction\x18\x05 \x01(\tR\ftargetAction\x12\x16\n" + - "\x06period\x18\x06 \x01(\x05R\x06period\"\xce\x01\n" + - "\fCareTaskInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" + - "\aplantId\x18\x02 \x01(\tR\aplantId\x12\x16\n" + - "\x06planId\x18\x03 \x01(\tR\x06planId\x12\x12\n" + - "\x04name\x18\x04 \x01(\tR\x04name\x12\x12\n" + - "\x04icon\x18\x05 \x01(\tR\x04icon\x12\"\n" + - "\ftargetAction\x18\x06 \x01(\tR\ftargetAction\x12\x18\n" + - "\adueDate\x18\a \x01(\tR\adueDate\x12\x16\n" + - "\x06status\x18\b \x01(\x05R\x06status\"Q\n" + - "\x10CareTaskListResp\x12'\n" + - "\x04list\x18\x01 \x03(\v2\x13.plant.CareTaskInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"\x88\x01\n" + - "\x10AddCareRecordReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x18\n" + - "\aplantId\x18\x02 \x01(\tR\aplantId\x12\x16\n" + - "\x06planId\x18\x03 \x01(\tR\x06planId\x12\x16\n" + - "\x06action\x18\x04 \x01(\tR\x06action\x12\x12\n" + - "\x04note\x18\x05 \x01(\tR\x04note\"t\n" + - "\x10GrowthRecordInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" + - "\aplantId\x18\x02 \x01(\tR\aplantId\x12\x18\n" + - "\acontent\x18\x03 \x01(\tR\acontent\x12\x1c\n" + - "\tcreatedAt\x18\x04 \x01(\x03R\tcreatedAt\"x\n" + - "\x12AddGrowthRecordReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x18\n" + - "\aplantId\x18\x02 \x01(\tR\aplantId\x12\x18\n" + - "\acontent\x18\x03 \x01(\tR\acontent\x12\x16\n" + - "\x06imgIds\x18\x04 \x03(\tR\x06imgIds\"\x90\b\n" + - "\bWikiInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" + - "\tlatinName\x18\x03 \x01(\tR\tlatinName\x12\x18\n" + - "\aaliases\x18\x04 \x01(\tR\aaliases\x12\x14\n" + - "\x05genus\x18\x05 \x01(\tR\x05genus\x12\x1e\n" + - "\n" + - "difficulty\x18\x06 \x01(\x05R\n" + - "difficulty\x12\x14\n" + - "\x05isHot\x18\a \x01(\x05R\x05isHot\x12 \n" + - "\vgrowthHabit\x18\b \x01(\tR\vgrowthHabit\x12&\n" + - "\x0elightIntensity\x18\t \x01(\tR\x0elightIntensity\x12,\n" + - "\x11optimalTempPeriod\x18\n" + - " \x01(\tR\x11optimalTempPeriod\x12\x1c\n" + - "\tcreatedAt\x18\v \x01(\x03R\tcreatedAt\x12\x18\n" + - "\aclassId\x18\f \x01(\tR\aclassId\x12*\n" + - "\x10distributionArea\x18\r \x01(\tR\x10distributionArea\x12\x1c\n" + - "\tlifeCycle\x18\x0e \x01(\tR\tlifeCycle\x12\x1a\n" + - "\bclassIds\x18\x0f \x03(\tR\bclassIds\x12\x16\n" + - "\x06ossIds\x18\x10 \x03(\tR\x06ossIds\x12&\n" + - "\x0erelatedWikiIds\x18\x11 \x03(\tR\x0erelatedWikiIds\x12&\n" + - "\x0eisVectorSynced\x18\x12 \x01(\bR\x0eisVectorSynced\x12\x16\n" + - "\x06isStar\x18\x13 \x01(\bR\x06isStar\x12.\n" + - "\x12reproductionMethod\x18\x14 \x01(\tR\x12reproductionMethod\x12$\n" + - "\rpestsDiseases\x18\x15 \x01(\tR\rpestsDiseases\x12\x1c\n" + - "\tlightType\x18\x16 \x01(\tR\tlightType\x12\x12\n" + - "\x04stem\x18\x17 \x01(\tR\x04stem\x12\x14\n" + - "\x05fruit\x18\x18 \x01(\tR\x05fruit\x12 \n" + - "\vfoliageType\x18\x19 \x01(\tR\vfoliageType\x12\"\n" + - "\ffoliageColor\x18\x1a \x01(\tR\ffoliageColor\x12\"\n" + - "\ffoliageShape\x18\x1b \x01(\tR\ffoliageShape\x12\x16\n" + - "\x06height\x18\x1c \x01(\x05R\x06height\x12(\n" + - "\x0ffloweringPeriod\x18\x1d \x01(\tR\x0ffloweringPeriod\x12&\n" + - "\x0efloweringColor\x18\x1e \x01(\tR\x0efloweringColor\x12&\n" + - "\x0efloweringShape\x18\x1f \x01(\tR\x0efloweringShape\x12,\n" + - "\x11floweringDiameter\x18 \x01(\x05R\x11floweringDiameter\"\x87\x01\n" + - "\vWikiListReq\x12\x18\n" + - "\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" + - "\bpageSize\x18\x02 \x01(\x05R\bpageSize\x12\x12\n" + - "\x04name\x18\x03 \x01(\tR\x04name\x12\x18\n" + - "\aclassId\x18\x04 \x01(\tR\aclassId\x12\x14\n" + - "\x05isHot\x18\x05 \x01(\x05R\x05isHot\"I\n" + - "\fWikiListResp\x12#\n" + - "\x04list\x18\x01 \x03(\v2\x0f.plant.WikiInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"5\n" + - "\x0eWikiDetailResp\x12#\n" + - "\x04wiki\x18\x01 \x01(\v2\x0f.plant.WikiInfoR\x04wiki\"\xa7\a\n" + - "\rCreateWikiReq\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + - "\tlatinName\x18\x02 \x01(\tR\tlatinName\x12\x18\n" + - "\aaliases\x18\x03 \x01(\tR\aaliases\x12\x14\n" + - "\x05genus\x18\x04 \x01(\tR\x05genus\x12\x1e\n" + - "\n" + - "difficulty\x18\x05 \x01(\x05R\n" + - "difficulty\x12\x14\n" + - "\x05isHot\x18\x06 \x01(\x05R\x05isHot\x12 \n" + - "\vgrowthHabit\x18\a \x01(\tR\vgrowthHabit\x12&\n" + - "\x0elightIntensity\x18\b \x01(\tR\x0elightIntensity\x12,\n" + - "\x11optimalTempPeriod\x18\t \x01(\tR\x11optimalTempPeriod\x12\x18\n" + - "\aclassId\x18\n" + - " \x01(\tR\aclassId\x12*\n" + - "\x10distributionArea\x18\v \x01(\tR\x10distributionArea\x12\x1c\n" + - "\tlifeCycle\x18\f \x01(\tR\tlifeCycle\x12\x1a\n" + - "\bclassIds\x18\r \x03(\tR\bclassIds\x12\x16\n" + - "\x06ossIds\x18\x0e \x03(\tR\x06ossIds\x12&\n" + - "\x0erelatedWikiIds\x18\x0f \x03(\tR\x0erelatedWikiIds\x12.\n" + - "\x12reproductionMethod\x18\x10 \x01(\tR\x12reproductionMethod\x12$\n" + - "\rpestsDiseases\x18\x11 \x01(\tR\rpestsDiseases\x12\x1c\n" + - "\tlightType\x18\x12 \x01(\tR\tlightType\x12\x12\n" + - "\x04stem\x18\x13 \x01(\tR\x04stem\x12\x14\n" + - "\x05fruit\x18\x14 \x01(\tR\x05fruit\x12 \n" + - "\vfoliageType\x18\x15 \x01(\tR\vfoliageType\x12\"\n" + - "\ffoliageColor\x18\x16 \x01(\tR\ffoliageColor\x12\"\n" + - "\ffoliageShape\x18\x17 \x01(\tR\ffoliageShape\x12\x16\n" + - "\x06height\x18\x18 \x01(\x05R\x06height\x12(\n" + - "\x0ffloweringPeriod\x18\x19 \x01(\tR\x0ffloweringPeriod\x12&\n" + - "\x0efloweringColor\x18\x1a \x01(\tR\x0efloweringColor\x12&\n" + - "\x0efloweringShape\x18\x1b \x01(\tR\x0efloweringShape\x12,\n" + - "\x11floweringDiameter\x18\x1c \x01(\x05R\x11floweringDiameter\"\xb7\a\n" + - "\rUpdateWikiReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" + - "\tlatinName\x18\x03 \x01(\tR\tlatinName\x12\x18\n" + - "\aaliases\x18\x04 \x01(\tR\aaliases\x12\x14\n" + - "\x05genus\x18\x05 \x01(\tR\x05genus\x12\x1e\n" + - "\n" + - "difficulty\x18\x06 \x01(\x05R\n" + - "difficulty\x12\x14\n" + - "\x05isHot\x18\a \x01(\x05R\x05isHot\x12 \n" + - "\vgrowthHabit\x18\b \x01(\tR\vgrowthHabit\x12&\n" + - "\x0elightIntensity\x18\t \x01(\tR\x0elightIntensity\x12,\n" + - "\x11optimalTempPeriod\x18\n" + - " \x01(\tR\x11optimalTempPeriod\x12\x18\n" + - "\aclassId\x18\v \x01(\tR\aclassId\x12*\n" + - "\x10distributionArea\x18\f \x01(\tR\x10distributionArea\x12\x1c\n" + - "\tlifeCycle\x18\r \x01(\tR\tlifeCycle\x12\x1a\n" + - "\bclassIds\x18\x0e \x03(\tR\bclassIds\x12\x16\n" + - "\x06ossIds\x18\x0f \x03(\tR\x06ossIds\x12&\n" + - "\x0erelatedWikiIds\x18\x10 \x03(\tR\x0erelatedWikiIds\x12.\n" + - "\x12reproductionMethod\x18\x11 \x01(\tR\x12reproductionMethod\x12$\n" + - "\rpestsDiseases\x18\x12 \x01(\tR\rpestsDiseases\x12\x1c\n" + - "\tlightType\x18\x13 \x01(\tR\tlightType\x12\x12\n" + - "\x04stem\x18\x14 \x01(\tR\x04stem\x12\x14\n" + - "\x05fruit\x18\x15 \x01(\tR\x05fruit\x12 \n" + - "\vfoliageType\x18\x16 \x01(\tR\vfoliageType\x12\"\n" + - "\ffoliageColor\x18\x17 \x01(\tR\ffoliageColor\x12\"\n" + - "\ffoliageShape\x18\x18 \x01(\tR\ffoliageShape\x12\x16\n" + - "\x06height\x18\x19 \x01(\x05R\x06height\x12(\n" + - "\x0ffloweringPeriod\x18\x1a \x01(\tR\x0ffloweringPeriod\x12&\n" + - "\x0efloweringColor\x18\x1b \x01(\tR\x0efloweringColor\x12&\n" + - "\x0efloweringShape\x18\x1c \x01(\tR\x0efloweringShape\x12,\n" + - "\x11floweringDiameter\x18\x1d \x01(\x05R\x11floweringDiameter\"I\n" + - "\rWikiClassInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" + - "\x05ossId\x18\x03 \x01(\tR\x05ossId\"=\n" + - "\x11WikiClassListResp\x12(\n" + - "\x04list\x18\x01 \x03(\v2\x14.plant.WikiClassInfoR\x04list\"<\n" + - "\x12CreateWikiClassReq\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" + - "\x04icon\x18\x02 \x01(\tR\x04icon\"L\n" + - "\x12UpdateWikiClassReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" + - "\x04icon\x18\x03 \x01(\tR\x04icon\"W\n" + - "\rToggleStarReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + - "\btargetId\x18\x02 \x01(\tR\btargetId\x12\x12\n" + - "\x04type\x18\x03 \x01(\tR\x04type\"\x8b\x01\n" + - "\x0fClassifyLogInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + - "\x06userId\x18\x02 \x01(\tR\x06userId\x12\x1a\n" + - "\bimageUrl\x18\x03 \x01(\tR\bimageUrl\x12\x16\n" + - "\x06result\x18\x04 \x01(\tR\x06result\x12\x1c\n" + - "\tcreatedAt\x18\x05 \x01(\tR\tcreatedAt\"W\n" + - "\x13ClassifyLogListResp\x12*\n" + - "\x04list\x18\x01 \x03(\v2\x16.plant.ClassifyLogInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"\xb4\x02\n" + - "\bPostInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + - "\x06userId\x18\x02 \x01(\tR\x06userId\x12\x14\n" + - "\x05title\x18\x03 \x01(\tR\x05title\x12\x18\n" + - "\acontent\x18\x04 \x01(\tR\acontent\x12\x1c\n" + - "\tviewCount\x18\x05 \x01(\x05R\tviewCount\x12\"\n" + - "\fcommentCount\x18\x06 \x01(\x05R\fcommentCount\x12\x1c\n" + - "\tlikeCount\x18\a \x01(\x05R\tlikeCount\x12\x1c\n" + - "\tstarCount\x18\b \x01(\x05R\tstarCount\x12\x1a\n" + - "\blocation\x18\t \x01(\tR\blocation\x12\x1c\n" + - "\tcreatedAt\x18\n" + - " \x01(\x03R\tcreatedAt\x12\x18\n" + - "\atopicId\x18\v \x01(\tR\atopicId\"\xa5\x01\n" + - "\rCreatePostReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x14\n" + - "\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" + - "\acontent\x18\x03 \x01(\tR\acontent\x12\x1a\n" + - "\blocation\x18\x04 \x01(\tR\blocation\x12\x16\n" + - "\x06imgIds\x18\x05 \x03(\tR\x06imgIds\x12\x18\n" + - "\atopicId\x18\x06 \x01(\tR\atopicId\"\x8f\x01\n" + - "\vPostListReq\x12\x18\n" + - "\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" + - "\bpageSize\x18\x02 \x01(\x05R\bpageSize\x12\x18\n" + - "\akeyword\x18\x03 \x01(\tR\akeyword\x12\x18\n" + - "\atopicId\x18\x04 \x01(\tR\atopicId\x12\x16\n" + - "\x06userId\x18\x05 \x01(\tR\x06userId\"I\n" + - "\fPostListResp\x12#\n" + - "\x04list\x18\x01 \x03(\v2\x0f.plant.PostInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"i\n" + - "\x0ePostDetailResp\x12#\n" + - "\x04post\x18\x01 \x01(\v2\x0f.plant.PostInfoR\x04post\x122\n" + - "\bcomments\x18\x02 \x03(\v2\x16.plant.PostCommentInfoR\bcomments\"\x8d\x01\n" + - "\x0fPostCommentInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + - "\x06userId\x18\x02 \x01(\tR\x06userId\x12\x18\n" + - "\acontent\x18\x03 \x01(\tR\acontent\x12\x1a\n" + - "\bparentId\x18\x04 \x01(\tR\bparentId\x12\x1c\n" + - "\tcreatedAt\x18\x05 \x01(\x03R\tcreatedAt\"v\n" + - "\x0eCommentPostReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x16\n" + - "\x06postId\x18\x02 \x01(\tR\x06postId\x12\x18\n" + - "\acontent\x18\x03 \x01(\tR\acontent\x12\x1a\n" + - "\bparentId\x18\x04 \x01(\tR\bparentId\"=\n" + - "\vLikePostReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x16\n" + - "\x06postId\x18\x02 \x01(\tR\x06postId\"\xdb\x01\n" + - "\tTopicInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" + - "\tpostCount\x18\x03 \x01(\x05R\tpostCount\x12\x12\n" + - "\x04icon\x18\x04 \x01(\tR\x04icon\x12\x12\n" + - "\x04desc\x18\x05 \x01(\tR\x04desc\x12\x14\n" + - "\x05title\x18\x06 \x01(\tR\x05title\x12\x16\n" + - "\x06remark\x18\a \x01(\tR\x06remark\x12\x1c\n" + - "\tstartTime\x18\b \x01(\tR\tstartTime\x12\x18\n" + - "\aendTime\x18\t \x01(\tR\aendTime\"5\n" + - "\rTopicListResp\x12$\n" + - "\x04list\x18\x01 \x03(\v2\x10.plant.TopicInfoR\x04list\"\xb2\x01\n" + - "\x0eCreateTopicReq\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" + - "\x04icon\x18\x02 \x01(\tR\x04icon\x12\x12\n" + - "\x04desc\x18\x03 \x01(\tR\x04desc\x12\x14\n" + - "\x05title\x18\x04 \x01(\tR\x05title\x12\x16\n" + - "\x06remark\x18\x05 \x01(\tR\x06remark\x12\x1c\n" + - "\tstartTime\x18\x06 \x01(\tR\tstartTime\x12\x18\n" + - "\aendTime\x18\a \x01(\tR\aendTime\"\xc2\x01\n" + - "\x0eUpdateTopicReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" + - "\x04icon\x18\x03 \x01(\tR\x04icon\x12\x12\n" + - "\x04desc\x18\x04 \x01(\tR\x04desc\x12\x14\n" + - "\x05title\x18\x05 \x01(\tR\x05title\x12\x16\n" + - "\x06remark\x18\x06 \x01(\tR\x06remark\x12\x1c\n" + - "\tstartTime\x18\a \x01(\tR\tstartTime\x12\x18\n" + - "\aendTime\x18\b \x01(\tR\aendTime\"\xa2\x01\n" + - "\x10ExchangeItemInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" + - "\x04desc\x18\x03 \x01(\tR\x04desc\x12\x14\n" + - "\x05imgId\x18\x04 \x01(\tR\x05imgId\x12\x12\n" + - "\x04cost\x18\x05 \x01(\x03R\x04cost\x12\x14\n" + - "\x05stock\x18\x06 \x01(\x05R\x05stock\x12\x16\n" + - "\x06status\x18\a \x01(\x05R\x06status\"c\n" + - "\x13ExchangeItemListReq\x12\x18\n" + - "\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" + - "\bpageSize\x18\x02 \x01(\x05R\bpageSize\x12\x16\n" + - "\x06status\x18\x03 \x01(\x05R\x06status\"Y\n" + - "\x14ExchangeItemListResp\x12+\n" + - "\x04list\x18\x01 \x03(\v2\x17.plant.ExchangeItemInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"\xba\x01\n" + - "\x16CreateExchangeOrderReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x16\n" + - "\x06itemId\x18\x02 \x01(\tR\x06itemId\x12\x1a\n" + - "\bquantity\x18\x03 \x01(\x05R\bquantity\x12$\n" + - "\rrecipientName\x18\x04 \x01(\tR\rrecipientName\x12\x14\n" + - "\x05phone\x18\x05 \x01(\tR\x05phone\x12\x18\n" + - "\aaddress\x18\x06 \x01(\tR\aaddress\"\xc1\x02\n" + - "\x15CreateExchangeItemReq\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" + - "\x04desc\x18\x02 \x01(\tR\x04desc\x12\x14\n" + - "\x05imgId\x18\x03 \x01(\tR\x05imgId\x12\x12\n" + - "\x04cost\x18\x04 \x01(\x03R\x04cost\x12\x14\n" + - "\x05stock\x18\x05 \x01(\x05R\x05stock\x12\x12\n" + - "\x04type\x18\x06 \x01(\tR\x04type\x12\"\n" + - "\fcostSunlight\x18\a \x01(\x03R\fcostSunlight\x12\"\n" + - "\flimitPerUser\x18\b \x01(\x05R\flimitPerUser\x12\x12\n" + - "\x04sort\x18\t \x01(\x05R\x04sort\x12\x1c\n" + - "\tstartTime\x18\n" + - " \x01(\tR\tstartTime\x12\x18\n" + - "\aendTime\x18\v \x01(\tR\aendTime\x12\x18\n" + - "\aimageId\x18\f \x01(\tR\aimageId\"\xe9\x02\n" + - "\x15UpdateExchangeItemReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" + - "\x04desc\x18\x03 \x01(\tR\x04desc\x12\x14\n" + - "\x05imgId\x18\x04 \x01(\tR\x05imgId\x12\x12\n" + - "\x04cost\x18\x05 \x01(\x03R\x04cost\x12\x14\n" + - "\x05stock\x18\x06 \x01(\x05R\x05stock\x12\x16\n" + - "\x06status\x18\a \x01(\x05R\x06status\x12\x12\n" + - "\x04type\x18\b \x01(\tR\x04type\x12\"\n" + - "\fcostSunlight\x18\t \x01(\x03R\fcostSunlight\x12\"\n" + - "\flimitPerUser\x18\n" + - " \x01(\x05R\flimitPerUser\x12\x12\n" + - "\x04sort\x18\v \x01(\x05R\x04sort\x12\x1c\n" + - "\tstartTime\x18\f \x01(\tR\tstartTime\x12\x18\n" + - "\aendTime\x18\r \x01(\tR\aendTime\x12\x18\n" + - "\aimageId\x18\x0e \x01(\tR\aimageId\"\xa1\x03\n" + - "\x11ExchangeOrderInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + - "\x06userId\x18\x02 \x01(\tR\x06userId\x12\x16\n" + - "\x06itemId\x18\x03 \x01(\tR\x06itemId\x12\x1a\n" + - "\bitemName\x18\x04 \x01(\tR\bitemName\x12\x12\n" + - "\x04cost\x18\x05 \x01(\x03R\x04cost\x12\x16\n" + - "\x06status\x18\x06 \x01(\x05R\x06status\x12\x18\n" + - "\aaddress\x18\a \x01(\tR\aaddress\x12\x1c\n" + - "\tcreatedAt\x18\b \x01(\tR\tcreatedAt\x12\x1a\n" + - "\bquantity\x18\t \x01(\x05R\bquantity\x12\x1a\n" + - "\bitemType\x18\n" + - " \x01(\tR\bitemType\x12$\n" + - "\rrecipientName\x18\v \x01(\tR\rrecipientName\x12\x14\n" + - "\x05phone\x18\f \x01(\tR\x05phone\x12\x1e\n" + - "\n" + - "trackingNo\x18\r \x01(\tR\n" + - "trackingNo\x12\x16\n" + - "\x06remark\x18\x0e \x01(\tR\x06remark\x12 \n" + - "\vcompletedAt\x18\x0f \x01(\tR\vcompletedAt\"|\n" + - "\x14ExchangeOrderListReq\x12\x18\n" + - "\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" + - "\bpageSize\x18\x02 \x01(\x05R\bpageSize\x12\x16\n" + - "\x06userId\x18\x03 \x01(\tR\x06userId\x12\x16\n" + - "\x06status\x18\x04 \x01(\x05R\x06status\"[\n" + - "\x15ExchangeOrderListResp\x12,\n" + - "\x04list\x18\x01 \x03(\v2\x18.plant.ExchangeOrderInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"x\n" + - "\x16UpdateExchangeOrderReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + - "\x06status\x18\x02 \x01(\x05R\x06status\x12\x1e\n" + - "\n" + - "trackingNo\x18\x03 \x01(\tR\n" + - "trackingNo\x12\x16\n" + - "\x06remark\x18\x04 \x01(\tR\x06remark\"\xbb\x01\n" + - "\x15MediaCheckCallbackReq\x12\x18\n" + - "\atraceId\x18\x01 \x01(\tR\atraceId\x12\x16\n" + - "\x06postId\x18\x02 \x01(\tR\x06postId\x12\x14\n" + - "\x05ossId\x18\x03 \x01(\tR\x05ossId\x12\x16\n" + - "\x06userId\x18\x04 \x01(\tR\x06userId\x12\x16\n" + - "\x06status\x18\x05 \x01(\x05R\x06status\x12\x12\n" + - "\x04type\x18\x06 \x01(\x05R\x04type\x12\x16\n" + - "\x06errMsg\x18\a \x01(\tR\x06errMsg\"b\n" + - "\x14SaveAiChatHistoryReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + - "\bquestion\x18\x02 \x01(\tR\bquestion\x12\x16\n" + - "\x06answer\x18\x03 \x01(\tR\x06answer\"+\n" + - "\x11SyncWikiVectorReq\x12\x16\n" + - "\x06wikiId\x18\x01 \x01(\tR\x06wikiId\"\x85\x01\n" + - "\x0fLevelConfigInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" + - "\x05level\x18\x02 \x01(\x05R\x05level\x12\x14\n" + - "\x05title\x18\x03 \x01(\tR\x05title\x12 \n" + - "\vminSunlight\x18\x04 \x01(\x03R\vminSunlight\x12\x14\n" + - "\x05perks\x18\x05 \x01(\tR\x05perks\"A\n" + - "\x13LevelConfigListResp\x12*\n" + - "\x04list\x18\x01 \x03(\v2\x16.plant.LevelConfigInfoR\x04list\"z\n" + - "\x14CreateLevelConfigReq\x12\x14\n" + - "\x05level\x18\x01 \x01(\x05R\x05level\x12\x14\n" + - "\x05title\x18\x02 \x01(\tR\x05title\x12 \n" + - "\vminSunlight\x18\x03 \x01(\x03R\vminSunlight\x12\x14\n" + - "\x05perks\x18\x04 \x01(\tR\x05perks\"\x8a\x01\n" + - "\x14UpdateLevelConfigReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" + - "\x05level\x18\x02 \x01(\x05R\x05level\x12\x14\n" + - "\x05title\x18\x03 \x01(\tR\x05title\x12 \n" + - "\vminSunlight\x18\x04 \x01(\x03R\vminSunlight\x12\x14\n" + - "\x05perks\x18\x05 \x01(\tR\x05perks\"\xb9\x02\n" + - "\x0fBadgeConfigInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + - "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1c\n" + - "\tdimension\x18\x04 \x01(\tR\tdimension\x12\x18\n" + - "\agroupId\x18\x05 \x01(\tR\agroupId\x12\x12\n" + - "\x04tier\x18\x06 \x01(\x05R\x04tier\x12\"\n" + - "\ftargetAction\x18\a \x01(\tR\ftargetAction\x12\x1c\n" + - "\tthreshold\x18\b \x01(\x03R\tthreshold\x12&\n" + - "\x0erewardSunlight\x18\t \x01(\x03R\x0erewardSunlight\x12\x16\n" + - "\x06iconId\x18\n" + - " \x01(\tR\x06iconId\x12\x12\n" + - "\x04sort\x18\v \x01(\x05R\x04sort\"h\n" + - "\x12BadgeConfigListReq\x12\x18\n" + - "\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" + - "\bpageSize\x18\x02 \x01(\x05R\bpageSize\x12\x1c\n" + - "\tdimension\x18\x03 \x01(\tR\tdimension\"W\n" + - "\x13BadgeConfigListResp\x12*\n" + - "\x04list\x18\x01 \x03(\v2\x16.plant.BadgeConfigInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"\xae\x02\n" + - "\x14CreateBadgeConfigReq\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + - "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x1c\n" + - "\tdimension\x18\x03 \x01(\tR\tdimension\x12\x18\n" + - "\agroupId\x18\x04 \x01(\tR\agroupId\x12\x12\n" + - "\x04tier\x18\x05 \x01(\x05R\x04tier\x12\"\n" + - "\ftargetAction\x18\x06 \x01(\tR\ftargetAction\x12\x1c\n" + - "\tthreshold\x18\a \x01(\x03R\tthreshold\x12&\n" + - "\x0erewardSunlight\x18\b \x01(\x03R\x0erewardSunlight\x12\x16\n" + - "\x06iconId\x18\t \x01(\tR\x06iconId\x12\x12\n" + - "\x04sort\x18\n" + - " \x01(\x05R\x04sort\"\xbe\x02\n" + - "\x14UpdateBadgeConfigReq\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + - "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1c\n" + - "\tdimension\x18\x04 \x01(\tR\tdimension\x12\x18\n" + - "\agroupId\x18\x05 \x01(\tR\agroupId\x12\x12\n" + - "\x04tier\x18\x06 \x01(\x05R\x04tier\x12\"\n" + - "\ftargetAction\x18\a \x01(\tR\ftargetAction\x12\x1c\n" + - "\tthreshold\x18\b \x01(\x03R\tthreshold\x12&\n" + - "\x0erewardSunlight\x18\t \x01(\x03R\x0erewardSunlight\x12\x16\n" + - "\x06iconId\x18\n" + - " \x01(\tR\x06iconId\x12\x12\n" + - "\x04sort\x18\v \x01(\x05R\x04sort\"Y\n" + - "\x0fCompleteTaskReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x16\n" + - "\x06taskId\x18\x02 \x01(\tR\x06taskId\x12\x16\n" + - "\x06remark\x18\x03 \x01(\tR\x06remark\"\xec\x01\n" + - "\x14TaskCompletionResult\x12\x1c\n" + - "\tisLevelUp\x18\x01 \x01(\bR\tisLevelUp\x12:\n" + - "\fcurrentLevel\x18\x02 \x01(\v2\x16.plant.LevelConfigInfoR\fcurrentLevel\x12\x1e\n" + - "\n" + - "isGetBadge\x18\x03 \x01(\bR\n" + - "isGetBadge\x122\n" + - "\bnewBadge\x18\x04 \x01(\v2\x16.plant.BadgeConfigInfoR\bnewBadge\x12&\n" + - "\x0erewardSunlight\x18\x05 \x01(\x03R\x0erewardSunlight\"x\n" + - "\x0eBadgeGroupInfo\x12\x18\n" + - "\agroupId\x18\x01 \x01(\tR\agroupId\x12\x1c\n" + - "\tdimension\x18\x02 \x01(\tR\tdimension\x12.\n" + - "\x06badges\x18\x03 \x03(\v2\x16.plant.BadgeConfigInfoR\x06badges\"D\n" + - "\x13BadgeConfigTreeResp\x12-\n" + - "\x06groups\x18\x01 \x03(\v2\x15.plant.BadgeGroupInfoR\x06groups\"k\n" + - "\vAiQuotaResp\x12\x1c\n" + - "\tremaining\x18\x01 \x01(\x03R\tremaining\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\x12\x12\n" + - "\x04used\x18\x03 \x01(\x03R\x04used\x12\x14\n" + - "\x05limit\x18\x04 \x01(\x03R\x05limit\"\x8d\x01\n" + - "\x11AiChatHistoryInfo\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + - "\x06userId\x18\x02 \x01(\tR\x06userId\x12\x1a\n" + - "\bquestion\x18\x03 \x01(\tR\bquestion\x12\x16\n" + - "\x06answer\x18\x04 \x01(\tR\x06answer\x12\x1c\n" + - "\tcreatedAt\x18\x05 \x01(\tR\tcreatedAt\"`\n" + - "\x10AiChatHistoryReq\x12\x16\n" + - "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x18\n" + - "\acurrent\x18\x02 \x01(\x05R\acurrent\x12\x1a\n" + - "\bpageSize\x18\x03 \x01(\x05R\bpageSize\"W\n" + - "\x11AiChatHistoryResp\x12,\n" + - "\x04list\x18\x01 \x03(\v2\x18.plant.AiChatHistoryInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total2\x9c!\n" + - "\fPlantService\x12?\n" + - "\x0eGetUserProfile\x12\x14.plant.GetProfileReq\x1a\x17.plant.PlantUserProfile\x12?\n" + - "\x11UpdateUserProfile\x12\x17.plant.UpdateProfileReq\x1a\x11.plant.CommonResp\x12=\n" + - "\vGetMyBadges\x12\x14.plant.GetProfileReq\x1a\x18.plant.UserBadgeListResp\x12;\n" + - "\n" + - "GetMyStars\x12\x14.plant.GetProfileReq\x1a\x17.plant.UserStarListResp\x127\n" + - "\vCreatePlant\x12\x15.plant.CreatePlantReq\x1a\x11.plant.CommonResp\x127\n" + - "\vUpdatePlant\x12\x15.plant.UpdatePlantReq\x1a\x11.plant.CommonResp\x12/\n" + - "\vDeletePlant\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x129\n" + - "\fGetPlantList\x12\x13.plant.PlantListReq\x1a\x14.plant.PlantListResp\x126\n" + - "\x0eGetPlantDetail\x12\f.plant.IdReq\x1a\x16.plant.PlantDetailResp\x127\n" + - "\vAddCarePlan\x12\x15.plant.AddCarePlanReq\x1a\x11.plant.CommonResp\x122\n" + - "\x0eDeleteCarePlan\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x12A\n" + - "\x10GetTodayTaskList\x12\x14.plant.GetProfileReq\x1a\x17.plant.CareTaskListResp\x12C\n" + - "\fCompleteTask\x12\x16.plant.CompleteTaskReq\x1a\x1b.plant.TaskCompletionResult\x12;\n" + - "\rAddCareRecord\x12\x17.plant.AddCareRecordReq\x1a\x11.plant.CommonResp\x12?\n" + - "\x0fAddGrowthRecord\x12\x19.plant.AddGrowthRecordReq\x1a\x11.plant.CommonResp\x126\n" + - "\vGetWikiList\x12\x12.plant.WikiListReq\x1a\x13.plant.WikiListResp\x124\n" + - "\rGetWikiDetail\x12\f.plant.IdReq\x1a\x15.plant.WikiDetailResp\x125\n" + - "\n" + - "CreateWiki\x12\x14.plant.CreateWikiReq\x1a\x11.plant.CommonResp\x125\n" + - "\n" + - "UpdateWiki\x12\x14.plant.UpdateWikiReq\x1a\x11.plant.CommonResp\x12.\n" + - "\n" + - "DeleteWiki\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x12=\n" + - "\x0eSyncWikiVector\x12\x18.plant.SyncWikiVectorReq\x1a\x11.plant.CommonResp\x12?\n" + - "\x10DeleteWikiVector\x12\x18.plant.SyncWikiVectorReq\x1a\x11.plant.CommonResp\x126\n" + - "\x11SyncAllWikiVector\x12\x0e.plant.PageReq\x1a\x11.plant.CommonResp\x12:\n" + - "\x10GetWikiClassList\x12\f.plant.IdReq\x1a\x18.plant.WikiClassListResp\x12?\n" + - "\x0fCreateWikiClass\x12\x19.plant.CreateWikiClassReq\x1a\x11.plant.CommonResp\x12?\n" + - "\x0fUpdateWikiClass\x12\x19.plant.UpdateWikiClassReq\x1a\x11.plant.CommonResp\x123\n" + - "\x0fDeleteWikiClass\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x129\n" + - "\x0eToggleWikiStar\x12\x14.plant.ToggleStarReq\x1a\x11.plant.CommonResp\x12D\n" + - "\x10GetMyClassifyLog\x12\x14.plant.GetProfileReq\x1a\x1a.plant.ClassifyLogListResp\x125\n" + - "\x11DeleteClassifyLog\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x125\n" + - "\n" + - "CreatePost\x12\x14.plant.CreatePostReq\x1a\x11.plant.CommonResp\x12.\n" + - "\n" + - "DeletePost\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x126\n" + - "\vGetPostList\x12\x12.plant.PostListReq\x1a\x13.plant.PostListResp\x124\n" + - "\rGetPostDetail\x12\f.plant.IdReq\x1a\x15.plant.PostDetailResp\x127\n" + - "\vCommentPost\x12\x15.plant.CommentPostReq\x1a\x11.plant.CommonResp\x121\n" + - "\bLikePost\x12\x12.plant.LikePostReq\x1a\x11.plant.CommonResp\x121\n" + - "\bStarPost\x12\x12.plant.LikePostReq\x1a\x11.plant.CommonResp\x12E\n" + - "\x12MediaCheckCallback\x12\x1c.plant.MediaCheckCallbackReq\x1a\x11.plant.CommonResp\x122\n" + - "\fGetTopicList\x12\f.plant.IdReq\x1a\x14.plant.TopicListResp\x120\n" + - "\x0eGetTopicDetail\x12\f.plant.IdReq\x1a\x10.plant.TopicInfo\x127\n" + - "\vCreateTopic\x12\x15.plant.CreateTopicReq\x1a\x11.plant.CommonResp\x127\n" + - "\vUpdateTopic\x12\x15.plant.UpdateTopicReq\x1a\x11.plant.CommonResp\x12/\n" + - "\vDeleteTopic\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x12N\n" + - "\x13GetExchangeItemList\x12\x1a.plant.ExchangeItemListReq\x1a\x1b.plant.ExchangeItemListResp\x12>\n" + - "\x15GetExchangeItemDetail\x12\f.plant.IdReq\x1a\x17.plant.ExchangeItemInfo\x12E\n" + - "\x12CreateExchangeItem\x12\x1c.plant.CreateExchangeItemReq\x1a\x11.plant.CommonResp\x12E\n" + - "\x12UpdateExchangeItem\x12\x1c.plant.UpdateExchangeItemReq\x1a\x11.plant.CommonResp\x126\n" + - "\x12DeleteExchangeItem\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x12G\n" + - "\x13CreateExchangeOrder\x12\x1d.plant.CreateExchangeOrderReq\x1a\x11.plant.CommonResp\x12P\n" + - "\x13GetMyExchangeOrders\x12\x1b.plant.ExchangeOrderListReq\x1a\x1c.plant.ExchangeOrderListResp\x12Q\n" + - "\x14GetExchangeOrderList\x12\x1b.plant.ExchangeOrderListReq\x1a\x1c.plant.ExchangeOrderListResp\x12G\n" + - "\x13UpdateExchangeOrder\x12\x1d.plant.UpdateExchangeOrderReq\x1a\x11.plant.CommonResp\x12@\n" + - "\x12GetLevelConfigList\x12\x0e.plant.PageReq\x1a\x1a.plant.LevelConfigListResp\x12<\n" + - "\x14GetLevelConfigDetail\x12\f.plant.IdReq\x1a\x16.plant.LevelConfigInfo\x12C\n" + - "\x11CreateLevelConfig\x12\x1b.plant.CreateLevelConfigReq\x1a\x11.plant.CommonResp\x12C\n" + - "\x11UpdateLevelConfig\x12\x1b.plant.UpdateLevelConfigReq\x1a\x11.plant.CommonResp\x125\n" + - "\x11DeleteLevelConfig\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x12K\n" + - "\x12GetBadgeConfigList\x12\x19.plant.BadgeConfigListReq\x1a\x1a.plant.BadgeConfigListResp\x12<\n" + - "\x14GetBadgeConfigDetail\x12\f.plant.IdReq\x1a\x16.plant.BadgeConfigInfo\x12>\n" + - "\x12GetBadgeConfigTree\x12\f.plant.IdReq\x1a\x1a.plant.BadgeConfigTreeResp\x12C\n" + - "\x11CreateBadgeConfig\x12\x1b.plant.CreateBadgeConfigReq\x1a\x11.plant.CommonResp\x12C\n" + - "\x11UpdateBadgeConfig\x12\x1b.plant.UpdateBadgeConfigReq\x1a\x11.plant.CommonResp\x125\n" + - "\x11DeleteBadgeConfig\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x128\n" + - "\x12GetWikiClassDetail\x12\f.plant.IdReq\x1a\x14.plant.WikiClassInfo\x12E\n" + - "\x10GetAiChatHistory\x12\x17.plant.AiChatHistoryReq\x1a\x18.plant.AiChatHistoryResp\x12C\n" + - "\x11SaveAiChatHistory\x12\x1b.plant.SaveAiChatHistoryReq\x1a\x11.plant.CommonResp\x127\n" + - "\x13DeleteAiChatHistory\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x12=\n" + - "\x12ClearAiChatHistory\x12\x14.plant.GetProfileReq\x1a\x11.plant.CommonResp\x12:\n" + - "\x0eGetAiChatQuota\x12\x14.plant.GetProfileReq\x1a\x12.plant.AiQuotaRespB\tZ\a./plantb\x06proto3" - -var ( - file_pb_plant_proto_rawDescOnce sync.Once - file_pb_plant_proto_rawDescData []byte -) - -func file_pb_plant_proto_rawDescGZIP() []byte { - file_pb_plant_proto_rawDescOnce.Do(func() { - file_pb_plant_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pb_plant_proto_rawDesc), len(file_pb_plant_proto_rawDesc))) - }) - return file_pb_plant_proto_rawDescData -} - -var file_pb_plant_proto_msgTypes = make([]protoimpl.MessageInfo, 79) -var file_pb_plant_proto_goTypes = []any{ - (*CommonResp)(nil), // 0: plant.CommonResp - (*IdReq)(nil), // 1: plant.IdReq - (*IdsReq)(nil), // 2: plant.IdsReq - (*PageReq)(nil), // 3: plant.PageReq - (*PlantUserProfile)(nil), // 4: plant.PlantUserProfile - (*GetProfileReq)(nil), // 5: plant.GetProfileReq - (*UpdateProfileReq)(nil), // 6: plant.UpdateProfileReq - (*UserBadgeInfo)(nil), // 7: plant.UserBadgeInfo - (*UserBadgeListResp)(nil), // 8: plant.UserBadgeListResp - (*UserStarInfo)(nil), // 9: plant.UserStarInfo - (*UserStarListResp)(nil), // 10: plant.UserStarListResp - (*PlantInfo)(nil), // 11: plant.PlantInfo - (*CreatePlantReq)(nil), // 12: plant.CreatePlantReq - (*UpdatePlantReq)(nil), // 13: plant.UpdatePlantReq - (*PlantListReq)(nil), // 14: plant.PlantListReq - (*PlantListResp)(nil), // 15: plant.PlantListResp - (*PlantDetailResp)(nil), // 16: plant.PlantDetailResp - (*CarePlanInfo)(nil), // 17: plant.CarePlanInfo - (*AddCarePlanReq)(nil), // 18: plant.AddCarePlanReq - (*CareTaskInfo)(nil), // 19: plant.CareTaskInfo - (*CareTaskListResp)(nil), // 20: plant.CareTaskListResp - (*AddCareRecordReq)(nil), // 21: plant.AddCareRecordReq - (*GrowthRecordInfo)(nil), // 22: plant.GrowthRecordInfo - (*AddGrowthRecordReq)(nil), // 23: plant.AddGrowthRecordReq - (*WikiInfo)(nil), // 24: plant.WikiInfo - (*WikiListReq)(nil), // 25: plant.WikiListReq - (*WikiListResp)(nil), // 26: plant.WikiListResp - (*WikiDetailResp)(nil), // 27: plant.WikiDetailResp - (*CreateWikiReq)(nil), // 28: plant.CreateWikiReq - (*UpdateWikiReq)(nil), // 29: plant.UpdateWikiReq - (*WikiClassInfo)(nil), // 30: plant.WikiClassInfo - (*WikiClassListResp)(nil), // 31: plant.WikiClassListResp - (*CreateWikiClassReq)(nil), // 32: plant.CreateWikiClassReq - (*UpdateWikiClassReq)(nil), // 33: plant.UpdateWikiClassReq - (*ToggleStarReq)(nil), // 34: plant.ToggleStarReq - (*ClassifyLogInfo)(nil), // 35: plant.ClassifyLogInfo - (*ClassifyLogListResp)(nil), // 36: plant.ClassifyLogListResp - (*PostInfo)(nil), // 37: plant.PostInfo - (*CreatePostReq)(nil), // 38: plant.CreatePostReq - (*PostListReq)(nil), // 39: plant.PostListReq - (*PostListResp)(nil), // 40: plant.PostListResp - (*PostDetailResp)(nil), // 41: plant.PostDetailResp - (*PostCommentInfo)(nil), // 42: plant.PostCommentInfo - (*CommentPostReq)(nil), // 43: plant.CommentPostReq - (*LikePostReq)(nil), // 44: plant.LikePostReq - (*TopicInfo)(nil), // 45: plant.TopicInfo - (*TopicListResp)(nil), // 46: plant.TopicListResp - (*CreateTopicReq)(nil), // 47: plant.CreateTopicReq - (*UpdateTopicReq)(nil), // 48: plant.UpdateTopicReq - (*ExchangeItemInfo)(nil), // 49: plant.ExchangeItemInfo - (*ExchangeItemListReq)(nil), // 50: plant.ExchangeItemListReq - (*ExchangeItemListResp)(nil), // 51: plant.ExchangeItemListResp - (*CreateExchangeOrderReq)(nil), // 52: plant.CreateExchangeOrderReq - (*CreateExchangeItemReq)(nil), // 53: plant.CreateExchangeItemReq - (*UpdateExchangeItemReq)(nil), // 54: plant.UpdateExchangeItemReq - (*ExchangeOrderInfo)(nil), // 55: plant.ExchangeOrderInfo - (*ExchangeOrderListReq)(nil), // 56: plant.ExchangeOrderListReq - (*ExchangeOrderListResp)(nil), // 57: plant.ExchangeOrderListResp - (*UpdateExchangeOrderReq)(nil), // 58: plant.UpdateExchangeOrderReq - (*MediaCheckCallbackReq)(nil), // 59: plant.MediaCheckCallbackReq - (*SaveAiChatHistoryReq)(nil), // 60: plant.SaveAiChatHistoryReq - (*SyncWikiVectorReq)(nil), // 61: plant.SyncWikiVectorReq - (*LevelConfigInfo)(nil), // 62: plant.LevelConfigInfo - (*LevelConfigListResp)(nil), // 63: plant.LevelConfigListResp - (*CreateLevelConfigReq)(nil), // 64: plant.CreateLevelConfigReq - (*UpdateLevelConfigReq)(nil), // 65: plant.UpdateLevelConfigReq - (*BadgeConfigInfo)(nil), // 66: plant.BadgeConfigInfo - (*BadgeConfigListReq)(nil), // 67: plant.BadgeConfigListReq - (*BadgeConfigListResp)(nil), // 68: plant.BadgeConfigListResp - (*CreateBadgeConfigReq)(nil), // 69: plant.CreateBadgeConfigReq - (*UpdateBadgeConfigReq)(nil), // 70: plant.UpdateBadgeConfigReq - (*CompleteTaskReq)(nil), // 71: plant.CompleteTaskReq - (*TaskCompletionResult)(nil), // 72: plant.TaskCompletionResult - (*BadgeGroupInfo)(nil), // 73: plant.BadgeGroupInfo - (*BadgeConfigTreeResp)(nil), // 74: plant.BadgeConfigTreeResp - (*AiQuotaResp)(nil), // 75: plant.AiQuotaResp - (*AiChatHistoryInfo)(nil), // 76: plant.AiChatHistoryInfo - (*AiChatHistoryReq)(nil), // 77: plant.AiChatHistoryReq - (*AiChatHistoryResp)(nil), // 78: plant.AiChatHistoryResp -} -var file_pb_plant_proto_depIdxs = []int32{ - 7, // 0: plant.UserBadgeListResp.list:type_name -> plant.UserBadgeInfo - 9, // 1: plant.UserStarListResp.list:type_name -> plant.UserStarInfo - 11, // 2: plant.PlantListResp.list:type_name -> plant.PlantInfo - 11, // 3: plant.PlantDetailResp.plant:type_name -> plant.PlantInfo - 17, // 4: plant.PlantDetailResp.carePlans:type_name -> plant.CarePlanInfo - 22, // 5: plant.PlantDetailResp.growthRecords:type_name -> plant.GrowthRecordInfo - 19, // 6: plant.CareTaskListResp.list:type_name -> plant.CareTaskInfo - 24, // 7: plant.WikiListResp.list:type_name -> plant.WikiInfo - 24, // 8: plant.WikiDetailResp.wiki:type_name -> plant.WikiInfo - 30, // 9: plant.WikiClassListResp.list:type_name -> plant.WikiClassInfo - 35, // 10: plant.ClassifyLogListResp.list:type_name -> plant.ClassifyLogInfo - 37, // 11: plant.PostListResp.list:type_name -> plant.PostInfo - 37, // 12: plant.PostDetailResp.post:type_name -> plant.PostInfo - 42, // 13: plant.PostDetailResp.comments:type_name -> plant.PostCommentInfo - 45, // 14: plant.TopicListResp.list:type_name -> plant.TopicInfo - 49, // 15: plant.ExchangeItemListResp.list:type_name -> plant.ExchangeItemInfo - 55, // 16: plant.ExchangeOrderListResp.list:type_name -> plant.ExchangeOrderInfo - 62, // 17: plant.LevelConfigListResp.list:type_name -> plant.LevelConfigInfo - 66, // 18: plant.BadgeConfigListResp.list:type_name -> plant.BadgeConfigInfo - 62, // 19: plant.TaskCompletionResult.currentLevel:type_name -> plant.LevelConfigInfo - 66, // 20: plant.TaskCompletionResult.newBadge:type_name -> plant.BadgeConfigInfo - 66, // 21: plant.BadgeGroupInfo.badges:type_name -> plant.BadgeConfigInfo - 73, // 22: plant.BadgeConfigTreeResp.groups:type_name -> plant.BadgeGroupInfo - 76, // 23: plant.AiChatHistoryResp.list:type_name -> plant.AiChatHistoryInfo - 5, // 24: plant.PlantService.GetUserProfile:input_type -> plant.GetProfileReq - 6, // 25: plant.PlantService.UpdateUserProfile:input_type -> plant.UpdateProfileReq - 5, // 26: plant.PlantService.GetMyBadges:input_type -> plant.GetProfileReq - 5, // 27: plant.PlantService.GetMyStars:input_type -> plant.GetProfileReq - 12, // 28: plant.PlantService.CreatePlant:input_type -> plant.CreatePlantReq - 13, // 29: plant.PlantService.UpdatePlant:input_type -> plant.UpdatePlantReq - 2, // 30: plant.PlantService.DeletePlant:input_type -> plant.IdsReq - 14, // 31: plant.PlantService.GetPlantList:input_type -> plant.PlantListReq - 1, // 32: plant.PlantService.GetPlantDetail:input_type -> plant.IdReq - 18, // 33: plant.PlantService.AddCarePlan:input_type -> plant.AddCarePlanReq - 2, // 34: plant.PlantService.DeleteCarePlan:input_type -> plant.IdsReq - 5, // 35: plant.PlantService.GetTodayTaskList:input_type -> plant.GetProfileReq - 71, // 36: plant.PlantService.CompleteTask:input_type -> plant.CompleteTaskReq - 21, // 37: plant.PlantService.AddCareRecord:input_type -> plant.AddCareRecordReq - 23, // 38: plant.PlantService.AddGrowthRecord:input_type -> plant.AddGrowthRecordReq - 25, // 39: plant.PlantService.GetWikiList:input_type -> plant.WikiListReq - 1, // 40: plant.PlantService.GetWikiDetail:input_type -> plant.IdReq - 28, // 41: plant.PlantService.CreateWiki:input_type -> plant.CreateWikiReq - 29, // 42: plant.PlantService.UpdateWiki:input_type -> plant.UpdateWikiReq - 2, // 43: plant.PlantService.DeleteWiki:input_type -> plant.IdsReq - 61, // 44: plant.PlantService.SyncWikiVector:input_type -> plant.SyncWikiVectorReq - 61, // 45: plant.PlantService.DeleteWikiVector:input_type -> plant.SyncWikiVectorReq - 3, // 46: plant.PlantService.SyncAllWikiVector:input_type -> plant.PageReq - 1, // 47: plant.PlantService.GetWikiClassList:input_type -> plant.IdReq - 32, // 48: plant.PlantService.CreateWikiClass:input_type -> plant.CreateWikiClassReq - 33, // 49: plant.PlantService.UpdateWikiClass:input_type -> plant.UpdateWikiClassReq - 2, // 50: plant.PlantService.DeleteWikiClass:input_type -> plant.IdsReq - 34, // 51: plant.PlantService.ToggleWikiStar:input_type -> plant.ToggleStarReq - 5, // 52: plant.PlantService.GetMyClassifyLog:input_type -> plant.GetProfileReq - 2, // 53: plant.PlantService.DeleteClassifyLog:input_type -> plant.IdsReq - 38, // 54: plant.PlantService.CreatePost:input_type -> plant.CreatePostReq - 2, // 55: plant.PlantService.DeletePost:input_type -> plant.IdsReq - 39, // 56: plant.PlantService.GetPostList:input_type -> plant.PostListReq - 1, // 57: plant.PlantService.GetPostDetail:input_type -> plant.IdReq - 43, // 58: plant.PlantService.CommentPost:input_type -> plant.CommentPostReq - 44, // 59: plant.PlantService.LikePost:input_type -> plant.LikePostReq - 44, // 60: plant.PlantService.StarPost:input_type -> plant.LikePostReq - 59, // 61: plant.PlantService.MediaCheckCallback:input_type -> plant.MediaCheckCallbackReq - 1, // 62: plant.PlantService.GetTopicList:input_type -> plant.IdReq - 1, // 63: plant.PlantService.GetTopicDetail:input_type -> plant.IdReq - 47, // 64: plant.PlantService.CreateTopic:input_type -> plant.CreateTopicReq - 48, // 65: plant.PlantService.UpdateTopic:input_type -> plant.UpdateTopicReq - 2, // 66: plant.PlantService.DeleteTopic:input_type -> plant.IdsReq - 50, // 67: plant.PlantService.GetExchangeItemList:input_type -> plant.ExchangeItemListReq - 1, // 68: plant.PlantService.GetExchangeItemDetail:input_type -> plant.IdReq - 53, // 69: plant.PlantService.CreateExchangeItem:input_type -> plant.CreateExchangeItemReq - 54, // 70: plant.PlantService.UpdateExchangeItem:input_type -> plant.UpdateExchangeItemReq - 2, // 71: plant.PlantService.DeleteExchangeItem:input_type -> plant.IdsReq - 52, // 72: plant.PlantService.CreateExchangeOrder:input_type -> plant.CreateExchangeOrderReq - 56, // 73: plant.PlantService.GetMyExchangeOrders:input_type -> plant.ExchangeOrderListReq - 56, // 74: plant.PlantService.GetExchangeOrderList:input_type -> plant.ExchangeOrderListReq - 58, // 75: plant.PlantService.UpdateExchangeOrder:input_type -> plant.UpdateExchangeOrderReq - 3, // 76: plant.PlantService.GetLevelConfigList:input_type -> plant.PageReq - 1, // 77: plant.PlantService.GetLevelConfigDetail:input_type -> plant.IdReq - 64, // 78: plant.PlantService.CreateLevelConfig:input_type -> plant.CreateLevelConfigReq - 65, // 79: plant.PlantService.UpdateLevelConfig:input_type -> plant.UpdateLevelConfigReq - 2, // 80: plant.PlantService.DeleteLevelConfig:input_type -> plant.IdsReq - 67, // 81: plant.PlantService.GetBadgeConfigList:input_type -> plant.BadgeConfigListReq - 1, // 82: plant.PlantService.GetBadgeConfigDetail:input_type -> plant.IdReq - 1, // 83: plant.PlantService.GetBadgeConfigTree:input_type -> plant.IdReq - 69, // 84: plant.PlantService.CreateBadgeConfig:input_type -> plant.CreateBadgeConfigReq - 70, // 85: plant.PlantService.UpdateBadgeConfig:input_type -> plant.UpdateBadgeConfigReq - 2, // 86: plant.PlantService.DeleteBadgeConfig:input_type -> plant.IdsReq - 1, // 87: plant.PlantService.GetWikiClassDetail:input_type -> plant.IdReq - 77, // 88: plant.PlantService.GetAiChatHistory:input_type -> plant.AiChatHistoryReq - 60, // 89: plant.PlantService.SaveAiChatHistory:input_type -> plant.SaveAiChatHistoryReq - 2, // 90: plant.PlantService.DeleteAiChatHistory:input_type -> plant.IdsReq - 5, // 91: plant.PlantService.ClearAiChatHistory:input_type -> plant.GetProfileReq - 5, // 92: plant.PlantService.GetAiChatQuota:input_type -> plant.GetProfileReq - 4, // 93: plant.PlantService.GetUserProfile:output_type -> plant.PlantUserProfile - 0, // 94: plant.PlantService.UpdateUserProfile:output_type -> plant.CommonResp - 8, // 95: plant.PlantService.GetMyBadges:output_type -> plant.UserBadgeListResp - 10, // 96: plant.PlantService.GetMyStars:output_type -> plant.UserStarListResp - 0, // 97: plant.PlantService.CreatePlant:output_type -> plant.CommonResp - 0, // 98: plant.PlantService.UpdatePlant:output_type -> plant.CommonResp - 0, // 99: plant.PlantService.DeletePlant:output_type -> plant.CommonResp - 15, // 100: plant.PlantService.GetPlantList:output_type -> plant.PlantListResp - 16, // 101: plant.PlantService.GetPlantDetail:output_type -> plant.PlantDetailResp - 0, // 102: plant.PlantService.AddCarePlan:output_type -> plant.CommonResp - 0, // 103: plant.PlantService.DeleteCarePlan:output_type -> plant.CommonResp - 20, // 104: plant.PlantService.GetTodayTaskList:output_type -> plant.CareTaskListResp - 72, // 105: plant.PlantService.CompleteTask:output_type -> plant.TaskCompletionResult - 0, // 106: plant.PlantService.AddCareRecord:output_type -> plant.CommonResp - 0, // 107: plant.PlantService.AddGrowthRecord:output_type -> plant.CommonResp - 26, // 108: plant.PlantService.GetWikiList:output_type -> plant.WikiListResp - 27, // 109: plant.PlantService.GetWikiDetail:output_type -> plant.WikiDetailResp - 0, // 110: plant.PlantService.CreateWiki:output_type -> plant.CommonResp - 0, // 111: plant.PlantService.UpdateWiki:output_type -> plant.CommonResp - 0, // 112: plant.PlantService.DeleteWiki:output_type -> plant.CommonResp - 0, // 113: plant.PlantService.SyncWikiVector:output_type -> plant.CommonResp - 0, // 114: plant.PlantService.DeleteWikiVector:output_type -> plant.CommonResp - 0, // 115: plant.PlantService.SyncAllWikiVector:output_type -> plant.CommonResp - 31, // 116: plant.PlantService.GetWikiClassList:output_type -> plant.WikiClassListResp - 0, // 117: plant.PlantService.CreateWikiClass:output_type -> plant.CommonResp - 0, // 118: plant.PlantService.UpdateWikiClass:output_type -> plant.CommonResp - 0, // 119: plant.PlantService.DeleteWikiClass:output_type -> plant.CommonResp - 0, // 120: plant.PlantService.ToggleWikiStar:output_type -> plant.CommonResp - 36, // 121: plant.PlantService.GetMyClassifyLog:output_type -> plant.ClassifyLogListResp - 0, // 122: plant.PlantService.DeleteClassifyLog:output_type -> plant.CommonResp - 0, // 123: plant.PlantService.CreatePost:output_type -> plant.CommonResp - 0, // 124: plant.PlantService.DeletePost:output_type -> plant.CommonResp - 40, // 125: plant.PlantService.GetPostList:output_type -> plant.PostListResp - 41, // 126: plant.PlantService.GetPostDetail:output_type -> plant.PostDetailResp - 0, // 127: plant.PlantService.CommentPost:output_type -> plant.CommonResp - 0, // 128: plant.PlantService.LikePost:output_type -> plant.CommonResp - 0, // 129: plant.PlantService.StarPost:output_type -> plant.CommonResp - 0, // 130: plant.PlantService.MediaCheckCallback:output_type -> plant.CommonResp - 46, // 131: plant.PlantService.GetTopicList:output_type -> plant.TopicListResp - 45, // 132: plant.PlantService.GetTopicDetail:output_type -> plant.TopicInfo - 0, // 133: plant.PlantService.CreateTopic:output_type -> plant.CommonResp - 0, // 134: plant.PlantService.UpdateTopic:output_type -> plant.CommonResp - 0, // 135: plant.PlantService.DeleteTopic:output_type -> plant.CommonResp - 51, // 136: plant.PlantService.GetExchangeItemList:output_type -> plant.ExchangeItemListResp - 49, // 137: plant.PlantService.GetExchangeItemDetail:output_type -> plant.ExchangeItemInfo - 0, // 138: plant.PlantService.CreateExchangeItem:output_type -> plant.CommonResp - 0, // 139: plant.PlantService.UpdateExchangeItem:output_type -> plant.CommonResp - 0, // 140: plant.PlantService.DeleteExchangeItem:output_type -> plant.CommonResp - 0, // 141: plant.PlantService.CreateExchangeOrder:output_type -> plant.CommonResp - 57, // 142: plant.PlantService.GetMyExchangeOrders:output_type -> plant.ExchangeOrderListResp - 57, // 143: plant.PlantService.GetExchangeOrderList:output_type -> plant.ExchangeOrderListResp - 0, // 144: plant.PlantService.UpdateExchangeOrder:output_type -> plant.CommonResp - 63, // 145: plant.PlantService.GetLevelConfigList:output_type -> plant.LevelConfigListResp - 62, // 146: plant.PlantService.GetLevelConfigDetail:output_type -> plant.LevelConfigInfo - 0, // 147: plant.PlantService.CreateLevelConfig:output_type -> plant.CommonResp - 0, // 148: plant.PlantService.UpdateLevelConfig:output_type -> plant.CommonResp - 0, // 149: plant.PlantService.DeleteLevelConfig:output_type -> plant.CommonResp - 68, // 150: plant.PlantService.GetBadgeConfigList:output_type -> plant.BadgeConfigListResp - 66, // 151: plant.PlantService.GetBadgeConfigDetail:output_type -> plant.BadgeConfigInfo - 74, // 152: plant.PlantService.GetBadgeConfigTree:output_type -> plant.BadgeConfigTreeResp - 0, // 153: plant.PlantService.CreateBadgeConfig:output_type -> plant.CommonResp - 0, // 154: plant.PlantService.UpdateBadgeConfig:output_type -> plant.CommonResp - 0, // 155: plant.PlantService.DeleteBadgeConfig:output_type -> plant.CommonResp - 30, // 156: plant.PlantService.GetWikiClassDetail:output_type -> plant.WikiClassInfo - 78, // 157: plant.PlantService.GetAiChatHistory:output_type -> plant.AiChatHistoryResp - 0, // 158: plant.PlantService.SaveAiChatHistory:output_type -> plant.CommonResp - 0, // 159: plant.PlantService.DeleteAiChatHistory:output_type -> plant.CommonResp - 0, // 160: plant.PlantService.ClearAiChatHistory:output_type -> plant.CommonResp - 75, // 161: plant.PlantService.GetAiChatQuota:output_type -> plant.AiQuotaResp - 93, // [93:162] is the sub-list for method output_type - 24, // [24:93] is the sub-list for method input_type - 24, // [24:24] is the sub-list for extension type_name - 24, // [24:24] is the sub-list for extension extendee - 0, // [0:24] is the sub-list for field type_name -} - -func init() { file_pb_plant_proto_init() } -func file_pb_plant_proto_init() { - if File_pb_plant_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_pb_plant_proto_rawDesc), len(file_pb_plant_proto_rawDesc)), - NumEnums: 0, - NumMessages: 79, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_pb_plant_proto_goTypes, - DependencyIndexes: file_pb_plant_proto_depIdxs, - MessageInfos: file_pb_plant_proto_msgTypes, - }.Build() - File_pb_plant_proto = out.File - file_pb_plant_proto_goTypes = nil - file_pb_plant_proto_depIdxs = nil -} diff --git a/app/plant/rpc/pb/plant.proto b/app/plant/rpc/pb/plant.proto index fc2cf4d..a60780e 100644 --- a/app/plant/rpc/pb/plant.proto +++ b/app/plant/rpc/pb/plant.proto @@ -42,6 +42,18 @@ message PlantUserProfile { int64 repotCount = 13; int64 pruneCount = 14; int64 photoCount = 15; + string miniOpenId = 16; + string sessionKey = 17; + string unionId = 18; + string saOpenId = 19; +} + +message FindOrCreateUserByOpenIdReq { + string openId = 1; + string sessionKey = 2; + string clientId = 3; + string unionId = 4; + string saOpenId = 5; } message GetProfileReq { @@ -778,6 +790,7 @@ message AiChatHistoryResp { service PlantService { // 用户Profile rpc GetUserProfile(GetProfileReq) returns (PlantUserProfile); + rpc FindOrCreateUserByOpenId(FindOrCreateUserByOpenIdReq) returns (PlantUserProfile); rpc UpdateUserProfile(UpdateProfileReq) returns (CommonResp); rpc GetMyBadges(GetProfileReq) returns (UserBadgeListResp); rpc GetMyStars(GetProfileReq) returns (UserStarListResp); diff --git a/app/plant/rpc/pb/plant_grpc.pb.go b/app/plant/rpc/pb/plant_grpc.pb.go deleted file mode 100644 index 3f69543..0000000 --- a/app/plant/rpc/pb/plant_grpc.pb.go +++ /dev/null @@ -1,2725 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.6.1 -// - protoc v7.34.1 -// source: pb/plant.proto - -package plant - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - PlantService_GetUserProfile_FullMethodName = "/plant.PlantService/GetUserProfile" - PlantService_UpdateUserProfile_FullMethodName = "/plant.PlantService/UpdateUserProfile" - PlantService_GetMyBadges_FullMethodName = "/plant.PlantService/GetMyBadges" - PlantService_GetMyStars_FullMethodName = "/plant.PlantService/GetMyStars" - PlantService_CreatePlant_FullMethodName = "/plant.PlantService/CreatePlant" - PlantService_UpdatePlant_FullMethodName = "/plant.PlantService/UpdatePlant" - PlantService_DeletePlant_FullMethodName = "/plant.PlantService/DeletePlant" - PlantService_GetPlantList_FullMethodName = "/plant.PlantService/GetPlantList" - PlantService_GetPlantDetail_FullMethodName = "/plant.PlantService/GetPlantDetail" - PlantService_AddCarePlan_FullMethodName = "/plant.PlantService/AddCarePlan" - PlantService_DeleteCarePlan_FullMethodName = "/plant.PlantService/DeleteCarePlan" - PlantService_GetTodayTaskList_FullMethodName = "/plant.PlantService/GetTodayTaskList" - PlantService_CompleteTask_FullMethodName = "/plant.PlantService/CompleteTask" - PlantService_AddCareRecord_FullMethodName = "/plant.PlantService/AddCareRecord" - PlantService_AddGrowthRecord_FullMethodName = "/plant.PlantService/AddGrowthRecord" - PlantService_GetWikiList_FullMethodName = "/plant.PlantService/GetWikiList" - PlantService_GetWikiDetail_FullMethodName = "/plant.PlantService/GetWikiDetail" - PlantService_CreateWiki_FullMethodName = "/plant.PlantService/CreateWiki" - PlantService_UpdateWiki_FullMethodName = "/plant.PlantService/UpdateWiki" - PlantService_DeleteWiki_FullMethodName = "/plant.PlantService/DeleteWiki" - PlantService_SyncWikiVector_FullMethodName = "/plant.PlantService/SyncWikiVector" - PlantService_DeleteWikiVector_FullMethodName = "/plant.PlantService/DeleteWikiVector" - PlantService_SyncAllWikiVector_FullMethodName = "/plant.PlantService/SyncAllWikiVector" - PlantService_GetWikiClassList_FullMethodName = "/plant.PlantService/GetWikiClassList" - PlantService_CreateWikiClass_FullMethodName = "/plant.PlantService/CreateWikiClass" - PlantService_UpdateWikiClass_FullMethodName = "/plant.PlantService/UpdateWikiClass" - PlantService_DeleteWikiClass_FullMethodName = "/plant.PlantService/DeleteWikiClass" - PlantService_ToggleWikiStar_FullMethodName = "/plant.PlantService/ToggleWikiStar" - PlantService_GetMyClassifyLog_FullMethodName = "/plant.PlantService/GetMyClassifyLog" - PlantService_DeleteClassifyLog_FullMethodName = "/plant.PlantService/DeleteClassifyLog" - PlantService_CreatePost_FullMethodName = "/plant.PlantService/CreatePost" - PlantService_DeletePost_FullMethodName = "/plant.PlantService/DeletePost" - PlantService_GetPostList_FullMethodName = "/plant.PlantService/GetPostList" - PlantService_GetPostDetail_FullMethodName = "/plant.PlantService/GetPostDetail" - PlantService_CommentPost_FullMethodName = "/plant.PlantService/CommentPost" - PlantService_LikePost_FullMethodName = "/plant.PlantService/LikePost" - PlantService_StarPost_FullMethodName = "/plant.PlantService/StarPost" - PlantService_MediaCheckCallback_FullMethodName = "/plant.PlantService/MediaCheckCallback" - PlantService_GetTopicList_FullMethodName = "/plant.PlantService/GetTopicList" - PlantService_GetTopicDetail_FullMethodName = "/plant.PlantService/GetTopicDetail" - PlantService_CreateTopic_FullMethodName = "/plant.PlantService/CreateTopic" - PlantService_UpdateTopic_FullMethodName = "/plant.PlantService/UpdateTopic" - PlantService_DeleteTopic_FullMethodName = "/plant.PlantService/DeleteTopic" - PlantService_GetExchangeItemList_FullMethodName = "/plant.PlantService/GetExchangeItemList" - PlantService_GetExchangeItemDetail_FullMethodName = "/plant.PlantService/GetExchangeItemDetail" - PlantService_CreateExchangeItem_FullMethodName = "/plant.PlantService/CreateExchangeItem" - PlantService_UpdateExchangeItem_FullMethodName = "/plant.PlantService/UpdateExchangeItem" - PlantService_DeleteExchangeItem_FullMethodName = "/plant.PlantService/DeleteExchangeItem" - PlantService_CreateExchangeOrder_FullMethodName = "/plant.PlantService/CreateExchangeOrder" - PlantService_GetMyExchangeOrders_FullMethodName = "/plant.PlantService/GetMyExchangeOrders" - PlantService_GetExchangeOrderList_FullMethodName = "/plant.PlantService/GetExchangeOrderList" - PlantService_UpdateExchangeOrder_FullMethodName = "/plant.PlantService/UpdateExchangeOrder" - PlantService_GetLevelConfigList_FullMethodName = "/plant.PlantService/GetLevelConfigList" - PlantService_GetLevelConfigDetail_FullMethodName = "/plant.PlantService/GetLevelConfigDetail" - PlantService_CreateLevelConfig_FullMethodName = "/plant.PlantService/CreateLevelConfig" - PlantService_UpdateLevelConfig_FullMethodName = "/plant.PlantService/UpdateLevelConfig" - PlantService_DeleteLevelConfig_FullMethodName = "/plant.PlantService/DeleteLevelConfig" - PlantService_GetBadgeConfigList_FullMethodName = "/plant.PlantService/GetBadgeConfigList" - PlantService_GetBadgeConfigDetail_FullMethodName = "/plant.PlantService/GetBadgeConfigDetail" - PlantService_GetBadgeConfigTree_FullMethodName = "/plant.PlantService/GetBadgeConfigTree" - PlantService_CreateBadgeConfig_FullMethodName = "/plant.PlantService/CreateBadgeConfig" - PlantService_UpdateBadgeConfig_FullMethodName = "/plant.PlantService/UpdateBadgeConfig" - PlantService_DeleteBadgeConfig_FullMethodName = "/plant.PlantService/DeleteBadgeConfig" - PlantService_GetWikiClassDetail_FullMethodName = "/plant.PlantService/GetWikiClassDetail" - PlantService_GetAiChatHistory_FullMethodName = "/plant.PlantService/GetAiChatHistory" - PlantService_SaveAiChatHistory_FullMethodName = "/plant.PlantService/SaveAiChatHistory" - PlantService_DeleteAiChatHistory_FullMethodName = "/plant.PlantService/DeleteAiChatHistory" - PlantService_ClearAiChatHistory_FullMethodName = "/plant.PlantService/ClearAiChatHistory" - PlantService_GetAiChatQuota_FullMethodName = "/plant.PlantService/GetAiChatQuota" -) - -// PlantServiceClient is the client API for PlantService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type PlantServiceClient 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) - 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) -} - -type plantServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewPlantServiceClient(cc grpc.ClientConnInterface) PlantServiceClient { - return &plantServiceClient{cc} -} - -func (c *plantServiceClient) GetUserProfile(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*PlantUserProfile, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PlantUserProfile) - err := c.cc.Invoke(ctx, PlantService_GetUserProfile_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) UpdateUserProfile(ctx context.Context, in *UpdateProfileReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_UpdateUserProfile_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetMyBadges(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*UserBadgeListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UserBadgeListResp) - err := c.cc.Invoke(ctx, PlantService_GetMyBadges_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetMyStars(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*UserStarListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(UserStarListResp) - err := c.cc.Invoke(ctx, PlantService_GetMyStars_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CreatePlant(ctx context.Context, in *CreatePlantReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CreatePlant_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) UpdatePlant(ctx context.Context, in *UpdatePlantReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_UpdatePlant_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeletePlant(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeletePlant_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetPlantList(ctx context.Context, in *PlantListReq, opts ...grpc.CallOption) (*PlantListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PlantListResp) - err := c.cc.Invoke(ctx, PlantService_GetPlantList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetPlantDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*PlantDetailResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PlantDetailResp) - err := c.cc.Invoke(ctx, PlantService_GetPlantDetail_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) AddCarePlan(ctx context.Context, in *AddCarePlanReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_AddCarePlan_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteCarePlan(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteCarePlan_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetTodayTaskList(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*CareTaskListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CareTaskListResp) - err := c.cc.Invoke(ctx, PlantService_GetTodayTaskList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CompleteTask(ctx context.Context, in *CompleteTaskReq, opts ...grpc.CallOption) (*TaskCompletionResult, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(TaskCompletionResult) - err := c.cc.Invoke(ctx, PlantService_CompleteTask_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) AddCareRecord(ctx context.Context, in *AddCareRecordReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_AddCareRecord_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) AddGrowthRecord(ctx context.Context, in *AddGrowthRecordReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_AddGrowthRecord_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetWikiList(ctx context.Context, in *WikiListReq, opts ...grpc.CallOption) (*WikiListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(WikiListResp) - err := c.cc.Invoke(ctx, PlantService_GetWikiList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetWikiDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*WikiDetailResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(WikiDetailResp) - err := c.cc.Invoke(ctx, PlantService_GetWikiDetail_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CreateWiki(ctx context.Context, in *CreateWikiReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CreateWiki_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) UpdateWiki(ctx context.Context, in *UpdateWikiReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_UpdateWiki_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteWiki(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteWiki_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) SyncWikiVector(ctx context.Context, in *SyncWikiVectorReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_SyncWikiVector_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteWikiVector(ctx context.Context, in *SyncWikiVectorReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteWikiVector_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) SyncAllWikiVector(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_SyncAllWikiVector_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetWikiClassList(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*WikiClassListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(WikiClassListResp) - err := c.cc.Invoke(ctx, PlantService_GetWikiClassList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CreateWikiClass(ctx context.Context, in *CreateWikiClassReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CreateWikiClass_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) UpdateWikiClass(ctx context.Context, in *UpdateWikiClassReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_UpdateWikiClass_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteWikiClass(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteWikiClass_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) ToggleWikiStar(ctx context.Context, in *ToggleStarReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_ToggleWikiStar_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetMyClassifyLog(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*ClassifyLogListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ClassifyLogListResp) - err := c.cc.Invoke(ctx, PlantService_GetMyClassifyLog_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteClassifyLog(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteClassifyLog_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CreatePost(ctx context.Context, in *CreatePostReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CreatePost_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeletePost(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeletePost_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetPostList(ctx context.Context, in *PostListReq, opts ...grpc.CallOption) (*PostListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PostListResp) - err := c.cc.Invoke(ctx, PlantService_GetPostList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetPostDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*PostDetailResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PostDetailResp) - err := c.cc.Invoke(ctx, PlantService_GetPostDetail_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CommentPost(ctx context.Context, in *CommentPostReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CommentPost_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) LikePost(ctx context.Context, in *LikePostReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_LikePost_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) StarPost(ctx context.Context, in *LikePostReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_StarPost_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) MediaCheckCallback(ctx context.Context, in *MediaCheckCallbackReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_MediaCheckCallback_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetTopicList(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*TopicListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(TopicListResp) - err := c.cc.Invoke(ctx, PlantService_GetTopicList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetTopicDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*TopicInfo, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(TopicInfo) - err := c.cc.Invoke(ctx, PlantService_GetTopicDetail_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CreateTopic(ctx context.Context, in *CreateTopicReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CreateTopic_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) UpdateTopic(ctx context.Context, in *UpdateTopicReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_UpdateTopic_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteTopic(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteTopic_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetExchangeItemList(ctx context.Context, in *ExchangeItemListReq, opts ...grpc.CallOption) (*ExchangeItemListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ExchangeItemListResp) - err := c.cc.Invoke(ctx, PlantService_GetExchangeItemList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetExchangeItemDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*ExchangeItemInfo, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ExchangeItemInfo) - err := c.cc.Invoke(ctx, PlantService_GetExchangeItemDetail_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CreateExchangeItem(ctx context.Context, in *CreateExchangeItemReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CreateExchangeItem_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) UpdateExchangeItem(ctx context.Context, in *UpdateExchangeItemReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_UpdateExchangeItem_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteExchangeItem(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteExchangeItem_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CreateExchangeOrder(ctx context.Context, in *CreateExchangeOrderReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CreateExchangeOrder_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetMyExchangeOrders(ctx context.Context, in *ExchangeOrderListReq, opts ...grpc.CallOption) (*ExchangeOrderListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ExchangeOrderListResp) - err := c.cc.Invoke(ctx, PlantService_GetMyExchangeOrders_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetExchangeOrderList(ctx context.Context, in *ExchangeOrderListReq, opts ...grpc.CallOption) (*ExchangeOrderListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ExchangeOrderListResp) - err := c.cc.Invoke(ctx, PlantService_GetExchangeOrderList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) UpdateExchangeOrder(ctx context.Context, in *UpdateExchangeOrderReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_UpdateExchangeOrder_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetLevelConfigList(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*LevelConfigListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(LevelConfigListResp) - err := c.cc.Invoke(ctx, PlantService_GetLevelConfigList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetLevelConfigDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*LevelConfigInfo, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(LevelConfigInfo) - err := c.cc.Invoke(ctx, PlantService_GetLevelConfigDetail_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CreateLevelConfig(ctx context.Context, in *CreateLevelConfigReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CreateLevelConfig_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) UpdateLevelConfig(ctx context.Context, in *UpdateLevelConfigReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_UpdateLevelConfig_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteLevelConfig(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteLevelConfig_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetBadgeConfigList(ctx context.Context, in *BadgeConfigListReq, opts ...grpc.CallOption) (*BadgeConfigListResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(BadgeConfigListResp) - err := c.cc.Invoke(ctx, PlantService_GetBadgeConfigList_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetBadgeConfigDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*BadgeConfigInfo, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(BadgeConfigInfo) - err := c.cc.Invoke(ctx, PlantService_GetBadgeConfigDetail_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetBadgeConfigTree(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*BadgeConfigTreeResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(BadgeConfigTreeResp) - err := c.cc.Invoke(ctx, PlantService_GetBadgeConfigTree_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) CreateBadgeConfig(ctx context.Context, in *CreateBadgeConfigReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_CreateBadgeConfig_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) UpdateBadgeConfig(ctx context.Context, in *UpdateBadgeConfigReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_UpdateBadgeConfig_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteBadgeConfig(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteBadgeConfig_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetWikiClassDetail(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*WikiClassInfo, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(WikiClassInfo) - err := c.cc.Invoke(ctx, PlantService_GetWikiClassDetail_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetAiChatHistory(ctx context.Context, in *AiChatHistoryReq, opts ...grpc.CallOption) (*AiChatHistoryResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(AiChatHistoryResp) - err := c.cc.Invoke(ctx, PlantService_GetAiChatHistory_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) SaveAiChatHistory(ctx context.Context, in *SaveAiChatHistoryReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_SaveAiChatHistory_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) DeleteAiChatHistory(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_DeleteAiChatHistory_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) ClearAiChatHistory(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*CommonResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(CommonResp) - err := c.cc.Invoke(ctx, PlantService_ClearAiChatHistory_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plantServiceClient) GetAiChatQuota(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*AiQuotaResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(AiQuotaResp) - err := c.cc.Invoke(ctx, PlantService_GetAiChatQuota_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PlantServiceServer is the server API for PlantService service. -// All implementations must embed UnimplementedPlantServiceServer -// for forward compatibility. -type PlantServiceServer interface { - // 用户Profile - GetUserProfile(context.Context, *GetProfileReq) (*PlantUserProfile, error) - UpdateUserProfile(context.Context, *UpdateProfileReq) (*CommonResp, error) - GetMyBadges(context.Context, *GetProfileReq) (*UserBadgeListResp, error) - GetMyStars(context.Context, *GetProfileReq) (*UserStarListResp, error) - // 我的植物 - CreatePlant(context.Context, *CreatePlantReq) (*CommonResp, error) - UpdatePlant(context.Context, *UpdatePlantReq) (*CommonResp, error) - DeletePlant(context.Context, *IdsReq) (*CommonResp, error) - GetPlantList(context.Context, *PlantListReq) (*PlantListResp, error) - GetPlantDetail(context.Context, *IdReq) (*PlantDetailResp, error) - // 养护 - AddCarePlan(context.Context, *AddCarePlanReq) (*CommonResp, error) - DeleteCarePlan(context.Context, *IdsReq) (*CommonResp, error) - GetTodayTaskList(context.Context, *GetProfileReq) (*CareTaskListResp, error) - CompleteTask(context.Context, *CompleteTaskReq) (*TaskCompletionResult, error) - AddCareRecord(context.Context, *AddCareRecordReq) (*CommonResp, error) - AddGrowthRecord(context.Context, *AddGrowthRecordReq) (*CommonResp, error) - // 百科 - GetWikiList(context.Context, *WikiListReq) (*WikiListResp, error) - GetWikiDetail(context.Context, *IdReq) (*WikiDetailResp, error) - CreateWiki(context.Context, *CreateWikiReq) (*CommonResp, error) - UpdateWiki(context.Context, *UpdateWikiReq) (*CommonResp, error) - DeleteWiki(context.Context, *IdsReq) (*CommonResp, error) - SyncWikiVector(context.Context, *SyncWikiVectorReq) (*CommonResp, error) - DeleteWikiVector(context.Context, *SyncWikiVectorReq) (*CommonResp, error) - SyncAllWikiVector(context.Context, *PageReq) (*CommonResp, error) - GetWikiClassList(context.Context, *IdReq) (*WikiClassListResp, error) - CreateWikiClass(context.Context, *CreateWikiClassReq) (*CommonResp, error) - UpdateWikiClass(context.Context, *UpdateWikiClassReq) (*CommonResp, error) - DeleteWikiClass(context.Context, *IdsReq) (*CommonResp, error) - ToggleWikiStar(context.Context, *ToggleStarReq) (*CommonResp, error) - // OCR - GetMyClassifyLog(context.Context, *GetProfileReq) (*ClassifyLogListResp, error) - DeleteClassifyLog(context.Context, *IdsReq) (*CommonResp, error) - // 社区 - CreatePost(context.Context, *CreatePostReq) (*CommonResp, error) - DeletePost(context.Context, *IdsReq) (*CommonResp, error) - GetPostList(context.Context, *PostListReq) (*PostListResp, error) - GetPostDetail(context.Context, *IdReq) (*PostDetailResp, error) - CommentPost(context.Context, *CommentPostReq) (*CommonResp, error) - LikePost(context.Context, *LikePostReq) (*CommonResp, error) - StarPost(context.Context, *LikePostReq) (*CommonResp, error) - MediaCheckCallback(context.Context, *MediaCheckCallbackReq) (*CommonResp, error) - // 话题 - GetTopicList(context.Context, *IdReq) (*TopicListResp, error) - GetTopicDetail(context.Context, *IdReq) (*TopicInfo, error) - CreateTopic(context.Context, *CreateTopicReq) (*CommonResp, error) - UpdateTopic(context.Context, *UpdateTopicReq) (*CommonResp, error) - DeleteTopic(context.Context, *IdsReq) (*CommonResp, error) - // 兑换 - GetExchangeItemList(context.Context, *ExchangeItemListReq) (*ExchangeItemListResp, error) - GetExchangeItemDetail(context.Context, *IdReq) (*ExchangeItemInfo, error) - CreateExchangeItem(context.Context, *CreateExchangeItemReq) (*CommonResp, error) - UpdateExchangeItem(context.Context, *UpdateExchangeItemReq) (*CommonResp, error) - DeleteExchangeItem(context.Context, *IdsReq) (*CommonResp, error) - CreateExchangeOrder(context.Context, *CreateExchangeOrderReq) (*CommonResp, error) - GetMyExchangeOrders(context.Context, *ExchangeOrderListReq) (*ExchangeOrderListResp, error) - GetExchangeOrderList(context.Context, *ExchangeOrderListReq) (*ExchangeOrderListResp, error) - UpdateExchangeOrder(context.Context, *UpdateExchangeOrderReq) (*CommonResp, error) - // 配置 - GetLevelConfigList(context.Context, *PageReq) (*LevelConfigListResp, error) - GetLevelConfigDetail(context.Context, *IdReq) (*LevelConfigInfo, error) - CreateLevelConfig(context.Context, *CreateLevelConfigReq) (*CommonResp, error) - UpdateLevelConfig(context.Context, *UpdateLevelConfigReq) (*CommonResp, error) - DeleteLevelConfig(context.Context, *IdsReq) (*CommonResp, error) - GetBadgeConfigList(context.Context, *BadgeConfigListReq) (*BadgeConfigListResp, error) - GetBadgeConfigDetail(context.Context, *IdReq) (*BadgeConfigInfo, error) - GetBadgeConfigTree(context.Context, *IdReq) (*BadgeConfigTreeResp, error) - CreateBadgeConfig(context.Context, *CreateBadgeConfigReq) (*CommonResp, error) - UpdateBadgeConfig(context.Context, *UpdateBadgeConfigReq) (*CommonResp, error) - DeleteBadgeConfig(context.Context, *IdsReq) (*CommonResp, error) - GetWikiClassDetail(context.Context, *IdReq) (*WikiClassInfo, error) - // AI - GetAiChatHistory(context.Context, *AiChatHistoryReq) (*AiChatHistoryResp, error) - SaveAiChatHistory(context.Context, *SaveAiChatHistoryReq) (*CommonResp, error) - DeleteAiChatHistory(context.Context, *IdsReq) (*CommonResp, error) - ClearAiChatHistory(context.Context, *GetProfileReq) (*CommonResp, error) - GetAiChatQuota(context.Context, *GetProfileReq) (*AiQuotaResp, error) - mustEmbedUnimplementedPlantServiceServer() -} - -// UnimplementedPlantServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedPlantServiceServer struct{} - -func (UnimplementedPlantServiceServer) GetUserProfile(context.Context, *GetProfileReq) (*PlantUserProfile, error) { - return nil, status.Error(codes.Unimplemented, "method GetUserProfile not implemented") -} -func (UnimplementedPlantServiceServer) UpdateUserProfile(context.Context, *UpdateProfileReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method UpdateUserProfile not implemented") -} -func (UnimplementedPlantServiceServer) GetMyBadges(context.Context, *GetProfileReq) (*UserBadgeListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetMyBadges not implemented") -} -func (UnimplementedPlantServiceServer) GetMyStars(context.Context, *GetProfileReq) (*UserStarListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetMyStars not implemented") -} -func (UnimplementedPlantServiceServer) CreatePlant(context.Context, *CreatePlantReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CreatePlant not implemented") -} -func (UnimplementedPlantServiceServer) UpdatePlant(context.Context, *UpdatePlantReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method UpdatePlant not implemented") -} -func (UnimplementedPlantServiceServer) DeletePlant(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeletePlant not implemented") -} -func (UnimplementedPlantServiceServer) GetPlantList(context.Context, *PlantListReq) (*PlantListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetPlantList not implemented") -} -func (UnimplementedPlantServiceServer) GetPlantDetail(context.Context, *IdReq) (*PlantDetailResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetPlantDetail not implemented") -} -func (UnimplementedPlantServiceServer) AddCarePlan(context.Context, *AddCarePlanReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method AddCarePlan not implemented") -} -func (UnimplementedPlantServiceServer) DeleteCarePlan(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteCarePlan not implemented") -} -func (UnimplementedPlantServiceServer) GetTodayTaskList(context.Context, *GetProfileReq) (*CareTaskListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetTodayTaskList not implemented") -} -func (UnimplementedPlantServiceServer) CompleteTask(context.Context, *CompleteTaskReq) (*TaskCompletionResult, error) { - return nil, status.Error(codes.Unimplemented, "method CompleteTask not implemented") -} -func (UnimplementedPlantServiceServer) AddCareRecord(context.Context, *AddCareRecordReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method AddCareRecord not implemented") -} -func (UnimplementedPlantServiceServer) AddGrowthRecord(context.Context, *AddGrowthRecordReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method AddGrowthRecord not implemented") -} -func (UnimplementedPlantServiceServer) GetWikiList(context.Context, *WikiListReq) (*WikiListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetWikiList not implemented") -} -func (UnimplementedPlantServiceServer) GetWikiDetail(context.Context, *IdReq) (*WikiDetailResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetWikiDetail not implemented") -} -func (UnimplementedPlantServiceServer) CreateWiki(context.Context, *CreateWikiReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CreateWiki not implemented") -} -func (UnimplementedPlantServiceServer) UpdateWiki(context.Context, *UpdateWikiReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method UpdateWiki not implemented") -} -func (UnimplementedPlantServiceServer) DeleteWiki(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteWiki not implemented") -} -func (UnimplementedPlantServiceServer) SyncWikiVector(context.Context, *SyncWikiVectorReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method SyncWikiVector not implemented") -} -func (UnimplementedPlantServiceServer) DeleteWikiVector(context.Context, *SyncWikiVectorReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteWikiVector not implemented") -} -func (UnimplementedPlantServiceServer) SyncAllWikiVector(context.Context, *PageReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method SyncAllWikiVector not implemented") -} -func (UnimplementedPlantServiceServer) GetWikiClassList(context.Context, *IdReq) (*WikiClassListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetWikiClassList not implemented") -} -func (UnimplementedPlantServiceServer) CreateWikiClass(context.Context, *CreateWikiClassReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CreateWikiClass not implemented") -} -func (UnimplementedPlantServiceServer) UpdateWikiClass(context.Context, *UpdateWikiClassReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method UpdateWikiClass not implemented") -} -func (UnimplementedPlantServiceServer) DeleteWikiClass(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteWikiClass not implemented") -} -func (UnimplementedPlantServiceServer) ToggleWikiStar(context.Context, *ToggleStarReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method ToggleWikiStar not implemented") -} -func (UnimplementedPlantServiceServer) GetMyClassifyLog(context.Context, *GetProfileReq) (*ClassifyLogListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetMyClassifyLog not implemented") -} -func (UnimplementedPlantServiceServer) DeleteClassifyLog(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteClassifyLog not implemented") -} -func (UnimplementedPlantServiceServer) CreatePost(context.Context, *CreatePostReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CreatePost not implemented") -} -func (UnimplementedPlantServiceServer) DeletePost(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeletePost not implemented") -} -func (UnimplementedPlantServiceServer) GetPostList(context.Context, *PostListReq) (*PostListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetPostList not implemented") -} -func (UnimplementedPlantServiceServer) GetPostDetail(context.Context, *IdReq) (*PostDetailResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetPostDetail not implemented") -} -func (UnimplementedPlantServiceServer) CommentPost(context.Context, *CommentPostReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CommentPost not implemented") -} -func (UnimplementedPlantServiceServer) LikePost(context.Context, *LikePostReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method LikePost not implemented") -} -func (UnimplementedPlantServiceServer) StarPost(context.Context, *LikePostReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method StarPost not implemented") -} -func (UnimplementedPlantServiceServer) MediaCheckCallback(context.Context, *MediaCheckCallbackReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method MediaCheckCallback not implemented") -} -func (UnimplementedPlantServiceServer) GetTopicList(context.Context, *IdReq) (*TopicListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetTopicList not implemented") -} -func (UnimplementedPlantServiceServer) GetTopicDetail(context.Context, *IdReq) (*TopicInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetTopicDetail not implemented") -} -func (UnimplementedPlantServiceServer) CreateTopic(context.Context, *CreateTopicReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CreateTopic not implemented") -} -func (UnimplementedPlantServiceServer) UpdateTopic(context.Context, *UpdateTopicReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method UpdateTopic not implemented") -} -func (UnimplementedPlantServiceServer) DeleteTopic(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteTopic not implemented") -} -func (UnimplementedPlantServiceServer) GetExchangeItemList(context.Context, *ExchangeItemListReq) (*ExchangeItemListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetExchangeItemList not implemented") -} -func (UnimplementedPlantServiceServer) GetExchangeItemDetail(context.Context, *IdReq) (*ExchangeItemInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetExchangeItemDetail not implemented") -} -func (UnimplementedPlantServiceServer) CreateExchangeItem(context.Context, *CreateExchangeItemReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CreateExchangeItem not implemented") -} -func (UnimplementedPlantServiceServer) UpdateExchangeItem(context.Context, *UpdateExchangeItemReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method UpdateExchangeItem not implemented") -} -func (UnimplementedPlantServiceServer) DeleteExchangeItem(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteExchangeItem not implemented") -} -func (UnimplementedPlantServiceServer) CreateExchangeOrder(context.Context, *CreateExchangeOrderReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CreateExchangeOrder not implemented") -} -func (UnimplementedPlantServiceServer) GetMyExchangeOrders(context.Context, *ExchangeOrderListReq) (*ExchangeOrderListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetMyExchangeOrders not implemented") -} -func (UnimplementedPlantServiceServer) GetExchangeOrderList(context.Context, *ExchangeOrderListReq) (*ExchangeOrderListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetExchangeOrderList not implemented") -} -func (UnimplementedPlantServiceServer) UpdateExchangeOrder(context.Context, *UpdateExchangeOrderReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method UpdateExchangeOrder not implemented") -} -func (UnimplementedPlantServiceServer) GetLevelConfigList(context.Context, *PageReq) (*LevelConfigListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetLevelConfigList not implemented") -} -func (UnimplementedPlantServiceServer) GetLevelConfigDetail(context.Context, *IdReq) (*LevelConfigInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetLevelConfigDetail not implemented") -} -func (UnimplementedPlantServiceServer) CreateLevelConfig(context.Context, *CreateLevelConfigReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CreateLevelConfig not implemented") -} -func (UnimplementedPlantServiceServer) UpdateLevelConfig(context.Context, *UpdateLevelConfigReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method UpdateLevelConfig not implemented") -} -func (UnimplementedPlantServiceServer) DeleteLevelConfig(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteLevelConfig not implemented") -} -func (UnimplementedPlantServiceServer) GetBadgeConfigList(context.Context, *BadgeConfigListReq) (*BadgeConfigListResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetBadgeConfigList not implemented") -} -func (UnimplementedPlantServiceServer) GetBadgeConfigDetail(context.Context, *IdReq) (*BadgeConfigInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetBadgeConfigDetail not implemented") -} -func (UnimplementedPlantServiceServer) GetBadgeConfigTree(context.Context, *IdReq) (*BadgeConfigTreeResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetBadgeConfigTree not implemented") -} -func (UnimplementedPlantServiceServer) CreateBadgeConfig(context.Context, *CreateBadgeConfigReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method CreateBadgeConfig not implemented") -} -func (UnimplementedPlantServiceServer) UpdateBadgeConfig(context.Context, *UpdateBadgeConfigReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method UpdateBadgeConfig not implemented") -} -func (UnimplementedPlantServiceServer) DeleteBadgeConfig(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteBadgeConfig not implemented") -} -func (UnimplementedPlantServiceServer) GetWikiClassDetail(context.Context, *IdReq) (*WikiClassInfo, error) { - return nil, status.Error(codes.Unimplemented, "method GetWikiClassDetail not implemented") -} -func (UnimplementedPlantServiceServer) GetAiChatHistory(context.Context, *AiChatHistoryReq) (*AiChatHistoryResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetAiChatHistory not implemented") -} -func (UnimplementedPlantServiceServer) SaveAiChatHistory(context.Context, *SaveAiChatHistoryReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method SaveAiChatHistory not implemented") -} -func (UnimplementedPlantServiceServer) DeleteAiChatHistory(context.Context, *IdsReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method DeleteAiChatHistory not implemented") -} -func (UnimplementedPlantServiceServer) ClearAiChatHistory(context.Context, *GetProfileReq) (*CommonResp, error) { - return nil, status.Error(codes.Unimplemented, "method ClearAiChatHistory not implemented") -} -func (UnimplementedPlantServiceServer) GetAiChatQuota(context.Context, *GetProfileReq) (*AiQuotaResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetAiChatQuota not implemented") -} -func (UnimplementedPlantServiceServer) mustEmbedUnimplementedPlantServiceServer() {} -func (UnimplementedPlantServiceServer) testEmbeddedByValue() {} - -// UnsafePlantServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to PlantServiceServer will -// result in compilation errors. -type UnsafePlantServiceServer interface { - mustEmbedUnimplementedPlantServiceServer() -} - -func RegisterPlantServiceServer(s grpc.ServiceRegistrar, srv PlantServiceServer) { - // If the following call panics, it indicates UnimplementedPlantServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&PlantService_ServiceDesc, srv) -} - -func _PlantService_GetUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProfileReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetUserProfile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetUserProfile_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetUserProfile(ctx, req.(*GetProfileReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_UpdateUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateProfileReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).UpdateUserProfile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_UpdateUserProfile_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).UpdateUserProfile(ctx, req.(*UpdateProfileReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetMyBadges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProfileReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetMyBadges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetMyBadges_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetMyBadges(ctx, req.(*GetProfileReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetMyStars_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProfileReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetMyStars(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetMyStars_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetMyStars(ctx, req.(*GetProfileReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CreatePlant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreatePlantReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CreatePlant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CreatePlant_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CreatePlant(ctx, req.(*CreatePlantReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_UpdatePlant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdatePlantReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).UpdatePlant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_UpdatePlant_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).UpdatePlant(ctx, req.(*UpdatePlantReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeletePlant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeletePlant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeletePlant_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeletePlant(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetPlantList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PlantListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetPlantList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetPlantList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetPlantList(ctx, req.(*PlantListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetPlantDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetPlantDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetPlantDetail_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetPlantDetail(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_AddCarePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddCarePlanReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).AddCarePlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_AddCarePlan_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).AddCarePlan(ctx, req.(*AddCarePlanReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteCarePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteCarePlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteCarePlan_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteCarePlan(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetTodayTaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProfileReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetTodayTaskList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetTodayTaskList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetTodayTaskList(ctx, req.(*GetProfileReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CompleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CompleteTaskReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CompleteTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CompleteTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CompleteTask(ctx, req.(*CompleteTaskReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_AddCareRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddCareRecordReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).AddCareRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_AddCareRecord_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).AddCareRecord(ctx, req.(*AddCareRecordReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_AddGrowthRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddGrowthRecordReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).AddGrowthRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_AddGrowthRecord_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).AddGrowthRecord(ctx, req.(*AddGrowthRecordReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetWikiList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WikiListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetWikiList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetWikiList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetWikiList(ctx, req.(*WikiListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetWikiDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetWikiDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetWikiDetail_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetWikiDetail(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CreateWiki_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateWikiReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CreateWiki(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CreateWiki_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CreateWiki(ctx, req.(*CreateWikiReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_UpdateWiki_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateWikiReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).UpdateWiki(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_UpdateWiki_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).UpdateWiki(ctx, req.(*UpdateWikiReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteWiki_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteWiki(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteWiki_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteWiki(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_SyncWikiVector_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SyncWikiVectorReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).SyncWikiVector(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_SyncWikiVector_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).SyncWikiVector(ctx, req.(*SyncWikiVectorReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteWikiVector_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SyncWikiVectorReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteWikiVector(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteWikiVector_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteWikiVector(ctx, req.(*SyncWikiVectorReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_SyncAllWikiVector_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PageReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).SyncAllWikiVector(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_SyncAllWikiVector_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).SyncAllWikiVector(ctx, req.(*PageReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetWikiClassList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetWikiClassList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetWikiClassList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetWikiClassList(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CreateWikiClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateWikiClassReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CreateWikiClass(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CreateWikiClass_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CreateWikiClass(ctx, req.(*CreateWikiClassReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_UpdateWikiClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateWikiClassReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).UpdateWikiClass(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_UpdateWikiClass_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).UpdateWikiClass(ctx, req.(*UpdateWikiClassReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteWikiClass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteWikiClass(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteWikiClass_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteWikiClass(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_ToggleWikiStar_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ToggleStarReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).ToggleWikiStar(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_ToggleWikiStar_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).ToggleWikiStar(ctx, req.(*ToggleStarReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetMyClassifyLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProfileReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetMyClassifyLog(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetMyClassifyLog_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetMyClassifyLog(ctx, req.(*GetProfileReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteClassifyLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteClassifyLog(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteClassifyLog_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteClassifyLog(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CreatePost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreatePostReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CreatePost(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CreatePost_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CreatePost(ctx, req.(*CreatePostReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeletePost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeletePost(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeletePost_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeletePost(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetPostList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PostListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetPostList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetPostList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetPostList(ctx, req.(*PostListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetPostDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetPostDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetPostDetail_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetPostDetail(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CommentPost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommentPostReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CommentPost(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CommentPost_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CommentPost(ctx, req.(*CommentPostReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_LikePost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LikePostReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).LikePost(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_LikePost_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).LikePost(ctx, req.(*LikePostReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_StarPost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LikePostReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).StarPost(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_StarPost_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).StarPost(ctx, req.(*LikePostReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_MediaCheckCallback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MediaCheckCallbackReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).MediaCheckCallback(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_MediaCheckCallback_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).MediaCheckCallback(ctx, req.(*MediaCheckCallbackReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetTopicList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetTopicList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetTopicList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetTopicList(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetTopicDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetTopicDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetTopicDetail_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetTopicDetail(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CreateTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateTopicReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CreateTopic(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CreateTopic_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CreateTopic(ctx, req.(*CreateTopicReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_UpdateTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateTopicReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).UpdateTopic(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_UpdateTopic_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).UpdateTopic(ctx, req.(*UpdateTopicReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteTopic(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteTopic_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteTopic(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetExchangeItemList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExchangeItemListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetExchangeItemList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetExchangeItemList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetExchangeItemList(ctx, req.(*ExchangeItemListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetExchangeItemDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetExchangeItemDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetExchangeItemDetail_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetExchangeItemDetail(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CreateExchangeItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateExchangeItemReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CreateExchangeItem(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CreateExchangeItem_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CreateExchangeItem(ctx, req.(*CreateExchangeItemReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_UpdateExchangeItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateExchangeItemReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).UpdateExchangeItem(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_UpdateExchangeItem_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).UpdateExchangeItem(ctx, req.(*UpdateExchangeItemReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteExchangeItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteExchangeItem(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteExchangeItem_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteExchangeItem(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CreateExchangeOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateExchangeOrderReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CreateExchangeOrder(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CreateExchangeOrder_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CreateExchangeOrder(ctx, req.(*CreateExchangeOrderReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetMyExchangeOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExchangeOrderListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetMyExchangeOrders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetMyExchangeOrders_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetMyExchangeOrders(ctx, req.(*ExchangeOrderListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetExchangeOrderList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExchangeOrderListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetExchangeOrderList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetExchangeOrderList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetExchangeOrderList(ctx, req.(*ExchangeOrderListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_UpdateExchangeOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateExchangeOrderReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).UpdateExchangeOrder(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_UpdateExchangeOrder_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).UpdateExchangeOrder(ctx, req.(*UpdateExchangeOrderReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetLevelConfigList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PageReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetLevelConfigList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetLevelConfigList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetLevelConfigList(ctx, req.(*PageReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetLevelConfigDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetLevelConfigDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetLevelConfigDetail_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetLevelConfigDetail(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CreateLevelConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateLevelConfigReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CreateLevelConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CreateLevelConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CreateLevelConfig(ctx, req.(*CreateLevelConfigReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_UpdateLevelConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateLevelConfigReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).UpdateLevelConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_UpdateLevelConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).UpdateLevelConfig(ctx, req.(*UpdateLevelConfigReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteLevelConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteLevelConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteLevelConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteLevelConfig(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetBadgeConfigList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BadgeConfigListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetBadgeConfigList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetBadgeConfigList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetBadgeConfigList(ctx, req.(*BadgeConfigListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetBadgeConfigDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetBadgeConfigDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetBadgeConfigDetail_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetBadgeConfigDetail(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetBadgeConfigTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetBadgeConfigTree(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetBadgeConfigTree_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetBadgeConfigTree(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_CreateBadgeConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateBadgeConfigReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).CreateBadgeConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_CreateBadgeConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).CreateBadgeConfig(ctx, req.(*CreateBadgeConfigReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_UpdateBadgeConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateBadgeConfigReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).UpdateBadgeConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_UpdateBadgeConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).UpdateBadgeConfig(ctx, req.(*UpdateBadgeConfigReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteBadgeConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteBadgeConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteBadgeConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteBadgeConfig(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetWikiClassDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetWikiClassDetail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetWikiClassDetail_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetWikiClassDetail(ctx, req.(*IdReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetAiChatHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AiChatHistoryReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetAiChatHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetAiChatHistory_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetAiChatHistory(ctx, req.(*AiChatHistoryReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_SaveAiChatHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SaveAiChatHistoryReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).SaveAiChatHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_SaveAiChatHistory_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).SaveAiChatHistory(ctx, req.(*SaveAiChatHistoryReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_DeleteAiChatHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdsReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).DeleteAiChatHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_DeleteAiChatHistory_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).DeleteAiChatHistory(ctx, req.(*IdsReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_ClearAiChatHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProfileReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).ClearAiChatHistory(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_ClearAiChatHistory_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).ClearAiChatHistory(ctx, req.(*GetProfileReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlantService_GetAiChatQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProfileReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlantServiceServer).GetAiChatQuota(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: PlantService_GetAiChatQuota_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlantServiceServer).GetAiChatQuota(ctx, req.(*GetProfileReq)) - } - return interceptor(ctx, in, info, handler) -} - -// PlantService_ServiceDesc is the grpc.ServiceDesc for PlantService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var PlantService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "plant.PlantService", - HandlerType: (*PlantServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetUserProfile", - Handler: _PlantService_GetUserProfile_Handler, - }, - { - MethodName: "UpdateUserProfile", - Handler: _PlantService_UpdateUserProfile_Handler, - }, - { - MethodName: "GetMyBadges", - Handler: _PlantService_GetMyBadges_Handler, - }, - { - MethodName: "GetMyStars", - Handler: _PlantService_GetMyStars_Handler, - }, - { - MethodName: "CreatePlant", - Handler: _PlantService_CreatePlant_Handler, - }, - { - MethodName: "UpdatePlant", - Handler: _PlantService_UpdatePlant_Handler, - }, - { - MethodName: "DeletePlant", - Handler: _PlantService_DeletePlant_Handler, - }, - { - MethodName: "GetPlantList", - Handler: _PlantService_GetPlantList_Handler, - }, - { - MethodName: "GetPlantDetail", - Handler: _PlantService_GetPlantDetail_Handler, - }, - { - MethodName: "AddCarePlan", - Handler: _PlantService_AddCarePlan_Handler, - }, - { - MethodName: "DeleteCarePlan", - Handler: _PlantService_DeleteCarePlan_Handler, - }, - { - MethodName: "GetTodayTaskList", - Handler: _PlantService_GetTodayTaskList_Handler, - }, - { - MethodName: "CompleteTask", - Handler: _PlantService_CompleteTask_Handler, - }, - { - MethodName: "AddCareRecord", - Handler: _PlantService_AddCareRecord_Handler, - }, - { - MethodName: "AddGrowthRecord", - Handler: _PlantService_AddGrowthRecord_Handler, - }, - { - MethodName: "GetWikiList", - Handler: _PlantService_GetWikiList_Handler, - }, - { - MethodName: "GetWikiDetail", - Handler: _PlantService_GetWikiDetail_Handler, - }, - { - MethodName: "CreateWiki", - Handler: _PlantService_CreateWiki_Handler, - }, - { - MethodName: "UpdateWiki", - Handler: _PlantService_UpdateWiki_Handler, - }, - { - MethodName: "DeleteWiki", - Handler: _PlantService_DeleteWiki_Handler, - }, - { - MethodName: "SyncWikiVector", - Handler: _PlantService_SyncWikiVector_Handler, - }, - { - MethodName: "DeleteWikiVector", - Handler: _PlantService_DeleteWikiVector_Handler, - }, - { - MethodName: "SyncAllWikiVector", - Handler: _PlantService_SyncAllWikiVector_Handler, - }, - { - MethodName: "GetWikiClassList", - Handler: _PlantService_GetWikiClassList_Handler, - }, - { - MethodName: "CreateWikiClass", - Handler: _PlantService_CreateWikiClass_Handler, - }, - { - MethodName: "UpdateWikiClass", - Handler: _PlantService_UpdateWikiClass_Handler, - }, - { - MethodName: "DeleteWikiClass", - Handler: _PlantService_DeleteWikiClass_Handler, - }, - { - MethodName: "ToggleWikiStar", - Handler: _PlantService_ToggleWikiStar_Handler, - }, - { - MethodName: "GetMyClassifyLog", - Handler: _PlantService_GetMyClassifyLog_Handler, - }, - { - MethodName: "DeleteClassifyLog", - Handler: _PlantService_DeleteClassifyLog_Handler, - }, - { - MethodName: "CreatePost", - Handler: _PlantService_CreatePost_Handler, - }, - { - MethodName: "DeletePost", - Handler: _PlantService_DeletePost_Handler, - }, - { - MethodName: "GetPostList", - Handler: _PlantService_GetPostList_Handler, - }, - { - MethodName: "GetPostDetail", - Handler: _PlantService_GetPostDetail_Handler, - }, - { - MethodName: "CommentPost", - Handler: _PlantService_CommentPost_Handler, - }, - { - MethodName: "LikePost", - Handler: _PlantService_LikePost_Handler, - }, - { - MethodName: "StarPost", - Handler: _PlantService_StarPost_Handler, - }, - { - MethodName: "MediaCheckCallback", - Handler: _PlantService_MediaCheckCallback_Handler, - }, - { - MethodName: "GetTopicList", - Handler: _PlantService_GetTopicList_Handler, - }, - { - MethodName: "GetTopicDetail", - Handler: _PlantService_GetTopicDetail_Handler, - }, - { - MethodName: "CreateTopic", - Handler: _PlantService_CreateTopic_Handler, - }, - { - MethodName: "UpdateTopic", - Handler: _PlantService_UpdateTopic_Handler, - }, - { - MethodName: "DeleteTopic", - Handler: _PlantService_DeleteTopic_Handler, - }, - { - MethodName: "GetExchangeItemList", - Handler: _PlantService_GetExchangeItemList_Handler, - }, - { - MethodName: "GetExchangeItemDetail", - Handler: _PlantService_GetExchangeItemDetail_Handler, - }, - { - MethodName: "CreateExchangeItem", - Handler: _PlantService_CreateExchangeItem_Handler, - }, - { - MethodName: "UpdateExchangeItem", - Handler: _PlantService_UpdateExchangeItem_Handler, - }, - { - MethodName: "DeleteExchangeItem", - Handler: _PlantService_DeleteExchangeItem_Handler, - }, - { - MethodName: "CreateExchangeOrder", - Handler: _PlantService_CreateExchangeOrder_Handler, - }, - { - MethodName: "GetMyExchangeOrders", - Handler: _PlantService_GetMyExchangeOrders_Handler, - }, - { - MethodName: "GetExchangeOrderList", - Handler: _PlantService_GetExchangeOrderList_Handler, - }, - { - MethodName: "UpdateExchangeOrder", - Handler: _PlantService_UpdateExchangeOrder_Handler, - }, - { - MethodName: "GetLevelConfigList", - Handler: _PlantService_GetLevelConfigList_Handler, - }, - { - MethodName: "GetLevelConfigDetail", - Handler: _PlantService_GetLevelConfigDetail_Handler, - }, - { - MethodName: "CreateLevelConfig", - Handler: _PlantService_CreateLevelConfig_Handler, - }, - { - MethodName: "UpdateLevelConfig", - Handler: _PlantService_UpdateLevelConfig_Handler, - }, - { - MethodName: "DeleteLevelConfig", - Handler: _PlantService_DeleteLevelConfig_Handler, - }, - { - MethodName: "GetBadgeConfigList", - Handler: _PlantService_GetBadgeConfigList_Handler, - }, - { - MethodName: "GetBadgeConfigDetail", - Handler: _PlantService_GetBadgeConfigDetail_Handler, - }, - { - MethodName: "GetBadgeConfigTree", - Handler: _PlantService_GetBadgeConfigTree_Handler, - }, - { - MethodName: "CreateBadgeConfig", - Handler: _PlantService_CreateBadgeConfig_Handler, - }, - { - MethodName: "UpdateBadgeConfig", - Handler: _PlantService_UpdateBadgeConfig_Handler, - }, - { - MethodName: "DeleteBadgeConfig", - Handler: _PlantService_DeleteBadgeConfig_Handler, - }, - { - MethodName: "GetWikiClassDetail", - Handler: _PlantService_GetWikiClassDetail_Handler, - }, - { - MethodName: "GetAiChatHistory", - Handler: _PlantService_GetAiChatHistory_Handler, - }, - { - MethodName: "SaveAiChatHistory", - Handler: _PlantService_SaveAiChatHistory_Handler, - }, - { - MethodName: "DeleteAiChatHistory", - Handler: _PlantService_DeleteAiChatHistory_Handler, - }, - { - MethodName: "ClearAiChatHistory", - Handler: _PlantService_ClearAiChatHistory_Handler, - }, - { - MethodName: "GetAiChatQuota", - Handler: _PlantService_GetAiChatQuota_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "pb/plant.proto", -} diff --git a/app/plant/rpc/plant/plant.pb.go b/app/plant/rpc/plant/plant.pb.go index d171d95..4ba7ac4 100644 --- a/app/plant/rpc/plant/plant.pb.go +++ b/app/plant/rpc/plant/plant.pb.go @@ -230,6 +230,10 @@ type PlantUserProfile struct { RepotCount int64 `protobuf:"varint,13,opt,name=repotCount,proto3" json:"repotCount,omitempty"` PruneCount int64 `protobuf:"varint,14,opt,name=pruneCount,proto3" json:"pruneCount,omitempty"` PhotoCount int64 `protobuf:"varint,15,opt,name=photoCount,proto3" json:"photoCount,omitempty"` + MiniOpenId string `protobuf:"bytes,16,opt,name=miniOpenId,proto3" json:"miniOpenId,omitempty"` + SessionKey string `protobuf:"bytes,17,opt,name=sessionKey,proto3" json:"sessionKey,omitempty"` + UnionId string `protobuf:"bytes,18,opt,name=unionId,proto3" json:"unionId,omitempty"` + SaOpenId string `protobuf:"bytes,19,opt,name=saOpenId,proto3" json:"saOpenId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -369,6 +373,110 @@ func (x *PlantUserProfile) GetPhotoCount() int64 { return 0 } +func (x *PlantUserProfile) GetMiniOpenId() string { + if x != nil { + return x.MiniOpenId + } + return "" +} + +func (x *PlantUserProfile) GetSessionKey() string { + if x != nil { + return x.SessionKey + } + return "" +} + +func (x *PlantUserProfile) GetUnionId() string { + if x != nil { + return x.UnionId + } + return "" +} + +func (x *PlantUserProfile) GetSaOpenId() string { + if x != nil { + return x.SaOpenId + } + return "" +} + +type FindOrCreateUserByOpenIdReq struct { + state protoimpl.MessageState `protogen:"open.v1"` + OpenId string `protobuf:"bytes,1,opt,name=openId,proto3" json:"openId,omitempty"` + SessionKey string `protobuf:"bytes,2,opt,name=sessionKey,proto3" json:"sessionKey,omitempty"` + ClientId string `protobuf:"bytes,3,opt,name=clientId,proto3" json:"clientId,omitempty"` + UnionId string `protobuf:"bytes,4,opt,name=unionId,proto3" json:"unionId,omitempty"` + SaOpenId string `protobuf:"bytes,5,opt,name=saOpenId,proto3" json:"saOpenId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FindOrCreateUserByOpenIdReq) Reset() { + *x = FindOrCreateUserByOpenIdReq{} + mi := &file_pb_plant_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FindOrCreateUserByOpenIdReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindOrCreateUserByOpenIdReq) ProtoMessage() {} + +func (x *FindOrCreateUserByOpenIdReq) ProtoReflect() protoreflect.Message { + mi := &file_pb_plant_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindOrCreateUserByOpenIdReq.ProtoReflect.Descriptor instead. +func (*FindOrCreateUserByOpenIdReq) Descriptor() ([]byte, []int) { + return file_pb_plant_proto_rawDescGZIP(), []int{5} +} + +func (x *FindOrCreateUserByOpenIdReq) GetOpenId() string { + if x != nil { + return x.OpenId + } + return "" +} + +func (x *FindOrCreateUserByOpenIdReq) GetSessionKey() string { + if x != nil { + return x.SessionKey + } + return "" +} + +func (x *FindOrCreateUserByOpenIdReq) GetClientId() string { + if x != nil { + return x.ClientId + } + return "" +} + +func (x *FindOrCreateUserByOpenIdReq) GetUnionId() string { + if x != nil { + return x.UnionId + } + return "" +} + +func (x *FindOrCreateUserByOpenIdReq) GetSaOpenId() string { + if x != nil { + return x.SaOpenId + } + return "" +} + type GetProfileReq struct { state protoimpl.MessageState `protogen:"open.v1"` UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` @@ -378,7 +486,7 @@ type GetProfileReq struct { func (x *GetProfileReq) Reset() { *x = GetProfileReq{} - mi := &file_pb_plant_proto_msgTypes[5] + mi := &file_pb_plant_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -390,7 +498,7 @@ func (x *GetProfileReq) String() string { func (*GetProfileReq) ProtoMessage() {} func (x *GetProfileReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[5] + mi := &file_pb_plant_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -403,7 +511,7 @@ func (x *GetProfileReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetProfileReq.ProtoReflect.Descriptor instead. func (*GetProfileReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{5} + return file_pb_plant_proto_rawDescGZIP(), []int{6} } func (x *GetProfileReq) GetUserId() string { @@ -424,7 +532,7 @@ type UpdateProfileReq struct { func (x *UpdateProfileReq) Reset() { *x = UpdateProfileReq{} - mi := &file_pb_plant_proto_msgTypes[6] + mi := &file_pb_plant_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -436,7 +544,7 @@ func (x *UpdateProfileReq) String() string { func (*UpdateProfileReq) ProtoMessage() {} func (x *UpdateProfileReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[6] + mi := &file_pb_plant_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -449,7 +557,7 @@ func (x *UpdateProfileReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateProfileReq.ProtoReflect.Descriptor instead. func (*UpdateProfileReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{6} + return file_pb_plant_proto_rawDescGZIP(), []int{7} } func (x *UpdateProfileReq) GetUserId() string { @@ -488,7 +596,7 @@ type UserBadgeInfo struct { func (x *UserBadgeInfo) Reset() { *x = UserBadgeInfo{} - mi := &file_pb_plant_proto_msgTypes[7] + mi := &file_pb_plant_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -500,7 +608,7 @@ func (x *UserBadgeInfo) String() string { func (*UserBadgeInfo) ProtoMessage() {} func (x *UserBadgeInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[7] + mi := &file_pb_plant_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -513,7 +621,7 @@ func (x *UserBadgeInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use UserBadgeInfo.ProtoReflect.Descriptor instead. func (*UserBadgeInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{7} + return file_pb_plant_proto_rawDescGZIP(), []int{8} } func (x *UserBadgeInfo) GetId() string { @@ -567,7 +675,7 @@ type UserBadgeListResp struct { func (x *UserBadgeListResp) Reset() { *x = UserBadgeListResp{} - mi := &file_pb_plant_proto_msgTypes[8] + mi := &file_pb_plant_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -579,7 +687,7 @@ func (x *UserBadgeListResp) String() string { func (*UserBadgeListResp) ProtoMessage() {} func (x *UserBadgeListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[8] + mi := &file_pb_plant_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -592,7 +700,7 @@ func (x *UserBadgeListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserBadgeListResp.ProtoReflect.Descriptor instead. func (*UserBadgeListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{8} + return file_pb_plant_proto_rawDescGZIP(), []int{9} } func (x *UserBadgeListResp) GetList() []*UserBadgeInfo { @@ -615,7 +723,7 @@ type UserStarInfo struct { func (x *UserStarInfo) Reset() { *x = UserStarInfo{} - mi := &file_pb_plant_proto_msgTypes[9] + mi := &file_pb_plant_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -627,7 +735,7 @@ func (x *UserStarInfo) String() string { func (*UserStarInfo) ProtoMessage() {} func (x *UserStarInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[9] + mi := &file_pb_plant_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -640,7 +748,7 @@ func (x *UserStarInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use UserStarInfo.ProtoReflect.Descriptor instead. func (*UserStarInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{9} + return file_pb_plant_proto_rawDescGZIP(), []int{10} } func (x *UserStarInfo) GetId() string { @@ -681,7 +789,7 @@ type UserStarListResp struct { func (x *UserStarListResp) Reset() { *x = UserStarListResp{} - mi := &file_pb_plant_proto_msgTypes[10] + mi := &file_pb_plant_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -693,7 +801,7 @@ func (x *UserStarListResp) String() string { func (*UserStarListResp) ProtoMessage() {} func (x *UserStarListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[10] + mi := &file_pb_plant_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -706,7 +814,7 @@ func (x *UserStarListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserStarListResp.ProtoReflect.Descriptor instead. func (*UserStarListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{10} + return file_pb_plant_proto_rawDescGZIP(), []int{11} } func (x *UserStarListResp) GetList() []*UserStarInfo { @@ -743,7 +851,7 @@ type PlantInfo struct { func (x *PlantInfo) Reset() { *x = PlantInfo{} - mi := &file_pb_plant_proto_msgTypes[11] + mi := &file_pb_plant_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -755,7 +863,7 @@ func (x *PlantInfo) String() string { func (*PlantInfo) ProtoMessage() {} func (x *PlantInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[11] + mi := &file_pb_plant_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -768,7 +876,7 @@ func (x *PlantInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use PlantInfo.ProtoReflect.Descriptor instead. func (*PlantInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{11} + return file_pb_plant_proto_rawDescGZIP(), []int{12} } func (x *PlantInfo) GetId() string { @@ -872,7 +980,7 @@ type CreatePlantReq struct { func (x *CreatePlantReq) Reset() { *x = CreatePlantReq{} - mi := &file_pb_plant_proto_msgTypes[12] + mi := &file_pb_plant_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -884,7 +992,7 @@ func (x *CreatePlantReq) String() string { func (*CreatePlantReq) ProtoMessage() {} func (x *CreatePlantReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[12] + mi := &file_pb_plant_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -897,7 +1005,7 @@ func (x *CreatePlantReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreatePlantReq.ProtoReflect.Descriptor instead. func (*CreatePlantReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{12} + return file_pb_plant_proto_rawDescGZIP(), []int{13} } func (x *CreatePlantReq) GetUserId() string { @@ -980,7 +1088,7 @@ type UpdatePlantReq struct { func (x *UpdatePlantReq) Reset() { *x = UpdatePlantReq{} - mi := &file_pb_plant_proto_msgTypes[13] + mi := &file_pb_plant_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -992,7 +1100,7 @@ func (x *UpdatePlantReq) String() string { func (*UpdatePlantReq) ProtoMessage() {} func (x *UpdatePlantReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[13] + mi := &file_pb_plant_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1005,7 +1113,7 @@ func (x *UpdatePlantReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdatePlantReq.ProtoReflect.Descriptor instead. func (*UpdatePlantReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{13} + return file_pb_plant_proto_rawDescGZIP(), []int{14} } func (x *UpdatePlantReq) GetId() string { @@ -1083,7 +1191,7 @@ type PlantListReq struct { func (x *PlantListReq) Reset() { *x = PlantListReq{} - mi := &file_pb_plant_proto_msgTypes[14] + mi := &file_pb_plant_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1095,7 +1203,7 @@ func (x *PlantListReq) String() string { func (*PlantListReq) ProtoMessage() {} func (x *PlantListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[14] + mi := &file_pb_plant_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1108,7 +1216,7 @@ func (x *PlantListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use PlantListReq.ProtoReflect.Descriptor instead. func (*PlantListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{14} + return file_pb_plant_proto_rawDescGZIP(), []int{15} } func (x *PlantListReq) GetUserId() string { @@ -1149,7 +1257,7 @@ type PlantListResp struct { func (x *PlantListResp) Reset() { *x = PlantListResp{} - mi := &file_pb_plant_proto_msgTypes[15] + mi := &file_pb_plant_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1161,7 +1269,7 @@ func (x *PlantListResp) String() string { func (*PlantListResp) ProtoMessage() {} func (x *PlantListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[15] + mi := &file_pb_plant_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1174,7 +1282,7 @@ func (x *PlantListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use PlantListResp.ProtoReflect.Descriptor instead. func (*PlantListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{15} + return file_pb_plant_proto_rawDescGZIP(), []int{16} } func (x *PlantListResp) GetList() []*PlantInfo { @@ -1202,7 +1310,7 @@ type PlantDetailResp struct { func (x *PlantDetailResp) Reset() { *x = PlantDetailResp{} - mi := &file_pb_plant_proto_msgTypes[16] + mi := &file_pb_plant_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1214,7 +1322,7 @@ func (x *PlantDetailResp) String() string { func (*PlantDetailResp) ProtoMessage() {} func (x *PlantDetailResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[16] + mi := &file_pb_plant_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1227,7 +1335,7 @@ func (x *PlantDetailResp) ProtoReflect() protoreflect.Message { // Deprecated: Use PlantDetailResp.ProtoReflect.Descriptor instead. func (*PlantDetailResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{16} + return file_pb_plant_proto_rawDescGZIP(), []int{17} } func (x *PlantDetailResp) GetPlant() *PlantInfo { @@ -1265,7 +1373,7 @@ type CarePlanInfo struct { func (x *CarePlanInfo) Reset() { *x = CarePlanInfo{} - mi := &file_pb_plant_proto_msgTypes[17] + mi := &file_pb_plant_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1277,7 +1385,7 @@ func (x *CarePlanInfo) String() string { func (*CarePlanInfo) ProtoMessage() {} func (x *CarePlanInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[17] + mi := &file_pb_plant_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1290,7 +1398,7 @@ func (x *CarePlanInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use CarePlanInfo.ProtoReflect.Descriptor instead. func (*CarePlanInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{17} + return file_pb_plant_proto_rawDescGZIP(), []int{18} } func (x *CarePlanInfo) GetId() string { @@ -1349,7 +1457,7 @@ type AddCarePlanReq struct { func (x *AddCarePlanReq) Reset() { *x = AddCarePlanReq{} - mi := &file_pb_plant_proto_msgTypes[18] + mi := &file_pb_plant_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1361,7 +1469,7 @@ func (x *AddCarePlanReq) String() string { func (*AddCarePlanReq) ProtoMessage() {} func (x *AddCarePlanReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[18] + mi := &file_pb_plant_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1374,7 +1482,7 @@ func (x *AddCarePlanReq) ProtoReflect() protoreflect.Message { // Deprecated: Use AddCarePlanReq.ProtoReflect.Descriptor instead. func (*AddCarePlanReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{18} + return file_pb_plant_proto_rawDescGZIP(), []int{19} } func (x *AddCarePlanReq) GetUserId() string { @@ -1436,7 +1544,7 @@ type CareTaskInfo struct { func (x *CareTaskInfo) Reset() { *x = CareTaskInfo{} - mi := &file_pb_plant_proto_msgTypes[19] + mi := &file_pb_plant_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1448,7 +1556,7 @@ func (x *CareTaskInfo) String() string { func (*CareTaskInfo) ProtoMessage() {} func (x *CareTaskInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[19] + mi := &file_pb_plant_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1461,7 +1569,7 @@ func (x *CareTaskInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use CareTaskInfo.ProtoReflect.Descriptor instead. func (*CareTaskInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{19} + return file_pb_plant_proto_rawDescGZIP(), []int{20} } func (x *CareTaskInfo) GetId() string { @@ -1530,7 +1638,7 @@ type CareTaskListResp struct { func (x *CareTaskListResp) Reset() { *x = CareTaskListResp{} - mi := &file_pb_plant_proto_msgTypes[20] + mi := &file_pb_plant_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1542,7 +1650,7 @@ func (x *CareTaskListResp) String() string { func (*CareTaskListResp) ProtoMessage() {} func (x *CareTaskListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[20] + mi := &file_pb_plant_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1555,7 +1663,7 @@ func (x *CareTaskListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use CareTaskListResp.ProtoReflect.Descriptor instead. func (*CareTaskListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{20} + return file_pb_plant_proto_rawDescGZIP(), []int{21} } func (x *CareTaskListResp) GetList() []*CareTaskInfo { @@ -1585,7 +1693,7 @@ type AddCareRecordReq struct { func (x *AddCareRecordReq) Reset() { *x = AddCareRecordReq{} - mi := &file_pb_plant_proto_msgTypes[21] + mi := &file_pb_plant_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1597,7 +1705,7 @@ func (x *AddCareRecordReq) String() string { func (*AddCareRecordReq) ProtoMessage() {} func (x *AddCareRecordReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[21] + mi := &file_pb_plant_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1610,7 +1718,7 @@ func (x *AddCareRecordReq) ProtoReflect() protoreflect.Message { // Deprecated: Use AddCareRecordReq.ProtoReflect.Descriptor instead. func (*AddCareRecordReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{21} + return file_pb_plant_proto_rawDescGZIP(), []int{22} } func (x *AddCareRecordReq) GetUserId() string { @@ -1660,7 +1768,7 @@ type GrowthRecordInfo struct { func (x *GrowthRecordInfo) Reset() { *x = GrowthRecordInfo{} - mi := &file_pb_plant_proto_msgTypes[22] + mi := &file_pb_plant_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1672,7 +1780,7 @@ func (x *GrowthRecordInfo) String() string { func (*GrowthRecordInfo) ProtoMessage() {} func (x *GrowthRecordInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[22] + mi := &file_pb_plant_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1685,7 +1793,7 @@ func (x *GrowthRecordInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use GrowthRecordInfo.ProtoReflect.Descriptor instead. func (*GrowthRecordInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{22} + return file_pb_plant_proto_rawDescGZIP(), []int{23} } func (x *GrowthRecordInfo) GetId() string { @@ -1728,7 +1836,7 @@ type AddGrowthRecordReq struct { func (x *AddGrowthRecordReq) Reset() { *x = AddGrowthRecordReq{} - mi := &file_pb_plant_proto_msgTypes[23] + mi := &file_pb_plant_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1740,7 +1848,7 @@ func (x *AddGrowthRecordReq) String() string { func (*AddGrowthRecordReq) ProtoMessage() {} func (x *AddGrowthRecordReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[23] + mi := &file_pb_plant_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1753,7 +1861,7 @@ func (x *AddGrowthRecordReq) ProtoReflect() protoreflect.Message { // Deprecated: Use AddGrowthRecordReq.ProtoReflect.Descriptor instead. func (*AddGrowthRecordReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{23} + return file_pb_plant_proto_rawDescGZIP(), []int{24} } func (x *AddGrowthRecordReq) GetUserId() string { @@ -1824,7 +1932,7 @@ type WikiInfo struct { func (x *WikiInfo) Reset() { *x = WikiInfo{} - mi := &file_pb_plant_proto_msgTypes[24] + mi := &file_pb_plant_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1836,7 +1944,7 @@ func (x *WikiInfo) String() string { func (*WikiInfo) ProtoMessage() {} func (x *WikiInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[24] + mi := &file_pb_plant_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1849,7 +1957,7 @@ func (x *WikiInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use WikiInfo.ProtoReflect.Descriptor instead. func (*WikiInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{24} + return file_pb_plant_proto_rawDescGZIP(), []int{25} } func (x *WikiInfo) GetId() string { @@ -2089,7 +2197,7 @@ type WikiListReq struct { func (x *WikiListReq) Reset() { *x = WikiListReq{} - mi := &file_pb_plant_proto_msgTypes[25] + mi := &file_pb_plant_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2101,7 +2209,7 @@ func (x *WikiListReq) String() string { func (*WikiListReq) ProtoMessage() {} func (x *WikiListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[25] + mi := &file_pb_plant_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2114,7 +2222,7 @@ func (x *WikiListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use WikiListReq.ProtoReflect.Descriptor instead. func (*WikiListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{25} + return file_pb_plant_proto_rawDescGZIP(), []int{26} } func (x *WikiListReq) GetCurrent() int32 { @@ -2162,7 +2270,7 @@ type WikiListResp struct { func (x *WikiListResp) Reset() { *x = WikiListResp{} - mi := &file_pb_plant_proto_msgTypes[26] + mi := &file_pb_plant_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2174,7 +2282,7 @@ func (x *WikiListResp) String() string { func (*WikiListResp) ProtoMessage() {} func (x *WikiListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[26] + mi := &file_pb_plant_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2187,7 +2295,7 @@ func (x *WikiListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use WikiListResp.ProtoReflect.Descriptor instead. func (*WikiListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{26} + return file_pb_plant_proto_rawDescGZIP(), []int{27} } func (x *WikiListResp) GetList() []*WikiInfo { @@ -2213,7 +2321,7 @@ type WikiDetailResp struct { func (x *WikiDetailResp) Reset() { *x = WikiDetailResp{} - mi := &file_pb_plant_proto_msgTypes[27] + mi := &file_pb_plant_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2225,7 +2333,7 @@ func (x *WikiDetailResp) String() string { func (*WikiDetailResp) ProtoMessage() {} func (x *WikiDetailResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[27] + mi := &file_pb_plant_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2238,7 +2346,7 @@ func (x *WikiDetailResp) ProtoReflect() protoreflect.Message { // Deprecated: Use WikiDetailResp.ProtoReflect.Descriptor instead. func (*WikiDetailResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{27} + return file_pb_plant_proto_rawDescGZIP(), []int{28} } func (x *WikiDetailResp) GetWiki() *WikiInfo { @@ -2284,7 +2392,7 @@ type CreateWikiReq struct { func (x *CreateWikiReq) Reset() { *x = CreateWikiReq{} - mi := &file_pb_plant_proto_msgTypes[28] + mi := &file_pb_plant_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2296,7 +2404,7 @@ func (x *CreateWikiReq) String() string { func (*CreateWikiReq) ProtoMessage() {} func (x *CreateWikiReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[28] + mi := &file_pb_plant_proto_msgTypes[29] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2309,7 +2417,7 @@ func (x *CreateWikiReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateWikiReq.ProtoReflect.Descriptor instead. func (*CreateWikiReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{28} + return file_pb_plant_proto_rawDescGZIP(), []int{29} } func (x *CreateWikiReq) GetName() string { @@ -2545,7 +2653,7 @@ type UpdateWikiReq struct { func (x *UpdateWikiReq) Reset() { *x = UpdateWikiReq{} - mi := &file_pb_plant_proto_msgTypes[29] + mi := &file_pb_plant_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2557,7 +2665,7 @@ func (x *UpdateWikiReq) String() string { func (*UpdateWikiReq) ProtoMessage() {} func (x *UpdateWikiReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[29] + mi := &file_pb_plant_proto_msgTypes[30] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2570,7 +2678,7 @@ func (x *UpdateWikiReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateWikiReq.ProtoReflect.Descriptor instead. func (*UpdateWikiReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{29} + return file_pb_plant_proto_rawDescGZIP(), []int{30} } func (x *UpdateWikiReq) GetId() string { @@ -2787,7 +2895,7 @@ type WikiClassInfo struct { func (x *WikiClassInfo) Reset() { *x = WikiClassInfo{} - mi := &file_pb_plant_proto_msgTypes[30] + mi := &file_pb_plant_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2799,7 +2907,7 @@ func (x *WikiClassInfo) String() string { func (*WikiClassInfo) ProtoMessage() {} func (x *WikiClassInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[30] + mi := &file_pb_plant_proto_msgTypes[31] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2812,7 +2920,7 @@ func (x *WikiClassInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use WikiClassInfo.ProtoReflect.Descriptor instead. func (*WikiClassInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{30} + return file_pb_plant_proto_rawDescGZIP(), []int{31} } func (x *WikiClassInfo) GetId() string { @@ -2845,7 +2953,7 @@ type WikiClassListResp struct { func (x *WikiClassListResp) Reset() { *x = WikiClassListResp{} - mi := &file_pb_plant_proto_msgTypes[31] + mi := &file_pb_plant_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2857,7 +2965,7 @@ func (x *WikiClassListResp) String() string { func (*WikiClassListResp) ProtoMessage() {} func (x *WikiClassListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[31] + mi := &file_pb_plant_proto_msgTypes[32] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2870,7 +2978,7 @@ func (x *WikiClassListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use WikiClassListResp.ProtoReflect.Descriptor instead. func (*WikiClassListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{31} + return file_pb_plant_proto_rawDescGZIP(), []int{32} } func (x *WikiClassListResp) GetList() []*WikiClassInfo { @@ -2890,7 +2998,7 @@ type CreateWikiClassReq struct { func (x *CreateWikiClassReq) Reset() { *x = CreateWikiClassReq{} - mi := &file_pb_plant_proto_msgTypes[32] + mi := &file_pb_plant_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2902,7 +3010,7 @@ func (x *CreateWikiClassReq) String() string { func (*CreateWikiClassReq) ProtoMessage() {} func (x *CreateWikiClassReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[32] + mi := &file_pb_plant_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2915,7 +3023,7 @@ func (x *CreateWikiClassReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateWikiClassReq.ProtoReflect.Descriptor instead. func (*CreateWikiClassReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{32} + return file_pb_plant_proto_rawDescGZIP(), []int{33} } func (x *CreateWikiClassReq) GetName() string { @@ -2943,7 +3051,7 @@ type UpdateWikiClassReq struct { func (x *UpdateWikiClassReq) Reset() { *x = UpdateWikiClassReq{} - mi := &file_pb_plant_proto_msgTypes[33] + mi := &file_pb_plant_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2955,7 +3063,7 @@ func (x *UpdateWikiClassReq) String() string { func (*UpdateWikiClassReq) ProtoMessage() {} func (x *UpdateWikiClassReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[33] + mi := &file_pb_plant_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2968,7 +3076,7 @@ func (x *UpdateWikiClassReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateWikiClassReq.ProtoReflect.Descriptor instead. func (*UpdateWikiClassReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{33} + return file_pb_plant_proto_rawDescGZIP(), []int{34} } func (x *UpdateWikiClassReq) GetId() string { @@ -3003,7 +3111,7 @@ type ToggleStarReq struct { func (x *ToggleStarReq) Reset() { *x = ToggleStarReq{} - mi := &file_pb_plant_proto_msgTypes[34] + mi := &file_pb_plant_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3015,7 +3123,7 @@ func (x *ToggleStarReq) String() string { func (*ToggleStarReq) ProtoMessage() {} func (x *ToggleStarReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[34] + mi := &file_pb_plant_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3028,7 +3136,7 @@ func (x *ToggleStarReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ToggleStarReq.ProtoReflect.Descriptor instead. func (*ToggleStarReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{34} + return file_pb_plant_proto_rawDescGZIP(), []int{35} } func (x *ToggleStarReq) GetUserId() string { @@ -3065,7 +3173,7 @@ type ClassifyLogInfo struct { func (x *ClassifyLogInfo) Reset() { *x = ClassifyLogInfo{} - mi := &file_pb_plant_proto_msgTypes[35] + mi := &file_pb_plant_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3077,7 +3185,7 @@ func (x *ClassifyLogInfo) String() string { func (*ClassifyLogInfo) ProtoMessage() {} func (x *ClassifyLogInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[35] + mi := &file_pb_plant_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3090,7 +3198,7 @@ func (x *ClassifyLogInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifyLogInfo.ProtoReflect.Descriptor instead. func (*ClassifyLogInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{35} + return file_pb_plant_proto_rawDescGZIP(), []int{36} } func (x *ClassifyLogInfo) GetId() string { @@ -3138,7 +3246,7 @@ type ClassifyLogListResp struct { func (x *ClassifyLogListResp) Reset() { *x = ClassifyLogListResp{} - mi := &file_pb_plant_proto_msgTypes[36] + mi := &file_pb_plant_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3150,7 +3258,7 @@ func (x *ClassifyLogListResp) String() string { func (*ClassifyLogListResp) ProtoMessage() {} func (x *ClassifyLogListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[36] + mi := &file_pb_plant_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3163,7 +3271,7 @@ func (x *ClassifyLogListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifyLogListResp.ProtoReflect.Descriptor instead. func (*ClassifyLogListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{36} + return file_pb_plant_proto_rawDescGZIP(), []int{37} } func (x *ClassifyLogListResp) GetList() []*ClassifyLogInfo { @@ -3199,7 +3307,7 @@ type PostInfo struct { func (x *PostInfo) Reset() { *x = PostInfo{} - mi := &file_pb_plant_proto_msgTypes[37] + mi := &file_pb_plant_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3211,7 +3319,7 @@ func (x *PostInfo) String() string { func (*PostInfo) ProtoMessage() {} func (x *PostInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[37] + mi := &file_pb_plant_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3224,7 +3332,7 @@ func (x *PostInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use PostInfo.ProtoReflect.Descriptor instead. func (*PostInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{37} + return file_pb_plant_proto_rawDescGZIP(), []int{38} } func (x *PostInfo) GetId() string { @@ -3318,7 +3426,7 @@ type CreatePostReq struct { func (x *CreatePostReq) Reset() { *x = CreatePostReq{} - mi := &file_pb_plant_proto_msgTypes[38] + mi := &file_pb_plant_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3330,7 +3438,7 @@ func (x *CreatePostReq) String() string { func (*CreatePostReq) ProtoMessage() {} func (x *CreatePostReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[38] + mi := &file_pb_plant_proto_msgTypes[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3343,7 +3451,7 @@ func (x *CreatePostReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreatePostReq.ProtoReflect.Descriptor instead. func (*CreatePostReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{38} + return file_pb_plant_proto_rawDescGZIP(), []int{39} } func (x *CreatePostReq) GetUserId() string { @@ -3401,7 +3509,7 @@ type PostListReq struct { func (x *PostListReq) Reset() { *x = PostListReq{} - mi := &file_pb_plant_proto_msgTypes[39] + mi := &file_pb_plant_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3413,7 +3521,7 @@ func (x *PostListReq) String() string { func (*PostListReq) ProtoMessage() {} func (x *PostListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[39] + mi := &file_pb_plant_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3426,7 +3534,7 @@ func (x *PostListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use PostListReq.ProtoReflect.Descriptor instead. func (*PostListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{39} + return file_pb_plant_proto_rawDescGZIP(), []int{40} } func (x *PostListReq) GetCurrent() int32 { @@ -3474,7 +3582,7 @@ type PostListResp struct { func (x *PostListResp) Reset() { *x = PostListResp{} - mi := &file_pb_plant_proto_msgTypes[40] + mi := &file_pb_plant_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3486,7 +3594,7 @@ func (x *PostListResp) String() string { func (*PostListResp) ProtoMessage() {} func (x *PostListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[40] + mi := &file_pb_plant_proto_msgTypes[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3499,7 +3607,7 @@ func (x *PostListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use PostListResp.ProtoReflect.Descriptor instead. func (*PostListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{40} + return file_pb_plant_proto_rawDescGZIP(), []int{41} } func (x *PostListResp) GetList() []*PostInfo { @@ -3526,7 +3634,7 @@ type PostDetailResp struct { func (x *PostDetailResp) Reset() { *x = PostDetailResp{} - mi := &file_pb_plant_proto_msgTypes[41] + mi := &file_pb_plant_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3538,7 +3646,7 @@ func (x *PostDetailResp) String() string { func (*PostDetailResp) ProtoMessage() {} func (x *PostDetailResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[41] + mi := &file_pb_plant_proto_msgTypes[42] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3551,7 +3659,7 @@ func (x *PostDetailResp) ProtoReflect() protoreflect.Message { // Deprecated: Use PostDetailResp.ProtoReflect.Descriptor instead. func (*PostDetailResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{41} + return file_pb_plant_proto_rawDescGZIP(), []int{42} } func (x *PostDetailResp) GetPost() *PostInfo { @@ -3581,7 +3689,7 @@ type PostCommentInfo struct { func (x *PostCommentInfo) Reset() { *x = PostCommentInfo{} - mi := &file_pb_plant_proto_msgTypes[42] + mi := &file_pb_plant_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3593,7 +3701,7 @@ func (x *PostCommentInfo) String() string { func (*PostCommentInfo) ProtoMessage() {} func (x *PostCommentInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[42] + mi := &file_pb_plant_proto_msgTypes[43] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3606,7 +3714,7 @@ func (x *PostCommentInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use PostCommentInfo.ProtoReflect.Descriptor instead. func (*PostCommentInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{42} + return file_pb_plant_proto_rawDescGZIP(), []int{43} } func (x *PostCommentInfo) GetId() string { @@ -3656,7 +3764,7 @@ type CommentPostReq struct { func (x *CommentPostReq) Reset() { *x = CommentPostReq{} - mi := &file_pb_plant_proto_msgTypes[43] + mi := &file_pb_plant_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3668,7 +3776,7 @@ func (x *CommentPostReq) String() string { func (*CommentPostReq) ProtoMessage() {} func (x *CommentPostReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[43] + mi := &file_pb_plant_proto_msgTypes[44] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3681,7 +3789,7 @@ func (x *CommentPostReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CommentPostReq.ProtoReflect.Descriptor instead. func (*CommentPostReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{43} + return file_pb_plant_proto_rawDescGZIP(), []int{44} } func (x *CommentPostReq) GetUserId() string { @@ -3722,7 +3830,7 @@ type LikePostReq struct { func (x *LikePostReq) Reset() { *x = LikePostReq{} - mi := &file_pb_plant_proto_msgTypes[44] + mi := &file_pb_plant_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3734,7 +3842,7 @@ func (x *LikePostReq) String() string { func (*LikePostReq) ProtoMessage() {} func (x *LikePostReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[44] + mi := &file_pb_plant_proto_msgTypes[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3747,7 +3855,7 @@ func (x *LikePostReq) ProtoReflect() protoreflect.Message { // Deprecated: Use LikePostReq.ProtoReflect.Descriptor instead. func (*LikePostReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{44} + return file_pb_plant_proto_rawDescGZIP(), []int{45} } func (x *LikePostReq) GetUserId() string { @@ -3781,7 +3889,7 @@ type TopicInfo struct { func (x *TopicInfo) Reset() { *x = TopicInfo{} - mi := &file_pb_plant_proto_msgTypes[45] + mi := &file_pb_plant_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3793,7 +3901,7 @@ func (x *TopicInfo) String() string { func (*TopicInfo) ProtoMessage() {} func (x *TopicInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[45] + mi := &file_pb_plant_proto_msgTypes[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3806,7 +3914,7 @@ func (x *TopicInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use TopicInfo.ProtoReflect.Descriptor instead. func (*TopicInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{45} + return file_pb_plant_proto_rawDescGZIP(), []int{46} } func (x *TopicInfo) GetId() string { @@ -3881,7 +3989,7 @@ type TopicListResp struct { func (x *TopicListResp) Reset() { *x = TopicListResp{} - mi := &file_pb_plant_proto_msgTypes[46] + mi := &file_pb_plant_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3893,7 +4001,7 @@ func (x *TopicListResp) String() string { func (*TopicListResp) ProtoMessage() {} func (x *TopicListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[46] + mi := &file_pb_plant_proto_msgTypes[47] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3906,7 +4014,7 @@ func (x *TopicListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use TopicListResp.ProtoReflect.Descriptor instead. func (*TopicListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{46} + return file_pb_plant_proto_rawDescGZIP(), []int{47} } func (x *TopicListResp) GetList() []*TopicInfo { @@ -3931,7 +4039,7 @@ type CreateTopicReq struct { func (x *CreateTopicReq) Reset() { *x = CreateTopicReq{} - mi := &file_pb_plant_proto_msgTypes[47] + mi := &file_pb_plant_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3943,7 +4051,7 @@ func (x *CreateTopicReq) String() string { func (*CreateTopicReq) ProtoMessage() {} func (x *CreateTopicReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[47] + mi := &file_pb_plant_proto_msgTypes[48] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3956,7 +4064,7 @@ func (x *CreateTopicReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTopicReq.ProtoReflect.Descriptor instead. func (*CreateTopicReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{47} + return file_pb_plant_proto_rawDescGZIP(), []int{48} } func (x *CreateTopicReq) GetName() string { @@ -4024,7 +4132,7 @@ type UpdateTopicReq struct { func (x *UpdateTopicReq) Reset() { *x = UpdateTopicReq{} - mi := &file_pb_plant_proto_msgTypes[48] + mi := &file_pb_plant_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4036,7 +4144,7 @@ func (x *UpdateTopicReq) String() string { func (*UpdateTopicReq) ProtoMessage() {} func (x *UpdateTopicReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[48] + mi := &file_pb_plant_proto_msgTypes[49] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4049,7 +4157,7 @@ func (x *UpdateTopicReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateTopicReq.ProtoReflect.Descriptor instead. func (*UpdateTopicReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{48} + return file_pb_plant_proto_rawDescGZIP(), []int{49} } func (x *UpdateTopicReq) GetId() string { @@ -4123,7 +4231,7 @@ type ExchangeItemInfo struct { func (x *ExchangeItemInfo) Reset() { *x = ExchangeItemInfo{} - mi := &file_pb_plant_proto_msgTypes[49] + mi := &file_pb_plant_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4135,7 +4243,7 @@ func (x *ExchangeItemInfo) String() string { func (*ExchangeItemInfo) ProtoMessage() {} func (x *ExchangeItemInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[49] + mi := &file_pb_plant_proto_msgTypes[50] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4148,7 +4256,7 @@ func (x *ExchangeItemInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ExchangeItemInfo.ProtoReflect.Descriptor instead. func (*ExchangeItemInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{49} + return file_pb_plant_proto_rawDescGZIP(), []int{50} } func (x *ExchangeItemInfo) GetId() string { @@ -4211,7 +4319,7 @@ type ExchangeItemListReq struct { func (x *ExchangeItemListReq) Reset() { *x = ExchangeItemListReq{} - mi := &file_pb_plant_proto_msgTypes[50] + mi := &file_pb_plant_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4223,7 +4331,7 @@ func (x *ExchangeItemListReq) String() string { func (*ExchangeItemListReq) ProtoMessage() {} func (x *ExchangeItemListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[50] + mi := &file_pb_plant_proto_msgTypes[51] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4236,7 +4344,7 @@ func (x *ExchangeItemListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ExchangeItemListReq.ProtoReflect.Descriptor instead. func (*ExchangeItemListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{50} + return file_pb_plant_proto_rawDescGZIP(), []int{51} } func (x *ExchangeItemListReq) GetCurrent() int32 { @@ -4270,7 +4378,7 @@ type ExchangeItemListResp struct { func (x *ExchangeItemListResp) Reset() { *x = ExchangeItemListResp{} - mi := &file_pb_plant_proto_msgTypes[51] + mi := &file_pb_plant_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4282,7 +4390,7 @@ func (x *ExchangeItemListResp) String() string { func (*ExchangeItemListResp) ProtoMessage() {} func (x *ExchangeItemListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[51] + mi := &file_pb_plant_proto_msgTypes[52] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4295,7 +4403,7 @@ func (x *ExchangeItemListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use ExchangeItemListResp.ProtoReflect.Descriptor instead. func (*ExchangeItemListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{51} + return file_pb_plant_proto_rawDescGZIP(), []int{52} } func (x *ExchangeItemListResp) GetList() []*ExchangeItemInfo { @@ -4326,7 +4434,7 @@ type CreateExchangeOrderReq struct { func (x *CreateExchangeOrderReq) Reset() { *x = CreateExchangeOrderReq{} - mi := &file_pb_plant_proto_msgTypes[52] + mi := &file_pb_plant_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4338,7 +4446,7 @@ func (x *CreateExchangeOrderReq) String() string { func (*CreateExchangeOrderReq) ProtoMessage() {} func (x *CreateExchangeOrderReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[52] + mi := &file_pb_plant_proto_msgTypes[53] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4351,7 +4459,7 @@ func (x *CreateExchangeOrderReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateExchangeOrderReq.ProtoReflect.Descriptor instead. func (*CreateExchangeOrderReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{52} + return file_pb_plant_proto_rawDescGZIP(), []int{53} } func (x *CreateExchangeOrderReq) GetUserId() string { @@ -4416,7 +4524,7 @@ type CreateExchangeItemReq struct { func (x *CreateExchangeItemReq) Reset() { *x = CreateExchangeItemReq{} - mi := &file_pb_plant_proto_msgTypes[53] + mi := &file_pb_plant_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4428,7 +4536,7 @@ func (x *CreateExchangeItemReq) String() string { func (*CreateExchangeItemReq) ProtoMessage() {} func (x *CreateExchangeItemReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[53] + mi := &file_pb_plant_proto_msgTypes[54] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4441,7 +4549,7 @@ func (x *CreateExchangeItemReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateExchangeItemReq.ProtoReflect.Descriptor instead. func (*CreateExchangeItemReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{53} + return file_pb_plant_proto_rawDescGZIP(), []int{54} } func (x *CreateExchangeItemReq) GetName() string { @@ -4550,7 +4658,7 @@ type UpdateExchangeItemReq struct { func (x *UpdateExchangeItemReq) Reset() { *x = UpdateExchangeItemReq{} - mi := &file_pb_plant_proto_msgTypes[54] + mi := &file_pb_plant_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4562,7 +4670,7 @@ func (x *UpdateExchangeItemReq) String() string { func (*UpdateExchangeItemReq) ProtoMessage() {} func (x *UpdateExchangeItemReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[54] + mi := &file_pb_plant_proto_msgTypes[55] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4575,7 +4683,7 @@ func (x *UpdateExchangeItemReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateExchangeItemReq.ProtoReflect.Descriptor instead. func (*UpdateExchangeItemReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{54} + return file_pb_plant_proto_rawDescGZIP(), []int{55} } func (x *UpdateExchangeItemReq) GetId() string { @@ -4699,7 +4807,7 @@ type ExchangeOrderInfo struct { func (x *ExchangeOrderInfo) Reset() { *x = ExchangeOrderInfo{} - mi := &file_pb_plant_proto_msgTypes[55] + mi := &file_pb_plant_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4711,7 +4819,7 @@ func (x *ExchangeOrderInfo) String() string { func (*ExchangeOrderInfo) ProtoMessage() {} func (x *ExchangeOrderInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[55] + mi := &file_pb_plant_proto_msgTypes[56] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4724,7 +4832,7 @@ func (x *ExchangeOrderInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ExchangeOrderInfo.ProtoReflect.Descriptor instead. func (*ExchangeOrderInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{55} + return file_pb_plant_proto_rawDescGZIP(), []int{56} } func (x *ExchangeOrderInfo) GetId() string { @@ -4844,7 +4952,7 @@ type ExchangeOrderListReq struct { func (x *ExchangeOrderListReq) Reset() { *x = ExchangeOrderListReq{} - mi := &file_pb_plant_proto_msgTypes[56] + mi := &file_pb_plant_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4856,7 +4964,7 @@ func (x *ExchangeOrderListReq) String() string { func (*ExchangeOrderListReq) ProtoMessage() {} func (x *ExchangeOrderListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[56] + mi := &file_pb_plant_proto_msgTypes[57] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4869,7 +4977,7 @@ func (x *ExchangeOrderListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ExchangeOrderListReq.ProtoReflect.Descriptor instead. func (*ExchangeOrderListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{56} + return file_pb_plant_proto_rawDescGZIP(), []int{57} } func (x *ExchangeOrderListReq) GetCurrent() int32 { @@ -4910,7 +5018,7 @@ type ExchangeOrderListResp struct { func (x *ExchangeOrderListResp) Reset() { *x = ExchangeOrderListResp{} - mi := &file_pb_plant_proto_msgTypes[57] + mi := &file_pb_plant_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4922,7 +5030,7 @@ func (x *ExchangeOrderListResp) String() string { func (*ExchangeOrderListResp) ProtoMessage() {} func (x *ExchangeOrderListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[57] + mi := &file_pb_plant_proto_msgTypes[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4935,7 +5043,7 @@ func (x *ExchangeOrderListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use ExchangeOrderListResp.ProtoReflect.Descriptor instead. func (*ExchangeOrderListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{57} + return file_pb_plant_proto_rawDescGZIP(), []int{58} } func (x *ExchangeOrderListResp) GetList() []*ExchangeOrderInfo { @@ -4964,7 +5072,7 @@ type UpdateExchangeOrderReq struct { func (x *UpdateExchangeOrderReq) Reset() { *x = UpdateExchangeOrderReq{} - mi := &file_pb_plant_proto_msgTypes[58] + mi := &file_pb_plant_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4976,7 +5084,7 @@ func (x *UpdateExchangeOrderReq) String() string { func (*UpdateExchangeOrderReq) ProtoMessage() {} func (x *UpdateExchangeOrderReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[58] + mi := &file_pb_plant_proto_msgTypes[59] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4989,7 +5097,7 @@ func (x *UpdateExchangeOrderReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateExchangeOrderReq.ProtoReflect.Descriptor instead. func (*UpdateExchangeOrderReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{58} + return file_pb_plant_proto_rawDescGZIP(), []int{59} } func (x *UpdateExchangeOrderReq) GetId() string { @@ -5035,7 +5143,7 @@ type MediaCheckCallbackReq struct { func (x *MediaCheckCallbackReq) Reset() { *x = MediaCheckCallbackReq{} - mi := &file_pb_plant_proto_msgTypes[59] + mi := &file_pb_plant_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5047,7 +5155,7 @@ func (x *MediaCheckCallbackReq) String() string { func (*MediaCheckCallbackReq) ProtoMessage() {} func (x *MediaCheckCallbackReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[59] + mi := &file_pb_plant_proto_msgTypes[60] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5060,7 +5168,7 @@ func (x *MediaCheckCallbackReq) ProtoReflect() protoreflect.Message { // Deprecated: Use MediaCheckCallbackReq.ProtoReflect.Descriptor instead. func (*MediaCheckCallbackReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{59} + return file_pb_plant_proto_rawDescGZIP(), []int{60} } func (x *MediaCheckCallbackReq) GetTraceId() string { @@ -5112,6 +5220,454 @@ func (x *MediaCheckCallbackReq) GetErrMsg() string { return "" } +type QuickCareReq struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` + PlantId string `protobuf:"bytes,2,opt,name=plantId,proto3" json:"plantId,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"` + Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *QuickCareReq) Reset() { + *x = QuickCareReq{} + mi := &file_pb_plant_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *QuickCareReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuickCareReq) ProtoMessage() {} + +func (x *QuickCareReq) ProtoReflect() protoreflect.Message { + mi := &file_pb_plant_proto_msgTypes[61] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QuickCareReq.ProtoReflect.Descriptor instead. +func (*QuickCareReq) Descriptor() ([]byte, []int) { + return file_pb_plant_proto_rawDescGZIP(), []int{61} +} + +func (x *QuickCareReq) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *QuickCareReq) GetPlantId() string { + if x != nil { + return x.PlantId + } + return "" +} + +func (x *QuickCareReq) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *QuickCareReq) GetIcon() string { + if x != nil { + return x.Icon + } + return "" +} + +func (x *QuickCareReq) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +type BannerInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + ImageId string `protobuf:"bytes,3,opt,name=imageId,proto3" json:"imageId,omitempty"` + Sort int32 `protobuf:"varint,4,opt,name=sort,proto3" json:"sort,omitempty"` + IsActive int32 `protobuf:"varint,5,opt,name=isActive,proto3" json:"isActive,omitempty"` + TargetUrl string `protobuf:"bytes,6,opt,name=targetUrl,proto3" json:"targetUrl,omitempty"` + CreatedAt string `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BannerInfo) Reset() { + *x = BannerInfo{} + mi := &file_pb_plant_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BannerInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BannerInfo) ProtoMessage() {} + +func (x *BannerInfo) ProtoReflect() protoreflect.Message { + mi := &file_pb_plant_proto_msgTypes[62] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BannerInfo.ProtoReflect.Descriptor instead. +func (*BannerInfo) Descriptor() ([]byte, []int) { + return file_pb_plant_proto_rawDescGZIP(), []int{62} +} + +func (x *BannerInfo) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *BannerInfo) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *BannerInfo) GetImageId() string { + if x != nil { + return x.ImageId + } + return "" +} + +func (x *BannerInfo) GetSort() int32 { + if x != nil { + return x.Sort + } + return 0 +} + +func (x *BannerInfo) GetIsActive() int32 { + if x != nil { + return x.IsActive + } + return 0 +} + +func (x *BannerInfo) GetTargetUrl() string { + if x != nil { + return x.TargetUrl + } + return "" +} + +func (x *BannerInfo) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +type BannerListReq struct { + state protoimpl.MessageState `protogen:"open.v1"` + Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` + PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` + Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + IsActive int32 `protobuf:"varint,4,opt,name=isActive,proto3" json:"isActive,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BannerListReq) Reset() { + *x = BannerListReq{} + mi := &file_pb_plant_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BannerListReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BannerListReq) ProtoMessage() {} + +func (x *BannerListReq) ProtoReflect() protoreflect.Message { + mi := &file_pb_plant_proto_msgTypes[63] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BannerListReq.ProtoReflect.Descriptor instead. +func (*BannerListReq) Descriptor() ([]byte, []int) { + return file_pb_plant_proto_rawDescGZIP(), []int{63} +} + +func (x *BannerListReq) GetCurrent() int32 { + if x != nil { + return x.Current + } + return 0 +} + +func (x *BannerListReq) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *BannerListReq) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *BannerListReq) GetIsActive() int32 { + if x != nil { + return x.IsActive + } + return 0 +} + +type BannerListResp struct { + state protoimpl.MessageState `protogen:"open.v1"` + List []*BannerInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BannerListResp) Reset() { + *x = BannerListResp{} + mi := &file_pb_plant_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BannerListResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BannerListResp) ProtoMessage() {} + +func (x *BannerListResp) ProtoReflect() protoreflect.Message { + mi := &file_pb_plant_proto_msgTypes[64] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BannerListResp.ProtoReflect.Descriptor instead. +func (*BannerListResp) Descriptor() ([]byte, []int) { + return file_pb_plant_proto_rawDescGZIP(), []int{64} +} + +func (x *BannerListResp) GetList() []*BannerInfo { + if x != nil { + return x.List + } + return nil +} + +func (x *BannerListResp) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type CreateBannerReq struct { + state protoimpl.MessageState `protogen:"open.v1"` + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + ImageId string `protobuf:"bytes,2,opt,name=imageId,proto3" json:"imageId,omitempty"` + Sort int32 `protobuf:"varint,3,opt,name=sort,proto3" json:"sort,omitempty"` + IsActive int32 `protobuf:"varint,4,opt,name=isActive,proto3" json:"isActive,omitempty"` + TargetUrl string `protobuf:"bytes,5,opt,name=targetUrl,proto3" json:"targetUrl,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateBannerReq) Reset() { + *x = CreateBannerReq{} + mi := &file_pb_plant_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateBannerReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateBannerReq) ProtoMessage() {} + +func (x *CreateBannerReq) ProtoReflect() protoreflect.Message { + mi := &file_pb_plant_proto_msgTypes[65] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateBannerReq.ProtoReflect.Descriptor instead. +func (*CreateBannerReq) Descriptor() ([]byte, []int) { + return file_pb_plant_proto_rawDescGZIP(), []int{65} +} + +func (x *CreateBannerReq) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *CreateBannerReq) GetImageId() string { + if x != nil { + return x.ImageId + } + return "" +} + +func (x *CreateBannerReq) GetSort() int32 { + if x != nil { + return x.Sort + } + return 0 +} + +func (x *CreateBannerReq) GetIsActive() int32 { + if x != nil { + return x.IsActive + } + return 0 +} + +func (x *CreateBannerReq) GetTargetUrl() string { + if x != nil { + return x.TargetUrl + } + return "" +} + +type UpdateBannerReq struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + ImageId string `protobuf:"bytes,3,opt,name=imageId,proto3" json:"imageId,omitempty"` + Sort int32 `protobuf:"varint,4,opt,name=sort,proto3" json:"sort,omitempty"` + IsActive int32 `protobuf:"varint,5,opt,name=isActive,proto3" json:"isActive,omitempty"` + TargetUrl string `protobuf:"bytes,6,opt,name=targetUrl,proto3" json:"targetUrl,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateBannerReq) Reset() { + *x = UpdateBannerReq{} + mi := &file_pb_plant_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateBannerReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateBannerReq) ProtoMessage() {} + +func (x *UpdateBannerReq) ProtoReflect() protoreflect.Message { + mi := &file_pb_plant_proto_msgTypes[66] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateBannerReq.ProtoReflect.Descriptor instead. +func (*UpdateBannerReq) Descriptor() ([]byte, []int) { + return file_pb_plant_proto_rawDescGZIP(), []int{66} +} + +func (x *UpdateBannerReq) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UpdateBannerReq) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *UpdateBannerReq) GetImageId() string { + if x != nil { + return x.ImageId + } + return "" +} + +func (x *UpdateBannerReq) GetSort() int32 { + if x != nil { + return x.Sort + } + return 0 +} + +func (x *UpdateBannerReq) GetIsActive() int32 { + if x != nil { + return x.IsActive + } + return 0 +} + +func (x *UpdateBannerReq) GetTargetUrl() string { + if x != nil { + return x.TargetUrl + } + return "" +} + type SaveAiChatHistoryReq struct { state protoimpl.MessageState `protogen:"open.v1"` UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` @@ -5123,7 +5679,7 @@ type SaveAiChatHistoryReq struct { func (x *SaveAiChatHistoryReq) Reset() { *x = SaveAiChatHistoryReq{} - mi := &file_pb_plant_proto_msgTypes[60] + mi := &file_pb_plant_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5135,7 +5691,7 @@ func (x *SaveAiChatHistoryReq) String() string { func (*SaveAiChatHistoryReq) ProtoMessage() {} func (x *SaveAiChatHistoryReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[60] + mi := &file_pb_plant_proto_msgTypes[67] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5148,7 +5704,7 @@ func (x *SaveAiChatHistoryReq) ProtoReflect() protoreflect.Message { // Deprecated: Use SaveAiChatHistoryReq.ProtoReflect.Descriptor instead. func (*SaveAiChatHistoryReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{60} + return file_pb_plant_proto_rawDescGZIP(), []int{67} } func (x *SaveAiChatHistoryReq) GetUserId() string { @@ -5181,7 +5737,7 @@ type SyncWikiVectorReq struct { func (x *SyncWikiVectorReq) Reset() { *x = SyncWikiVectorReq{} - mi := &file_pb_plant_proto_msgTypes[61] + mi := &file_pb_plant_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5193,7 +5749,7 @@ func (x *SyncWikiVectorReq) String() string { func (*SyncWikiVectorReq) ProtoMessage() {} func (x *SyncWikiVectorReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[61] + mi := &file_pb_plant_proto_msgTypes[68] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5206,7 +5762,7 @@ func (x *SyncWikiVectorReq) ProtoReflect() protoreflect.Message { // Deprecated: Use SyncWikiVectorReq.ProtoReflect.Descriptor instead. func (*SyncWikiVectorReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{61} + return file_pb_plant_proto_rawDescGZIP(), []int{68} } func (x *SyncWikiVectorReq) GetWikiId() string { @@ -5229,7 +5785,7 @@ type LevelConfigInfo struct { func (x *LevelConfigInfo) Reset() { *x = LevelConfigInfo{} - mi := &file_pb_plant_proto_msgTypes[62] + mi := &file_pb_plant_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5241,7 +5797,7 @@ func (x *LevelConfigInfo) String() string { func (*LevelConfigInfo) ProtoMessage() {} func (x *LevelConfigInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[62] + mi := &file_pb_plant_proto_msgTypes[69] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5254,7 +5810,7 @@ func (x *LevelConfigInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use LevelConfigInfo.ProtoReflect.Descriptor instead. func (*LevelConfigInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{62} + return file_pb_plant_proto_rawDescGZIP(), []int{69} } func (x *LevelConfigInfo) GetId() string { @@ -5301,7 +5857,7 @@ type LevelConfigListResp struct { func (x *LevelConfigListResp) Reset() { *x = LevelConfigListResp{} - mi := &file_pb_plant_proto_msgTypes[63] + mi := &file_pb_plant_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5313,7 +5869,7 @@ func (x *LevelConfigListResp) String() string { func (*LevelConfigListResp) ProtoMessage() {} func (x *LevelConfigListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[63] + mi := &file_pb_plant_proto_msgTypes[70] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5326,7 +5882,7 @@ func (x *LevelConfigListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use LevelConfigListResp.ProtoReflect.Descriptor instead. func (*LevelConfigListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{63} + return file_pb_plant_proto_rawDescGZIP(), []int{70} } func (x *LevelConfigListResp) GetList() []*LevelConfigInfo { @@ -5348,7 +5904,7 @@ type CreateLevelConfigReq struct { func (x *CreateLevelConfigReq) Reset() { *x = CreateLevelConfigReq{} - mi := &file_pb_plant_proto_msgTypes[64] + mi := &file_pb_plant_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5360,7 +5916,7 @@ func (x *CreateLevelConfigReq) String() string { func (*CreateLevelConfigReq) ProtoMessage() {} func (x *CreateLevelConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[64] + mi := &file_pb_plant_proto_msgTypes[71] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5373,7 +5929,7 @@ func (x *CreateLevelConfigReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateLevelConfigReq.ProtoReflect.Descriptor instead. func (*CreateLevelConfigReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{64} + return file_pb_plant_proto_rawDescGZIP(), []int{71} } func (x *CreateLevelConfigReq) GetLevel() int32 { @@ -5417,7 +5973,7 @@ type UpdateLevelConfigReq struct { func (x *UpdateLevelConfigReq) Reset() { *x = UpdateLevelConfigReq{} - mi := &file_pb_plant_proto_msgTypes[65] + mi := &file_pb_plant_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5429,7 +5985,7 @@ func (x *UpdateLevelConfigReq) String() string { func (*UpdateLevelConfigReq) ProtoMessage() {} func (x *UpdateLevelConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[65] + mi := &file_pb_plant_proto_msgTypes[72] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5442,7 +5998,7 @@ func (x *UpdateLevelConfigReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateLevelConfigReq.ProtoReflect.Descriptor instead. func (*UpdateLevelConfigReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{65} + return file_pb_plant_proto_rawDescGZIP(), []int{72} } func (x *UpdateLevelConfigReq) GetId() string { @@ -5499,7 +6055,7 @@ type BadgeConfigInfo struct { func (x *BadgeConfigInfo) Reset() { *x = BadgeConfigInfo{} - mi := &file_pb_plant_proto_msgTypes[66] + mi := &file_pb_plant_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5511,7 +6067,7 @@ func (x *BadgeConfigInfo) String() string { func (*BadgeConfigInfo) ProtoMessage() {} func (x *BadgeConfigInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[66] + mi := &file_pb_plant_proto_msgTypes[73] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5524,7 +6080,7 @@ func (x *BadgeConfigInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use BadgeConfigInfo.ProtoReflect.Descriptor instead. func (*BadgeConfigInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{66} + return file_pb_plant_proto_rawDescGZIP(), []int{73} } func (x *BadgeConfigInfo) GetId() string { @@ -5615,7 +6171,7 @@ type BadgeConfigListReq struct { func (x *BadgeConfigListReq) Reset() { *x = BadgeConfigListReq{} - mi := &file_pb_plant_proto_msgTypes[67] + mi := &file_pb_plant_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5627,7 +6183,7 @@ func (x *BadgeConfigListReq) String() string { func (*BadgeConfigListReq) ProtoMessage() {} func (x *BadgeConfigListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[67] + mi := &file_pb_plant_proto_msgTypes[74] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5640,7 +6196,7 @@ func (x *BadgeConfigListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use BadgeConfigListReq.ProtoReflect.Descriptor instead. func (*BadgeConfigListReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{67} + return file_pb_plant_proto_rawDescGZIP(), []int{74} } func (x *BadgeConfigListReq) GetCurrent() int32 { @@ -5674,7 +6230,7 @@ type BadgeConfigListResp struct { func (x *BadgeConfigListResp) Reset() { *x = BadgeConfigListResp{} - mi := &file_pb_plant_proto_msgTypes[68] + mi := &file_pb_plant_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5686,7 +6242,7 @@ func (x *BadgeConfigListResp) String() string { func (*BadgeConfigListResp) ProtoMessage() {} func (x *BadgeConfigListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[68] + mi := &file_pb_plant_proto_msgTypes[75] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5699,7 +6255,7 @@ func (x *BadgeConfigListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use BadgeConfigListResp.ProtoReflect.Descriptor instead. func (*BadgeConfigListResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{68} + return file_pb_plant_proto_rawDescGZIP(), []int{75} } func (x *BadgeConfigListResp) GetList() []*BadgeConfigInfo { @@ -5734,7 +6290,7 @@ type CreateBadgeConfigReq struct { func (x *CreateBadgeConfigReq) Reset() { *x = CreateBadgeConfigReq{} - mi := &file_pb_plant_proto_msgTypes[69] + mi := &file_pb_plant_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5746,7 +6302,7 @@ func (x *CreateBadgeConfigReq) String() string { func (*CreateBadgeConfigReq) ProtoMessage() {} func (x *CreateBadgeConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[69] + mi := &file_pb_plant_proto_msgTypes[76] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5759,7 +6315,7 @@ func (x *CreateBadgeConfigReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateBadgeConfigReq.ProtoReflect.Descriptor instead. func (*CreateBadgeConfigReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{69} + return file_pb_plant_proto_rawDescGZIP(), []int{76} } func (x *CreateBadgeConfigReq) GetName() string { @@ -5851,7 +6407,7 @@ type UpdateBadgeConfigReq struct { func (x *UpdateBadgeConfigReq) Reset() { *x = UpdateBadgeConfigReq{} - mi := &file_pb_plant_proto_msgTypes[70] + mi := &file_pb_plant_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5863,7 +6419,7 @@ func (x *UpdateBadgeConfigReq) String() string { func (*UpdateBadgeConfigReq) ProtoMessage() {} func (x *UpdateBadgeConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[70] + mi := &file_pb_plant_proto_msgTypes[77] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5876,7 +6432,7 @@ func (x *UpdateBadgeConfigReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateBadgeConfigReq.ProtoReflect.Descriptor instead. func (*UpdateBadgeConfigReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{70} + return file_pb_plant_proto_rawDescGZIP(), []int{77} } func (x *UpdateBadgeConfigReq) GetId() string { @@ -5967,7 +6523,7 @@ type CompleteTaskReq struct { func (x *CompleteTaskReq) Reset() { *x = CompleteTaskReq{} - mi := &file_pb_plant_proto_msgTypes[71] + mi := &file_pb_plant_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5979,7 +6535,7 @@ func (x *CompleteTaskReq) String() string { func (*CompleteTaskReq) ProtoMessage() {} func (x *CompleteTaskReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[71] + mi := &file_pb_plant_proto_msgTypes[78] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5992,7 +6548,7 @@ func (x *CompleteTaskReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CompleteTaskReq.ProtoReflect.Descriptor instead. func (*CompleteTaskReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{71} + return file_pb_plant_proto_rawDescGZIP(), []int{78} } func (x *CompleteTaskReq) GetUserId() string { @@ -6029,7 +6585,7 @@ type TaskCompletionResult struct { func (x *TaskCompletionResult) Reset() { *x = TaskCompletionResult{} - mi := &file_pb_plant_proto_msgTypes[72] + mi := &file_pb_plant_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6041,7 +6597,7 @@ func (x *TaskCompletionResult) String() string { func (*TaskCompletionResult) ProtoMessage() {} func (x *TaskCompletionResult) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[72] + mi := &file_pb_plant_proto_msgTypes[79] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6054,7 +6610,7 @@ func (x *TaskCompletionResult) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskCompletionResult.ProtoReflect.Descriptor instead. func (*TaskCompletionResult) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{72} + return file_pb_plant_proto_rawDescGZIP(), []int{79} } func (x *TaskCompletionResult) GetIsLevelUp() bool { @@ -6103,7 +6659,7 @@ type BadgeGroupInfo struct { func (x *BadgeGroupInfo) Reset() { *x = BadgeGroupInfo{} - mi := &file_pb_plant_proto_msgTypes[73] + mi := &file_pb_plant_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6115,7 +6671,7 @@ func (x *BadgeGroupInfo) String() string { func (*BadgeGroupInfo) ProtoMessage() {} func (x *BadgeGroupInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[73] + mi := &file_pb_plant_proto_msgTypes[80] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6128,7 +6684,7 @@ func (x *BadgeGroupInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use BadgeGroupInfo.ProtoReflect.Descriptor instead. func (*BadgeGroupInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{73} + return file_pb_plant_proto_rawDescGZIP(), []int{80} } func (x *BadgeGroupInfo) GetGroupId() string { @@ -6161,7 +6717,7 @@ type BadgeConfigTreeResp struct { func (x *BadgeConfigTreeResp) Reset() { *x = BadgeConfigTreeResp{} - mi := &file_pb_plant_proto_msgTypes[74] + mi := &file_pb_plant_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6173,7 +6729,7 @@ func (x *BadgeConfigTreeResp) String() string { func (*BadgeConfigTreeResp) ProtoMessage() {} func (x *BadgeConfigTreeResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[74] + mi := &file_pb_plant_proto_msgTypes[81] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6186,7 +6742,7 @@ func (x *BadgeConfigTreeResp) ProtoReflect() protoreflect.Message { // Deprecated: Use BadgeConfigTreeResp.ProtoReflect.Descriptor instead. func (*BadgeConfigTreeResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{74} + return file_pb_plant_proto_rawDescGZIP(), []int{81} } func (x *BadgeConfigTreeResp) GetGroups() []*BadgeGroupInfo { @@ -6208,7 +6764,7 @@ type AiQuotaResp struct { func (x *AiQuotaResp) Reset() { *x = AiQuotaResp{} - mi := &file_pb_plant_proto_msgTypes[75] + mi := &file_pb_plant_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6220,7 +6776,7 @@ func (x *AiQuotaResp) String() string { func (*AiQuotaResp) ProtoMessage() {} func (x *AiQuotaResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[75] + mi := &file_pb_plant_proto_msgTypes[82] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6233,7 +6789,7 @@ func (x *AiQuotaResp) ProtoReflect() protoreflect.Message { // Deprecated: Use AiQuotaResp.ProtoReflect.Descriptor instead. func (*AiQuotaResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{75} + return file_pb_plant_proto_rawDescGZIP(), []int{82} } func (x *AiQuotaResp) GetRemaining() int64 { @@ -6277,7 +6833,7 @@ type AiChatHistoryInfo struct { func (x *AiChatHistoryInfo) Reset() { *x = AiChatHistoryInfo{} - mi := &file_pb_plant_proto_msgTypes[76] + mi := &file_pb_plant_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6289,7 +6845,7 @@ func (x *AiChatHistoryInfo) String() string { func (*AiChatHistoryInfo) ProtoMessage() {} func (x *AiChatHistoryInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[76] + mi := &file_pb_plant_proto_msgTypes[83] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6302,7 +6858,7 @@ func (x *AiChatHistoryInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use AiChatHistoryInfo.ProtoReflect.Descriptor instead. func (*AiChatHistoryInfo) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{76} + return file_pb_plant_proto_rawDescGZIP(), []int{83} } func (x *AiChatHistoryInfo) GetId() string { @@ -6351,7 +6907,7 @@ type AiChatHistoryReq struct { func (x *AiChatHistoryReq) Reset() { *x = AiChatHistoryReq{} - mi := &file_pb_plant_proto_msgTypes[77] + mi := &file_pb_plant_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6363,7 +6919,7 @@ func (x *AiChatHistoryReq) String() string { func (*AiChatHistoryReq) ProtoMessage() {} func (x *AiChatHistoryReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[77] + mi := &file_pb_plant_proto_msgTypes[84] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6376,7 +6932,7 @@ func (x *AiChatHistoryReq) ProtoReflect() protoreflect.Message { // Deprecated: Use AiChatHistoryReq.ProtoReflect.Descriptor instead. func (*AiChatHistoryReq) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{77} + return file_pb_plant_proto_rawDescGZIP(), []int{84} } func (x *AiChatHistoryReq) GetUserId() string { @@ -6410,7 +6966,7 @@ type AiChatHistoryResp struct { func (x *AiChatHistoryResp) Reset() { *x = AiChatHistoryResp{} - mi := &file_pb_plant_proto_msgTypes[78] + mi := &file_pb_plant_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6422,7 +6978,7 @@ func (x *AiChatHistoryResp) String() string { func (*AiChatHistoryResp) ProtoMessage() {} func (x *AiChatHistoryResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_plant_proto_msgTypes[78] + mi := &file_pb_plant_proto_msgTypes[85] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6435,7 +6991,7 @@ func (x *AiChatHistoryResp) ProtoReflect() protoreflect.Message { // Deprecated: Use AiChatHistoryResp.ProtoReflect.Descriptor instead. func (*AiChatHistoryResp) Descriptor() ([]byte, []int) { - return file_pb_plant_proto_rawDescGZIP(), []int{78} + return file_pb_plant_proto_rawDescGZIP(), []int{85} } func (x *AiChatHistoryResp) GetList() []*AiChatHistoryInfo { @@ -6467,7 +7023,7 @@ const file_pb_plant_proto_rawDesc = "" + "\x03ids\x18\x01 \x03(\tR\x03ids\"?\n" + "\aPageReq\x12\x18\n" + "\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" + - "\bpageSize\x18\x02 \x01(\x05R\bpageSize\"\xe0\x03\n" + + "\bpageSize\x18\x02 \x01(\x05R\bpageSize\"\xd6\x04\n" + "\x10PlantUserProfile\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + "\x06userId\x18\x02 \x01(\tR\x06userId\x12\x1a\n" + @@ -6494,7 +7050,23 @@ const file_pb_plant_proto_rawDesc = "" + "pruneCount\x12\x1e\n" + "\n" + "photoCount\x18\x0f \x01(\x03R\n" + - "photoCount\"'\n" + + "photoCount\x12\x1e\n" + + "\n" + + "miniOpenId\x18\x10 \x01(\tR\n" + + "miniOpenId\x12\x1e\n" + + "\n" + + "sessionKey\x18\x11 \x01(\tR\n" + + "sessionKey\x12\x18\n" + + "\aunionId\x18\x12 \x01(\tR\aunionId\x12\x1a\n" + + "\bsaOpenId\x18\x13 \x01(\tR\bsaOpenId\"\xa7\x01\n" + + "\x1bFindOrCreateUserByOpenIdReq\x12\x16\n" + + "\x06openId\x18\x01 \x01(\tR\x06openId\x12\x1e\n" + + "\n" + + "sessionKey\x18\x02 \x01(\tR\n" + + "sessionKey\x12\x1a\n" + + "\bclientId\x18\x03 \x01(\tR\bclientId\x12\x18\n" + + "\aunionId\x18\x04 \x01(\tR\aunionId\x12\x1a\n" + + "\bsaOpenId\x18\x05 \x01(\tR\bsaOpenId\"'\n" + "\rGetProfileReq\x12\x16\n" + "\x06userId\x18\x01 \x01(\tR\x06userId\"b\n" + "\x10UpdateProfileReq\x12\x16\n" + @@ -6912,7 +7484,43 @@ const file_pb_plant_proto_rawDesc = "" + "\x06userId\x18\x04 \x01(\tR\x06userId\x12\x16\n" + "\x06status\x18\x05 \x01(\x05R\x06status\x12\x12\n" + "\x04type\x18\x06 \x01(\x05R\x04type\x12\x16\n" + - "\x06errMsg\x18\a \x01(\tR\x06errMsg\"b\n" + + "\x06errMsg\x18\a \x01(\tR\x06errMsg\"\x80\x01\n" + + "\fQuickCareReq\x12\x16\n" + + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x18\n" + + "\aplantId\x18\x02 \x01(\tR\aplantId\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" + + "\x04icon\x18\x04 \x01(\tR\x04icon\x12\x16\n" + + "\x06remark\x18\x05 \x01(\tR\x06remark\"\xb8\x01\n" + + "\n" + + "BannerInfo\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" + + "\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" + + "\aimageId\x18\x03 \x01(\tR\aimageId\x12\x12\n" + + "\x04sort\x18\x04 \x01(\x05R\x04sort\x12\x1a\n" + + "\bisActive\x18\x05 \x01(\x05R\bisActive\x12\x1c\n" + + "\ttargetUrl\x18\x06 \x01(\tR\ttargetUrl\x12\x1c\n" + + "\tcreatedAt\x18\a \x01(\tR\tcreatedAt\"w\n" + + "\rBannerListReq\x12\x18\n" + + "\acurrent\x18\x01 \x01(\x05R\acurrent\x12\x1a\n" + + "\bpageSize\x18\x02 \x01(\x05R\bpageSize\x12\x14\n" + + "\x05title\x18\x03 \x01(\tR\x05title\x12\x1a\n" + + "\bisActive\x18\x04 \x01(\x05R\bisActive\"M\n" + + "\x0eBannerListResp\x12%\n" + + "\x04list\x18\x01 \x03(\v2\x11.plant.BannerInfoR\x04list\x12\x14\n" + + "\x05total\x18\x02 \x01(\x03R\x05total\"\x8f\x01\n" + + "\x0fCreateBannerReq\x12\x14\n" + + "\x05title\x18\x01 \x01(\tR\x05title\x12\x18\n" + + "\aimageId\x18\x02 \x01(\tR\aimageId\x12\x12\n" + + "\x04sort\x18\x03 \x01(\x05R\x04sort\x12\x1a\n" + + "\bisActive\x18\x04 \x01(\x05R\bisActive\x12\x1c\n" + + "\ttargetUrl\x18\x05 \x01(\tR\ttargetUrl\"\x9f\x01\n" + + "\x0fUpdateBannerReq\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" + + "\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" + + "\aimageId\x18\x03 \x01(\tR\aimageId\x12\x12\n" + + "\x04sort\x18\x04 \x01(\x05R\x04sort\x12\x1a\n" + + "\bisActive\x18\x05 \x01(\x05R\bisActive\x12\x1c\n" + + "\ttargetUrl\x18\x06 \x01(\tR\ttargetUrl\"b\n" + "\x14SaveAiChatHistoryReq\x12\x16\n" + "\x06userId\x18\x01 \x01(\tR\x06userId\x12\x1a\n" + "\bquestion\x18\x02 \x01(\tR\bquestion\x12\x16\n" + @@ -7018,9 +7626,10 @@ const file_pb_plant_proto_rawDesc = "" + "\bpageSize\x18\x03 \x01(\x05R\bpageSize\"W\n" + "\x11AiChatHistoryResp\x12,\n" + "\x04list\x18\x01 \x03(\v2\x18.plant.AiChatHistoryInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total2\x9c!\n" + + "\x05total\x18\x02 \x01(\x03R\x05total2\xce$\n" + "\fPlantService\x12?\n" + - "\x0eGetUserProfile\x12\x14.plant.GetProfileReq\x1a\x17.plant.PlantUserProfile\x12?\n" + + "\x0eGetUserProfile\x12\x14.plant.GetProfileReq\x1a\x17.plant.PlantUserProfile\x12W\n" + + "\x18FindOrCreateUserByOpenId\x12\".plant.FindOrCreateUserByOpenIdReq\x1a\x17.plant.PlantUserProfile\x12?\n" + "\x11UpdateUserProfile\x12\x17.plant.UpdateProfileReq\x1a\x11.plant.CommonResp\x12=\n" + "\vGetMyBadges\x12\x14.plant.GetProfileReq\x1a\x18.plant.UserBadgeListResp\x12;\n" + "\n" + @@ -7094,7 +7703,13 @@ const file_pb_plant_proto_rawDesc = "" + "\x11SaveAiChatHistory\x12\x1b.plant.SaveAiChatHistoryReq\x1a\x11.plant.CommonResp\x127\n" + "\x13DeleteAiChatHistory\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x12=\n" + "\x12ClearAiChatHistory\x12\x14.plant.GetProfileReq\x1a\x11.plant.CommonResp\x12:\n" + - "\x0eGetAiChatQuota\x12\x14.plant.GetProfileReq\x1a\x12.plant.AiQuotaRespB\tZ\a./plantb\x06proto3" + "\x0eGetAiChatQuota\x12\x14.plant.GetProfileReq\x1a\x12.plant.AiQuotaResp\x123\n" + + "\tQuickCare\x12\x13.plant.QuickCareReq\x1a\x11.plant.CommonResp\x129\n" + + "\fCreateBanner\x12\x16.plant.CreateBannerReq\x1a\x11.plant.CommonResp\x129\n" + + "\fUpdateBanner\x12\x16.plant.UpdateBannerReq\x1a\x11.plant.CommonResp\x120\n" + + "\fDeleteBanner\x12\r.plant.IdsReq\x1a\x11.plant.CommonResp\x12<\n" + + "\rGetBannerList\x12\x14.plant.BannerListReq\x1a\x15.plant.BannerListResp\x12<\n" + + "\x13GetActiveBannerList\x12\x0e.plant.PageReq\x1a\x15.plant.BannerListRespB\tZ\a./plantb\x06proto3" var ( file_pb_plant_proto_rawDescOnce sync.Once @@ -7108,256 +7723,278 @@ func file_pb_plant_proto_rawDescGZIP() []byte { return file_pb_plant_proto_rawDescData } -var file_pb_plant_proto_msgTypes = make([]protoimpl.MessageInfo, 79) +var file_pb_plant_proto_msgTypes = make([]protoimpl.MessageInfo, 86) var file_pb_plant_proto_goTypes = []any{ - (*CommonResp)(nil), // 0: plant.CommonResp - (*IdReq)(nil), // 1: plant.IdReq - (*IdsReq)(nil), // 2: plant.IdsReq - (*PageReq)(nil), // 3: plant.PageReq - (*PlantUserProfile)(nil), // 4: plant.PlantUserProfile - (*GetProfileReq)(nil), // 5: plant.GetProfileReq - (*UpdateProfileReq)(nil), // 6: plant.UpdateProfileReq - (*UserBadgeInfo)(nil), // 7: plant.UserBadgeInfo - (*UserBadgeListResp)(nil), // 8: plant.UserBadgeListResp - (*UserStarInfo)(nil), // 9: plant.UserStarInfo - (*UserStarListResp)(nil), // 10: plant.UserStarListResp - (*PlantInfo)(nil), // 11: plant.PlantInfo - (*CreatePlantReq)(nil), // 12: plant.CreatePlantReq - (*UpdatePlantReq)(nil), // 13: plant.UpdatePlantReq - (*PlantListReq)(nil), // 14: plant.PlantListReq - (*PlantListResp)(nil), // 15: plant.PlantListResp - (*PlantDetailResp)(nil), // 16: plant.PlantDetailResp - (*CarePlanInfo)(nil), // 17: plant.CarePlanInfo - (*AddCarePlanReq)(nil), // 18: plant.AddCarePlanReq - (*CareTaskInfo)(nil), // 19: plant.CareTaskInfo - (*CareTaskListResp)(nil), // 20: plant.CareTaskListResp - (*AddCareRecordReq)(nil), // 21: plant.AddCareRecordReq - (*GrowthRecordInfo)(nil), // 22: plant.GrowthRecordInfo - (*AddGrowthRecordReq)(nil), // 23: plant.AddGrowthRecordReq - (*WikiInfo)(nil), // 24: plant.WikiInfo - (*WikiListReq)(nil), // 25: plant.WikiListReq - (*WikiListResp)(nil), // 26: plant.WikiListResp - (*WikiDetailResp)(nil), // 27: plant.WikiDetailResp - (*CreateWikiReq)(nil), // 28: plant.CreateWikiReq - (*UpdateWikiReq)(nil), // 29: plant.UpdateWikiReq - (*WikiClassInfo)(nil), // 30: plant.WikiClassInfo - (*WikiClassListResp)(nil), // 31: plant.WikiClassListResp - (*CreateWikiClassReq)(nil), // 32: plant.CreateWikiClassReq - (*UpdateWikiClassReq)(nil), // 33: plant.UpdateWikiClassReq - (*ToggleStarReq)(nil), // 34: plant.ToggleStarReq - (*ClassifyLogInfo)(nil), // 35: plant.ClassifyLogInfo - (*ClassifyLogListResp)(nil), // 36: plant.ClassifyLogListResp - (*PostInfo)(nil), // 37: plant.PostInfo - (*CreatePostReq)(nil), // 38: plant.CreatePostReq - (*PostListReq)(nil), // 39: plant.PostListReq - (*PostListResp)(nil), // 40: plant.PostListResp - (*PostDetailResp)(nil), // 41: plant.PostDetailResp - (*PostCommentInfo)(nil), // 42: plant.PostCommentInfo - (*CommentPostReq)(nil), // 43: plant.CommentPostReq - (*LikePostReq)(nil), // 44: plant.LikePostReq - (*TopicInfo)(nil), // 45: plant.TopicInfo - (*TopicListResp)(nil), // 46: plant.TopicListResp - (*CreateTopicReq)(nil), // 47: plant.CreateTopicReq - (*UpdateTopicReq)(nil), // 48: plant.UpdateTopicReq - (*ExchangeItemInfo)(nil), // 49: plant.ExchangeItemInfo - (*ExchangeItemListReq)(nil), // 50: plant.ExchangeItemListReq - (*ExchangeItemListResp)(nil), // 51: plant.ExchangeItemListResp - (*CreateExchangeOrderReq)(nil), // 52: plant.CreateExchangeOrderReq - (*CreateExchangeItemReq)(nil), // 53: plant.CreateExchangeItemReq - (*UpdateExchangeItemReq)(nil), // 54: plant.UpdateExchangeItemReq - (*ExchangeOrderInfo)(nil), // 55: plant.ExchangeOrderInfo - (*ExchangeOrderListReq)(nil), // 56: plant.ExchangeOrderListReq - (*ExchangeOrderListResp)(nil), // 57: plant.ExchangeOrderListResp - (*UpdateExchangeOrderReq)(nil), // 58: plant.UpdateExchangeOrderReq - (*MediaCheckCallbackReq)(nil), // 59: plant.MediaCheckCallbackReq - (*SaveAiChatHistoryReq)(nil), // 60: plant.SaveAiChatHistoryReq - (*SyncWikiVectorReq)(nil), // 61: plant.SyncWikiVectorReq - (*LevelConfigInfo)(nil), // 62: plant.LevelConfigInfo - (*LevelConfigListResp)(nil), // 63: plant.LevelConfigListResp - (*CreateLevelConfigReq)(nil), // 64: plant.CreateLevelConfigReq - (*UpdateLevelConfigReq)(nil), // 65: plant.UpdateLevelConfigReq - (*BadgeConfigInfo)(nil), // 66: plant.BadgeConfigInfo - (*BadgeConfigListReq)(nil), // 67: plant.BadgeConfigListReq - (*BadgeConfigListResp)(nil), // 68: plant.BadgeConfigListResp - (*CreateBadgeConfigReq)(nil), // 69: plant.CreateBadgeConfigReq - (*UpdateBadgeConfigReq)(nil), // 70: plant.UpdateBadgeConfigReq - (*CompleteTaskReq)(nil), // 71: plant.CompleteTaskReq - (*TaskCompletionResult)(nil), // 72: plant.TaskCompletionResult - (*BadgeGroupInfo)(nil), // 73: plant.BadgeGroupInfo - (*BadgeConfigTreeResp)(nil), // 74: plant.BadgeConfigTreeResp - (*AiQuotaResp)(nil), // 75: plant.AiQuotaResp - (*AiChatHistoryInfo)(nil), // 76: plant.AiChatHistoryInfo - (*AiChatHistoryReq)(nil), // 77: plant.AiChatHistoryReq - (*AiChatHistoryResp)(nil), // 78: plant.AiChatHistoryResp + (*CommonResp)(nil), // 0: plant.CommonResp + (*IdReq)(nil), // 1: plant.IdReq + (*IdsReq)(nil), // 2: plant.IdsReq + (*PageReq)(nil), // 3: plant.PageReq + (*PlantUserProfile)(nil), // 4: plant.PlantUserProfile + (*FindOrCreateUserByOpenIdReq)(nil), // 5: plant.FindOrCreateUserByOpenIdReq + (*GetProfileReq)(nil), // 6: plant.GetProfileReq + (*UpdateProfileReq)(nil), // 7: plant.UpdateProfileReq + (*UserBadgeInfo)(nil), // 8: plant.UserBadgeInfo + (*UserBadgeListResp)(nil), // 9: plant.UserBadgeListResp + (*UserStarInfo)(nil), // 10: plant.UserStarInfo + (*UserStarListResp)(nil), // 11: plant.UserStarListResp + (*PlantInfo)(nil), // 12: plant.PlantInfo + (*CreatePlantReq)(nil), // 13: plant.CreatePlantReq + (*UpdatePlantReq)(nil), // 14: plant.UpdatePlantReq + (*PlantListReq)(nil), // 15: plant.PlantListReq + (*PlantListResp)(nil), // 16: plant.PlantListResp + (*PlantDetailResp)(nil), // 17: plant.PlantDetailResp + (*CarePlanInfo)(nil), // 18: plant.CarePlanInfo + (*AddCarePlanReq)(nil), // 19: plant.AddCarePlanReq + (*CareTaskInfo)(nil), // 20: plant.CareTaskInfo + (*CareTaskListResp)(nil), // 21: plant.CareTaskListResp + (*AddCareRecordReq)(nil), // 22: plant.AddCareRecordReq + (*GrowthRecordInfo)(nil), // 23: plant.GrowthRecordInfo + (*AddGrowthRecordReq)(nil), // 24: plant.AddGrowthRecordReq + (*WikiInfo)(nil), // 25: plant.WikiInfo + (*WikiListReq)(nil), // 26: plant.WikiListReq + (*WikiListResp)(nil), // 27: plant.WikiListResp + (*WikiDetailResp)(nil), // 28: plant.WikiDetailResp + (*CreateWikiReq)(nil), // 29: plant.CreateWikiReq + (*UpdateWikiReq)(nil), // 30: plant.UpdateWikiReq + (*WikiClassInfo)(nil), // 31: plant.WikiClassInfo + (*WikiClassListResp)(nil), // 32: plant.WikiClassListResp + (*CreateWikiClassReq)(nil), // 33: plant.CreateWikiClassReq + (*UpdateWikiClassReq)(nil), // 34: plant.UpdateWikiClassReq + (*ToggleStarReq)(nil), // 35: plant.ToggleStarReq + (*ClassifyLogInfo)(nil), // 36: plant.ClassifyLogInfo + (*ClassifyLogListResp)(nil), // 37: plant.ClassifyLogListResp + (*PostInfo)(nil), // 38: plant.PostInfo + (*CreatePostReq)(nil), // 39: plant.CreatePostReq + (*PostListReq)(nil), // 40: plant.PostListReq + (*PostListResp)(nil), // 41: plant.PostListResp + (*PostDetailResp)(nil), // 42: plant.PostDetailResp + (*PostCommentInfo)(nil), // 43: plant.PostCommentInfo + (*CommentPostReq)(nil), // 44: plant.CommentPostReq + (*LikePostReq)(nil), // 45: plant.LikePostReq + (*TopicInfo)(nil), // 46: plant.TopicInfo + (*TopicListResp)(nil), // 47: plant.TopicListResp + (*CreateTopicReq)(nil), // 48: plant.CreateTopicReq + (*UpdateTopicReq)(nil), // 49: plant.UpdateTopicReq + (*ExchangeItemInfo)(nil), // 50: plant.ExchangeItemInfo + (*ExchangeItemListReq)(nil), // 51: plant.ExchangeItemListReq + (*ExchangeItemListResp)(nil), // 52: plant.ExchangeItemListResp + (*CreateExchangeOrderReq)(nil), // 53: plant.CreateExchangeOrderReq + (*CreateExchangeItemReq)(nil), // 54: plant.CreateExchangeItemReq + (*UpdateExchangeItemReq)(nil), // 55: plant.UpdateExchangeItemReq + (*ExchangeOrderInfo)(nil), // 56: plant.ExchangeOrderInfo + (*ExchangeOrderListReq)(nil), // 57: plant.ExchangeOrderListReq + (*ExchangeOrderListResp)(nil), // 58: plant.ExchangeOrderListResp + (*UpdateExchangeOrderReq)(nil), // 59: plant.UpdateExchangeOrderReq + (*MediaCheckCallbackReq)(nil), // 60: plant.MediaCheckCallbackReq + (*QuickCareReq)(nil), // 61: plant.QuickCareReq + (*BannerInfo)(nil), // 62: plant.BannerInfo + (*BannerListReq)(nil), // 63: plant.BannerListReq + (*BannerListResp)(nil), // 64: plant.BannerListResp + (*CreateBannerReq)(nil), // 65: plant.CreateBannerReq + (*UpdateBannerReq)(nil), // 66: plant.UpdateBannerReq + (*SaveAiChatHistoryReq)(nil), // 67: plant.SaveAiChatHistoryReq + (*SyncWikiVectorReq)(nil), // 68: plant.SyncWikiVectorReq + (*LevelConfigInfo)(nil), // 69: plant.LevelConfigInfo + (*LevelConfigListResp)(nil), // 70: plant.LevelConfigListResp + (*CreateLevelConfigReq)(nil), // 71: plant.CreateLevelConfigReq + (*UpdateLevelConfigReq)(nil), // 72: plant.UpdateLevelConfigReq + (*BadgeConfigInfo)(nil), // 73: plant.BadgeConfigInfo + (*BadgeConfigListReq)(nil), // 74: plant.BadgeConfigListReq + (*BadgeConfigListResp)(nil), // 75: plant.BadgeConfigListResp + (*CreateBadgeConfigReq)(nil), // 76: plant.CreateBadgeConfigReq + (*UpdateBadgeConfigReq)(nil), // 77: plant.UpdateBadgeConfigReq + (*CompleteTaskReq)(nil), // 78: plant.CompleteTaskReq + (*TaskCompletionResult)(nil), // 79: plant.TaskCompletionResult + (*BadgeGroupInfo)(nil), // 80: plant.BadgeGroupInfo + (*BadgeConfigTreeResp)(nil), // 81: plant.BadgeConfigTreeResp + (*AiQuotaResp)(nil), // 82: plant.AiQuotaResp + (*AiChatHistoryInfo)(nil), // 83: plant.AiChatHistoryInfo + (*AiChatHistoryReq)(nil), // 84: plant.AiChatHistoryReq + (*AiChatHistoryResp)(nil), // 85: plant.AiChatHistoryResp } var file_pb_plant_proto_depIdxs = []int32{ - 7, // 0: plant.UserBadgeListResp.list:type_name -> plant.UserBadgeInfo - 9, // 1: plant.UserStarListResp.list:type_name -> plant.UserStarInfo - 11, // 2: plant.PlantListResp.list:type_name -> plant.PlantInfo - 11, // 3: plant.PlantDetailResp.plant:type_name -> plant.PlantInfo - 17, // 4: plant.PlantDetailResp.carePlans:type_name -> plant.CarePlanInfo - 22, // 5: plant.PlantDetailResp.growthRecords:type_name -> plant.GrowthRecordInfo - 19, // 6: plant.CareTaskListResp.list:type_name -> plant.CareTaskInfo - 24, // 7: plant.WikiListResp.list:type_name -> plant.WikiInfo - 24, // 8: plant.WikiDetailResp.wiki:type_name -> plant.WikiInfo - 30, // 9: plant.WikiClassListResp.list:type_name -> plant.WikiClassInfo - 35, // 10: plant.ClassifyLogListResp.list:type_name -> plant.ClassifyLogInfo - 37, // 11: plant.PostListResp.list:type_name -> plant.PostInfo - 37, // 12: plant.PostDetailResp.post:type_name -> plant.PostInfo - 42, // 13: plant.PostDetailResp.comments:type_name -> plant.PostCommentInfo - 45, // 14: plant.TopicListResp.list:type_name -> plant.TopicInfo - 49, // 15: plant.ExchangeItemListResp.list:type_name -> plant.ExchangeItemInfo - 55, // 16: plant.ExchangeOrderListResp.list:type_name -> plant.ExchangeOrderInfo - 62, // 17: plant.LevelConfigListResp.list:type_name -> plant.LevelConfigInfo - 66, // 18: plant.BadgeConfigListResp.list:type_name -> plant.BadgeConfigInfo - 62, // 19: plant.TaskCompletionResult.currentLevel:type_name -> plant.LevelConfigInfo - 66, // 20: plant.TaskCompletionResult.newBadge:type_name -> plant.BadgeConfigInfo - 66, // 21: plant.BadgeGroupInfo.badges:type_name -> plant.BadgeConfigInfo - 73, // 22: plant.BadgeConfigTreeResp.groups:type_name -> plant.BadgeGroupInfo - 76, // 23: plant.AiChatHistoryResp.list:type_name -> plant.AiChatHistoryInfo - 5, // 24: plant.PlantService.GetUserProfile:input_type -> plant.GetProfileReq - 6, // 25: plant.PlantService.UpdateUserProfile:input_type -> plant.UpdateProfileReq - 5, // 26: plant.PlantService.GetMyBadges:input_type -> plant.GetProfileReq - 5, // 27: plant.PlantService.GetMyStars:input_type -> plant.GetProfileReq - 12, // 28: plant.PlantService.CreatePlant:input_type -> plant.CreatePlantReq - 13, // 29: plant.PlantService.UpdatePlant:input_type -> plant.UpdatePlantReq - 2, // 30: plant.PlantService.DeletePlant:input_type -> plant.IdsReq - 14, // 31: plant.PlantService.GetPlantList:input_type -> plant.PlantListReq - 1, // 32: plant.PlantService.GetPlantDetail:input_type -> plant.IdReq - 18, // 33: plant.PlantService.AddCarePlan:input_type -> plant.AddCarePlanReq - 2, // 34: plant.PlantService.DeleteCarePlan:input_type -> plant.IdsReq - 5, // 35: plant.PlantService.GetTodayTaskList:input_type -> plant.GetProfileReq - 71, // 36: plant.PlantService.CompleteTask:input_type -> plant.CompleteTaskReq - 21, // 37: plant.PlantService.AddCareRecord:input_type -> plant.AddCareRecordReq - 23, // 38: plant.PlantService.AddGrowthRecord:input_type -> plant.AddGrowthRecordReq - 25, // 39: plant.PlantService.GetWikiList:input_type -> plant.WikiListReq - 1, // 40: plant.PlantService.GetWikiDetail:input_type -> plant.IdReq - 28, // 41: plant.PlantService.CreateWiki:input_type -> plant.CreateWikiReq - 29, // 42: plant.PlantService.UpdateWiki:input_type -> plant.UpdateWikiReq - 2, // 43: plant.PlantService.DeleteWiki:input_type -> plant.IdsReq - 61, // 44: plant.PlantService.SyncWikiVector:input_type -> plant.SyncWikiVectorReq - 61, // 45: plant.PlantService.DeleteWikiVector:input_type -> plant.SyncWikiVectorReq - 3, // 46: plant.PlantService.SyncAllWikiVector:input_type -> plant.PageReq - 1, // 47: plant.PlantService.GetWikiClassList:input_type -> plant.IdReq - 32, // 48: plant.PlantService.CreateWikiClass:input_type -> plant.CreateWikiClassReq - 33, // 49: plant.PlantService.UpdateWikiClass:input_type -> plant.UpdateWikiClassReq - 2, // 50: plant.PlantService.DeleteWikiClass:input_type -> plant.IdsReq - 34, // 51: plant.PlantService.ToggleWikiStar:input_type -> plant.ToggleStarReq - 5, // 52: plant.PlantService.GetMyClassifyLog:input_type -> plant.GetProfileReq - 2, // 53: plant.PlantService.DeleteClassifyLog:input_type -> plant.IdsReq - 38, // 54: plant.PlantService.CreatePost:input_type -> plant.CreatePostReq - 2, // 55: plant.PlantService.DeletePost:input_type -> plant.IdsReq - 39, // 56: plant.PlantService.GetPostList:input_type -> plant.PostListReq - 1, // 57: plant.PlantService.GetPostDetail:input_type -> plant.IdReq - 43, // 58: plant.PlantService.CommentPost:input_type -> plant.CommentPostReq - 44, // 59: plant.PlantService.LikePost:input_type -> plant.LikePostReq - 44, // 60: plant.PlantService.StarPost:input_type -> plant.LikePostReq - 59, // 61: plant.PlantService.MediaCheckCallback:input_type -> plant.MediaCheckCallbackReq - 1, // 62: plant.PlantService.GetTopicList:input_type -> plant.IdReq - 1, // 63: plant.PlantService.GetTopicDetail:input_type -> plant.IdReq - 47, // 64: plant.PlantService.CreateTopic:input_type -> plant.CreateTopicReq - 48, // 65: plant.PlantService.UpdateTopic:input_type -> plant.UpdateTopicReq - 2, // 66: plant.PlantService.DeleteTopic:input_type -> plant.IdsReq - 50, // 67: plant.PlantService.GetExchangeItemList:input_type -> plant.ExchangeItemListReq - 1, // 68: plant.PlantService.GetExchangeItemDetail:input_type -> plant.IdReq - 53, // 69: plant.PlantService.CreateExchangeItem:input_type -> plant.CreateExchangeItemReq - 54, // 70: plant.PlantService.UpdateExchangeItem:input_type -> plant.UpdateExchangeItemReq - 2, // 71: plant.PlantService.DeleteExchangeItem:input_type -> plant.IdsReq - 52, // 72: plant.PlantService.CreateExchangeOrder:input_type -> plant.CreateExchangeOrderReq - 56, // 73: plant.PlantService.GetMyExchangeOrders:input_type -> plant.ExchangeOrderListReq - 56, // 74: plant.PlantService.GetExchangeOrderList:input_type -> plant.ExchangeOrderListReq - 58, // 75: plant.PlantService.UpdateExchangeOrder:input_type -> plant.UpdateExchangeOrderReq - 3, // 76: plant.PlantService.GetLevelConfigList:input_type -> plant.PageReq - 1, // 77: plant.PlantService.GetLevelConfigDetail:input_type -> plant.IdReq - 64, // 78: plant.PlantService.CreateLevelConfig:input_type -> plant.CreateLevelConfigReq - 65, // 79: plant.PlantService.UpdateLevelConfig:input_type -> plant.UpdateLevelConfigReq - 2, // 80: plant.PlantService.DeleteLevelConfig:input_type -> plant.IdsReq - 67, // 81: plant.PlantService.GetBadgeConfigList:input_type -> plant.BadgeConfigListReq - 1, // 82: plant.PlantService.GetBadgeConfigDetail:input_type -> plant.IdReq - 1, // 83: plant.PlantService.GetBadgeConfigTree:input_type -> plant.IdReq - 69, // 84: plant.PlantService.CreateBadgeConfig:input_type -> plant.CreateBadgeConfigReq - 70, // 85: plant.PlantService.UpdateBadgeConfig:input_type -> plant.UpdateBadgeConfigReq - 2, // 86: plant.PlantService.DeleteBadgeConfig:input_type -> plant.IdsReq - 1, // 87: plant.PlantService.GetWikiClassDetail:input_type -> plant.IdReq - 77, // 88: plant.PlantService.GetAiChatHistory:input_type -> plant.AiChatHistoryReq - 60, // 89: plant.PlantService.SaveAiChatHistory:input_type -> plant.SaveAiChatHistoryReq - 2, // 90: plant.PlantService.DeleteAiChatHistory:input_type -> plant.IdsReq - 5, // 91: plant.PlantService.ClearAiChatHistory:input_type -> plant.GetProfileReq - 5, // 92: plant.PlantService.GetAiChatQuota:input_type -> plant.GetProfileReq - 4, // 93: plant.PlantService.GetUserProfile:output_type -> plant.PlantUserProfile - 0, // 94: plant.PlantService.UpdateUserProfile:output_type -> plant.CommonResp - 8, // 95: plant.PlantService.GetMyBadges:output_type -> plant.UserBadgeListResp - 10, // 96: plant.PlantService.GetMyStars:output_type -> plant.UserStarListResp - 0, // 97: plant.PlantService.CreatePlant:output_type -> plant.CommonResp - 0, // 98: plant.PlantService.UpdatePlant:output_type -> plant.CommonResp - 0, // 99: plant.PlantService.DeletePlant:output_type -> plant.CommonResp - 15, // 100: plant.PlantService.GetPlantList:output_type -> plant.PlantListResp - 16, // 101: plant.PlantService.GetPlantDetail:output_type -> plant.PlantDetailResp - 0, // 102: plant.PlantService.AddCarePlan:output_type -> plant.CommonResp - 0, // 103: plant.PlantService.DeleteCarePlan:output_type -> plant.CommonResp - 20, // 104: plant.PlantService.GetTodayTaskList:output_type -> plant.CareTaskListResp - 72, // 105: plant.PlantService.CompleteTask:output_type -> plant.TaskCompletionResult - 0, // 106: plant.PlantService.AddCareRecord:output_type -> plant.CommonResp - 0, // 107: plant.PlantService.AddGrowthRecord:output_type -> plant.CommonResp - 26, // 108: plant.PlantService.GetWikiList:output_type -> plant.WikiListResp - 27, // 109: plant.PlantService.GetWikiDetail:output_type -> plant.WikiDetailResp - 0, // 110: plant.PlantService.CreateWiki:output_type -> plant.CommonResp - 0, // 111: plant.PlantService.UpdateWiki:output_type -> plant.CommonResp - 0, // 112: plant.PlantService.DeleteWiki:output_type -> plant.CommonResp - 0, // 113: plant.PlantService.SyncWikiVector:output_type -> plant.CommonResp - 0, // 114: plant.PlantService.DeleteWikiVector:output_type -> plant.CommonResp - 0, // 115: plant.PlantService.SyncAllWikiVector:output_type -> plant.CommonResp - 31, // 116: plant.PlantService.GetWikiClassList:output_type -> plant.WikiClassListResp - 0, // 117: plant.PlantService.CreateWikiClass:output_type -> plant.CommonResp - 0, // 118: plant.PlantService.UpdateWikiClass:output_type -> plant.CommonResp - 0, // 119: plant.PlantService.DeleteWikiClass:output_type -> plant.CommonResp - 0, // 120: plant.PlantService.ToggleWikiStar:output_type -> plant.CommonResp - 36, // 121: plant.PlantService.GetMyClassifyLog:output_type -> plant.ClassifyLogListResp - 0, // 122: plant.PlantService.DeleteClassifyLog:output_type -> plant.CommonResp - 0, // 123: plant.PlantService.CreatePost:output_type -> plant.CommonResp - 0, // 124: plant.PlantService.DeletePost:output_type -> plant.CommonResp - 40, // 125: plant.PlantService.GetPostList:output_type -> plant.PostListResp - 41, // 126: plant.PlantService.GetPostDetail:output_type -> plant.PostDetailResp - 0, // 127: plant.PlantService.CommentPost:output_type -> plant.CommonResp - 0, // 128: plant.PlantService.LikePost:output_type -> plant.CommonResp - 0, // 129: plant.PlantService.StarPost:output_type -> plant.CommonResp - 0, // 130: plant.PlantService.MediaCheckCallback:output_type -> plant.CommonResp - 46, // 131: plant.PlantService.GetTopicList:output_type -> plant.TopicListResp - 45, // 132: plant.PlantService.GetTopicDetail:output_type -> plant.TopicInfo - 0, // 133: plant.PlantService.CreateTopic:output_type -> plant.CommonResp - 0, // 134: plant.PlantService.UpdateTopic:output_type -> plant.CommonResp - 0, // 135: plant.PlantService.DeleteTopic:output_type -> plant.CommonResp - 51, // 136: plant.PlantService.GetExchangeItemList:output_type -> plant.ExchangeItemListResp - 49, // 137: plant.PlantService.GetExchangeItemDetail:output_type -> plant.ExchangeItemInfo - 0, // 138: plant.PlantService.CreateExchangeItem:output_type -> plant.CommonResp - 0, // 139: plant.PlantService.UpdateExchangeItem:output_type -> plant.CommonResp - 0, // 140: plant.PlantService.DeleteExchangeItem:output_type -> plant.CommonResp - 0, // 141: plant.PlantService.CreateExchangeOrder:output_type -> plant.CommonResp - 57, // 142: plant.PlantService.GetMyExchangeOrders:output_type -> plant.ExchangeOrderListResp - 57, // 143: plant.PlantService.GetExchangeOrderList:output_type -> plant.ExchangeOrderListResp - 0, // 144: plant.PlantService.UpdateExchangeOrder:output_type -> plant.CommonResp - 63, // 145: plant.PlantService.GetLevelConfigList:output_type -> plant.LevelConfigListResp - 62, // 146: plant.PlantService.GetLevelConfigDetail:output_type -> plant.LevelConfigInfo - 0, // 147: plant.PlantService.CreateLevelConfig:output_type -> plant.CommonResp - 0, // 148: plant.PlantService.UpdateLevelConfig:output_type -> plant.CommonResp - 0, // 149: plant.PlantService.DeleteLevelConfig:output_type -> plant.CommonResp - 68, // 150: plant.PlantService.GetBadgeConfigList:output_type -> plant.BadgeConfigListResp - 66, // 151: plant.PlantService.GetBadgeConfigDetail:output_type -> plant.BadgeConfigInfo - 74, // 152: plant.PlantService.GetBadgeConfigTree:output_type -> plant.BadgeConfigTreeResp - 0, // 153: plant.PlantService.CreateBadgeConfig:output_type -> plant.CommonResp - 0, // 154: plant.PlantService.UpdateBadgeConfig:output_type -> plant.CommonResp - 0, // 155: plant.PlantService.DeleteBadgeConfig:output_type -> plant.CommonResp - 30, // 156: plant.PlantService.GetWikiClassDetail:output_type -> plant.WikiClassInfo - 78, // 157: plant.PlantService.GetAiChatHistory:output_type -> plant.AiChatHistoryResp - 0, // 158: plant.PlantService.SaveAiChatHistory:output_type -> plant.CommonResp - 0, // 159: plant.PlantService.DeleteAiChatHistory:output_type -> plant.CommonResp - 0, // 160: plant.PlantService.ClearAiChatHistory:output_type -> plant.CommonResp - 75, // 161: plant.PlantService.GetAiChatQuota:output_type -> plant.AiQuotaResp - 93, // [93:162] is the sub-list for method output_type - 24, // [24:93] is the sub-list for method input_type - 24, // [24:24] is the sub-list for extension type_name - 24, // [24:24] is the sub-list for extension extendee - 0, // [0:24] is the sub-list for field type_name + 8, // 0: plant.UserBadgeListResp.list:type_name -> plant.UserBadgeInfo + 10, // 1: plant.UserStarListResp.list:type_name -> plant.UserStarInfo + 12, // 2: plant.PlantListResp.list:type_name -> plant.PlantInfo + 12, // 3: plant.PlantDetailResp.plant:type_name -> plant.PlantInfo + 18, // 4: plant.PlantDetailResp.carePlans:type_name -> plant.CarePlanInfo + 23, // 5: plant.PlantDetailResp.growthRecords:type_name -> plant.GrowthRecordInfo + 20, // 6: plant.CareTaskListResp.list:type_name -> plant.CareTaskInfo + 25, // 7: plant.WikiListResp.list:type_name -> plant.WikiInfo + 25, // 8: plant.WikiDetailResp.wiki:type_name -> plant.WikiInfo + 31, // 9: plant.WikiClassListResp.list:type_name -> plant.WikiClassInfo + 36, // 10: plant.ClassifyLogListResp.list:type_name -> plant.ClassifyLogInfo + 38, // 11: plant.PostListResp.list:type_name -> plant.PostInfo + 38, // 12: plant.PostDetailResp.post:type_name -> plant.PostInfo + 43, // 13: plant.PostDetailResp.comments:type_name -> plant.PostCommentInfo + 46, // 14: plant.TopicListResp.list:type_name -> plant.TopicInfo + 50, // 15: plant.ExchangeItemListResp.list:type_name -> plant.ExchangeItemInfo + 56, // 16: plant.ExchangeOrderListResp.list:type_name -> plant.ExchangeOrderInfo + 62, // 17: plant.BannerListResp.list:type_name -> plant.BannerInfo + 69, // 18: plant.LevelConfigListResp.list:type_name -> plant.LevelConfigInfo + 73, // 19: plant.BadgeConfigListResp.list:type_name -> plant.BadgeConfigInfo + 69, // 20: plant.TaskCompletionResult.currentLevel:type_name -> plant.LevelConfigInfo + 73, // 21: plant.TaskCompletionResult.newBadge:type_name -> plant.BadgeConfigInfo + 73, // 22: plant.BadgeGroupInfo.badges:type_name -> plant.BadgeConfigInfo + 80, // 23: plant.BadgeConfigTreeResp.groups:type_name -> plant.BadgeGroupInfo + 83, // 24: plant.AiChatHistoryResp.list:type_name -> plant.AiChatHistoryInfo + 6, // 25: plant.PlantService.GetUserProfile:input_type -> plant.GetProfileReq + 5, // 26: plant.PlantService.FindOrCreateUserByOpenId:input_type -> plant.FindOrCreateUserByOpenIdReq + 7, // 27: plant.PlantService.UpdateUserProfile:input_type -> plant.UpdateProfileReq + 6, // 28: plant.PlantService.GetMyBadges:input_type -> plant.GetProfileReq + 6, // 29: plant.PlantService.GetMyStars:input_type -> plant.GetProfileReq + 13, // 30: plant.PlantService.CreatePlant:input_type -> plant.CreatePlantReq + 14, // 31: plant.PlantService.UpdatePlant:input_type -> plant.UpdatePlantReq + 2, // 32: plant.PlantService.DeletePlant:input_type -> plant.IdsReq + 15, // 33: plant.PlantService.GetPlantList:input_type -> plant.PlantListReq + 1, // 34: plant.PlantService.GetPlantDetail:input_type -> plant.IdReq + 19, // 35: plant.PlantService.AddCarePlan:input_type -> plant.AddCarePlanReq + 2, // 36: plant.PlantService.DeleteCarePlan:input_type -> plant.IdsReq + 6, // 37: plant.PlantService.GetTodayTaskList:input_type -> plant.GetProfileReq + 78, // 38: plant.PlantService.CompleteTask:input_type -> plant.CompleteTaskReq + 22, // 39: plant.PlantService.AddCareRecord:input_type -> plant.AddCareRecordReq + 24, // 40: plant.PlantService.AddGrowthRecord:input_type -> plant.AddGrowthRecordReq + 26, // 41: plant.PlantService.GetWikiList:input_type -> plant.WikiListReq + 1, // 42: plant.PlantService.GetWikiDetail:input_type -> plant.IdReq + 29, // 43: plant.PlantService.CreateWiki:input_type -> plant.CreateWikiReq + 30, // 44: plant.PlantService.UpdateWiki:input_type -> plant.UpdateWikiReq + 2, // 45: plant.PlantService.DeleteWiki:input_type -> plant.IdsReq + 68, // 46: plant.PlantService.SyncWikiVector:input_type -> plant.SyncWikiVectorReq + 68, // 47: plant.PlantService.DeleteWikiVector:input_type -> plant.SyncWikiVectorReq + 3, // 48: plant.PlantService.SyncAllWikiVector:input_type -> plant.PageReq + 1, // 49: plant.PlantService.GetWikiClassList:input_type -> plant.IdReq + 33, // 50: plant.PlantService.CreateWikiClass:input_type -> plant.CreateWikiClassReq + 34, // 51: plant.PlantService.UpdateWikiClass:input_type -> plant.UpdateWikiClassReq + 2, // 52: plant.PlantService.DeleteWikiClass:input_type -> plant.IdsReq + 35, // 53: plant.PlantService.ToggleWikiStar:input_type -> plant.ToggleStarReq + 6, // 54: plant.PlantService.GetMyClassifyLog:input_type -> plant.GetProfileReq + 2, // 55: plant.PlantService.DeleteClassifyLog:input_type -> plant.IdsReq + 39, // 56: plant.PlantService.CreatePost:input_type -> plant.CreatePostReq + 2, // 57: plant.PlantService.DeletePost:input_type -> plant.IdsReq + 40, // 58: plant.PlantService.GetPostList:input_type -> plant.PostListReq + 1, // 59: plant.PlantService.GetPostDetail:input_type -> plant.IdReq + 44, // 60: plant.PlantService.CommentPost:input_type -> plant.CommentPostReq + 45, // 61: plant.PlantService.LikePost:input_type -> plant.LikePostReq + 45, // 62: plant.PlantService.StarPost:input_type -> plant.LikePostReq + 60, // 63: plant.PlantService.MediaCheckCallback:input_type -> plant.MediaCheckCallbackReq + 1, // 64: plant.PlantService.GetTopicList:input_type -> plant.IdReq + 1, // 65: plant.PlantService.GetTopicDetail:input_type -> plant.IdReq + 48, // 66: plant.PlantService.CreateTopic:input_type -> plant.CreateTopicReq + 49, // 67: plant.PlantService.UpdateTopic:input_type -> plant.UpdateTopicReq + 2, // 68: plant.PlantService.DeleteTopic:input_type -> plant.IdsReq + 51, // 69: plant.PlantService.GetExchangeItemList:input_type -> plant.ExchangeItemListReq + 1, // 70: plant.PlantService.GetExchangeItemDetail:input_type -> plant.IdReq + 54, // 71: plant.PlantService.CreateExchangeItem:input_type -> plant.CreateExchangeItemReq + 55, // 72: plant.PlantService.UpdateExchangeItem:input_type -> plant.UpdateExchangeItemReq + 2, // 73: plant.PlantService.DeleteExchangeItem:input_type -> plant.IdsReq + 53, // 74: plant.PlantService.CreateExchangeOrder:input_type -> plant.CreateExchangeOrderReq + 57, // 75: plant.PlantService.GetMyExchangeOrders:input_type -> plant.ExchangeOrderListReq + 57, // 76: plant.PlantService.GetExchangeOrderList:input_type -> plant.ExchangeOrderListReq + 59, // 77: plant.PlantService.UpdateExchangeOrder:input_type -> plant.UpdateExchangeOrderReq + 3, // 78: plant.PlantService.GetLevelConfigList:input_type -> plant.PageReq + 1, // 79: plant.PlantService.GetLevelConfigDetail:input_type -> plant.IdReq + 71, // 80: plant.PlantService.CreateLevelConfig:input_type -> plant.CreateLevelConfigReq + 72, // 81: plant.PlantService.UpdateLevelConfig:input_type -> plant.UpdateLevelConfigReq + 2, // 82: plant.PlantService.DeleteLevelConfig:input_type -> plant.IdsReq + 74, // 83: plant.PlantService.GetBadgeConfigList:input_type -> plant.BadgeConfigListReq + 1, // 84: plant.PlantService.GetBadgeConfigDetail:input_type -> plant.IdReq + 1, // 85: plant.PlantService.GetBadgeConfigTree:input_type -> plant.IdReq + 76, // 86: plant.PlantService.CreateBadgeConfig:input_type -> plant.CreateBadgeConfigReq + 77, // 87: plant.PlantService.UpdateBadgeConfig:input_type -> plant.UpdateBadgeConfigReq + 2, // 88: plant.PlantService.DeleteBadgeConfig:input_type -> plant.IdsReq + 1, // 89: plant.PlantService.GetWikiClassDetail:input_type -> plant.IdReq + 84, // 90: plant.PlantService.GetAiChatHistory:input_type -> plant.AiChatHistoryReq + 67, // 91: plant.PlantService.SaveAiChatHistory:input_type -> plant.SaveAiChatHistoryReq + 2, // 92: plant.PlantService.DeleteAiChatHistory:input_type -> plant.IdsReq + 6, // 93: plant.PlantService.ClearAiChatHistory:input_type -> plant.GetProfileReq + 6, // 94: plant.PlantService.GetAiChatQuota:input_type -> plant.GetProfileReq + 61, // 95: plant.PlantService.QuickCare:input_type -> plant.QuickCareReq + 65, // 96: plant.PlantService.CreateBanner:input_type -> plant.CreateBannerReq + 66, // 97: plant.PlantService.UpdateBanner:input_type -> plant.UpdateBannerReq + 2, // 98: plant.PlantService.DeleteBanner:input_type -> plant.IdsReq + 63, // 99: plant.PlantService.GetBannerList:input_type -> plant.BannerListReq + 3, // 100: plant.PlantService.GetActiveBannerList:input_type -> plant.PageReq + 4, // 101: plant.PlantService.GetUserProfile:output_type -> plant.PlantUserProfile + 4, // 102: plant.PlantService.FindOrCreateUserByOpenId:output_type -> plant.PlantUserProfile + 0, // 103: plant.PlantService.UpdateUserProfile:output_type -> plant.CommonResp + 9, // 104: plant.PlantService.GetMyBadges:output_type -> plant.UserBadgeListResp + 11, // 105: plant.PlantService.GetMyStars:output_type -> plant.UserStarListResp + 0, // 106: plant.PlantService.CreatePlant:output_type -> plant.CommonResp + 0, // 107: plant.PlantService.UpdatePlant:output_type -> plant.CommonResp + 0, // 108: plant.PlantService.DeletePlant:output_type -> plant.CommonResp + 16, // 109: plant.PlantService.GetPlantList:output_type -> plant.PlantListResp + 17, // 110: plant.PlantService.GetPlantDetail:output_type -> plant.PlantDetailResp + 0, // 111: plant.PlantService.AddCarePlan:output_type -> plant.CommonResp + 0, // 112: plant.PlantService.DeleteCarePlan:output_type -> plant.CommonResp + 21, // 113: plant.PlantService.GetTodayTaskList:output_type -> plant.CareTaskListResp + 79, // 114: plant.PlantService.CompleteTask:output_type -> plant.TaskCompletionResult + 0, // 115: plant.PlantService.AddCareRecord:output_type -> plant.CommonResp + 0, // 116: plant.PlantService.AddGrowthRecord:output_type -> plant.CommonResp + 27, // 117: plant.PlantService.GetWikiList:output_type -> plant.WikiListResp + 28, // 118: plant.PlantService.GetWikiDetail:output_type -> plant.WikiDetailResp + 0, // 119: plant.PlantService.CreateWiki:output_type -> plant.CommonResp + 0, // 120: plant.PlantService.UpdateWiki:output_type -> plant.CommonResp + 0, // 121: plant.PlantService.DeleteWiki:output_type -> plant.CommonResp + 0, // 122: plant.PlantService.SyncWikiVector:output_type -> plant.CommonResp + 0, // 123: plant.PlantService.DeleteWikiVector:output_type -> plant.CommonResp + 0, // 124: plant.PlantService.SyncAllWikiVector:output_type -> plant.CommonResp + 32, // 125: plant.PlantService.GetWikiClassList:output_type -> plant.WikiClassListResp + 0, // 126: plant.PlantService.CreateWikiClass:output_type -> plant.CommonResp + 0, // 127: plant.PlantService.UpdateWikiClass:output_type -> plant.CommonResp + 0, // 128: plant.PlantService.DeleteWikiClass:output_type -> plant.CommonResp + 0, // 129: plant.PlantService.ToggleWikiStar:output_type -> plant.CommonResp + 37, // 130: plant.PlantService.GetMyClassifyLog:output_type -> plant.ClassifyLogListResp + 0, // 131: plant.PlantService.DeleteClassifyLog:output_type -> plant.CommonResp + 0, // 132: plant.PlantService.CreatePost:output_type -> plant.CommonResp + 0, // 133: plant.PlantService.DeletePost:output_type -> plant.CommonResp + 41, // 134: plant.PlantService.GetPostList:output_type -> plant.PostListResp + 42, // 135: plant.PlantService.GetPostDetail:output_type -> plant.PostDetailResp + 0, // 136: plant.PlantService.CommentPost:output_type -> plant.CommonResp + 0, // 137: plant.PlantService.LikePost:output_type -> plant.CommonResp + 0, // 138: plant.PlantService.StarPost:output_type -> plant.CommonResp + 0, // 139: plant.PlantService.MediaCheckCallback:output_type -> plant.CommonResp + 47, // 140: plant.PlantService.GetTopicList:output_type -> plant.TopicListResp + 46, // 141: plant.PlantService.GetTopicDetail:output_type -> plant.TopicInfo + 0, // 142: plant.PlantService.CreateTopic:output_type -> plant.CommonResp + 0, // 143: plant.PlantService.UpdateTopic:output_type -> plant.CommonResp + 0, // 144: plant.PlantService.DeleteTopic:output_type -> plant.CommonResp + 52, // 145: plant.PlantService.GetExchangeItemList:output_type -> plant.ExchangeItemListResp + 50, // 146: plant.PlantService.GetExchangeItemDetail:output_type -> plant.ExchangeItemInfo + 0, // 147: plant.PlantService.CreateExchangeItem:output_type -> plant.CommonResp + 0, // 148: plant.PlantService.UpdateExchangeItem:output_type -> plant.CommonResp + 0, // 149: plant.PlantService.DeleteExchangeItem:output_type -> plant.CommonResp + 0, // 150: plant.PlantService.CreateExchangeOrder:output_type -> plant.CommonResp + 58, // 151: plant.PlantService.GetMyExchangeOrders:output_type -> plant.ExchangeOrderListResp + 58, // 152: plant.PlantService.GetExchangeOrderList:output_type -> plant.ExchangeOrderListResp + 0, // 153: plant.PlantService.UpdateExchangeOrder:output_type -> plant.CommonResp + 70, // 154: plant.PlantService.GetLevelConfigList:output_type -> plant.LevelConfigListResp + 69, // 155: plant.PlantService.GetLevelConfigDetail:output_type -> plant.LevelConfigInfo + 0, // 156: plant.PlantService.CreateLevelConfig:output_type -> plant.CommonResp + 0, // 157: plant.PlantService.UpdateLevelConfig:output_type -> plant.CommonResp + 0, // 158: plant.PlantService.DeleteLevelConfig:output_type -> plant.CommonResp + 75, // 159: plant.PlantService.GetBadgeConfigList:output_type -> plant.BadgeConfigListResp + 73, // 160: plant.PlantService.GetBadgeConfigDetail:output_type -> plant.BadgeConfigInfo + 81, // 161: plant.PlantService.GetBadgeConfigTree:output_type -> plant.BadgeConfigTreeResp + 0, // 162: plant.PlantService.CreateBadgeConfig:output_type -> plant.CommonResp + 0, // 163: plant.PlantService.UpdateBadgeConfig:output_type -> plant.CommonResp + 0, // 164: plant.PlantService.DeleteBadgeConfig:output_type -> plant.CommonResp + 31, // 165: plant.PlantService.GetWikiClassDetail:output_type -> plant.WikiClassInfo + 85, // 166: plant.PlantService.GetAiChatHistory:output_type -> plant.AiChatHistoryResp + 0, // 167: plant.PlantService.SaveAiChatHistory:output_type -> plant.CommonResp + 0, // 168: plant.PlantService.DeleteAiChatHistory:output_type -> plant.CommonResp + 0, // 169: plant.PlantService.ClearAiChatHistory:output_type -> plant.CommonResp + 82, // 170: plant.PlantService.GetAiChatQuota:output_type -> plant.AiQuotaResp + 0, // 171: plant.PlantService.QuickCare:output_type -> plant.CommonResp + 0, // 172: plant.PlantService.CreateBanner:output_type -> plant.CommonResp + 0, // 173: plant.PlantService.UpdateBanner:output_type -> plant.CommonResp + 0, // 174: plant.PlantService.DeleteBanner:output_type -> plant.CommonResp + 64, // 175: plant.PlantService.GetBannerList:output_type -> plant.BannerListResp + 64, // 176: plant.PlantService.GetActiveBannerList:output_type -> plant.BannerListResp + 101, // [101:177] is the sub-list for method output_type + 25, // [25:101] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name } func init() { file_pb_plant_proto_init() } @@ -7371,7 +8008,7 @@ func file_pb_plant_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_pb_plant_proto_rawDesc), len(file_pb_plant_proto_rawDesc)), NumEnums: 0, - NumMessages: 79, + NumMessages: 86, NumExtensions: 0, NumServices: 1, }, diff --git a/app/plant/rpc/plant/plant_grpc.pb.go b/app/plant/rpc/plant/plant_grpc.pb.go index 3f69543..f367e26 100644 --- a/app/plant/rpc/plant/plant_grpc.pb.go +++ b/app/plant/rpc/plant/plant_grpc.pb.go @@ -19,75 +19,82 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - PlantService_GetUserProfile_FullMethodName = "/plant.PlantService/GetUserProfile" - PlantService_UpdateUserProfile_FullMethodName = "/plant.PlantService/UpdateUserProfile" - PlantService_GetMyBadges_FullMethodName = "/plant.PlantService/GetMyBadges" - PlantService_GetMyStars_FullMethodName = "/plant.PlantService/GetMyStars" - PlantService_CreatePlant_FullMethodName = "/plant.PlantService/CreatePlant" - PlantService_UpdatePlant_FullMethodName = "/plant.PlantService/UpdatePlant" - PlantService_DeletePlant_FullMethodName = "/plant.PlantService/DeletePlant" - PlantService_GetPlantList_FullMethodName = "/plant.PlantService/GetPlantList" - PlantService_GetPlantDetail_FullMethodName = "/plant.PlantService/GetPlantDetail" - PlantService_AddCarePlan_FullMethodName = "/plant.PlantService/AddCarePlan" - PlantService_DeleteCarePlan_FullMethodName = "/plant.PlantService/DeleteCarePlan" - PlantService_GetTodayTaskList_FullMethodName = "/plant.PlantService/GetTodayTaskList" - PlantService_CompleteTask_FullMethodName = "/plant.PlantService/CompleteTask" - PlantService_AddCareRecord_FullMethodName = "/plant.PlantService/AddCareRecord" - PlantService_AddGrowthRecord_FullMethodName = "/plant.PlantService/AddGrowthRecord" - PlantService_GetWikiList_FullMethodName = "/plant.PlantService/GetWikiList" - PlantService_GetWikiDetail_FullMethodName = "/plant.PlantService/GetWikiDetail" - PlantService_CreateWiki_FullMethodName = "/plant.PlantService/CreateWiki" - PlantService_UpdateWiki_FullMethodName = "/plant.PlantService/UpdateWiki" - PlantService_DeleteWiki_FullMethodName = "/plant.PlantService/DeleteWiki" - PlantService_SyncWikiVector_FullMethodName = "/plant.PlantService/SyncWikiVector" - PlantService_DeleteWikiVector_FullMethodName = "/plant.PlantService/DeleteWikiVector" - PlantService_SyncAllWikiVector_FullMethodName = "/plant.PlantService/SyncAllWikiVector" - PlantService_GetWikiClassList_FullMethodName = "/plant.PlantService/GetWikiClassList" - PlantService_CreateWikiClass_FullMethodName = "/plant.PlantService/CreateWikiClass" - PlantService_UpdateWikiClass_FullMethodName = "/plant.PlantService/UpdateWikiClass" - PlantService_DeleteWikiClass_FullMethodName = "/plant.PlantService/DeleteWikiClass" - PlantService_ToggleWikiStar_FullMethodName = "/plant.PlantService/ToggleWikiStar" - PlantService_GetMyClassifyLog_FullMethodName = "/plant.PlantService/GetMyClassifyLog" - PlantService_DeleteClassifyLog_FullMethodName = "/plant.PlantService/DeleteClassifyLog" - PlantService_CreatePost_FullMethodName = "/plant.PlantService/CreatePost" - PlantService_DeletePost_FullMethodName = "/plant.PlantService/DeletePost" - PlantService_GetPostList_FullMethodName = "/plant.PlantService/GetPostList" - PlantService_GetPostDetail_FullMethodName = "/plant.PlantService/GetPostDetail" - PlantService_CommentPost_FullMethodName = "/plant.PlantService/CommentPost" - PlantService_LikePost_FullMethodName = "/plant.PlantService/LikePost" - PlantService_StarPost_FullMethodName = "/plant.PlantService/StarPost" - PlantService_MediaCheckCallback_FullMethodName = "/plant.PlantService/MediaCheckCallback" - PlantService_GetTopicList_FullMethodName = "/plant.PlantService/GetTopicList" - PlantService_GetTopicDetail_FullMethodName = "/plant.PlantService/GetTopicDetail" - PlantService_CreateTopic_FullMethodName = "/plant.PlantService/CreateTopic" - PlantService_UpdateTopic_FullMethodName = "/plant.PlantService/UpdateTopic" - PlantService_DeleteTopic_FullMethodName = "/plant.PlantService/DeleteTopic" - PlantService_GetExchangeItemList_FullMethodName = "/plant.PlantService/GetExchangeItemList" - PlantService_GetExchangeItemDetail_FullMethodName = "/plant.PlantService/GetExchangeItemDetail" - PlantService_CreateExchangeItem_FullMethodName = "/plant.PlantService/CreateExchangeItem" - PlantService_UpdateExchangeItem_FullMethodName = "/plant.PlantService/UpdateExchangeItem" - PlantService_DeleteExchangeItem_FullMethodName = "/plant.PlantService/DeleteExchangeItem" - PlantService_CreateExchangeOrder_FullMethodName = "/plant.PlantService/CreateExchangeOrder" - PlantService_GetMyExchangeOrders_FullMethodName = "/plant.PlantService/GetMyExchangeOrders" - PlantService_GetExchangeOrderList_FullMethodName = "/plant.PlantService/GetExchangeOrderList" - PlantService_UpdateExchangeOrder_FullMethodName = "/plant.PlantService/UpdateExchangeOrder" - PlantService_GetLevelConfigList_FullMethodName = "/plant.PlantService/GetLevelConfigList" - PlantService_GetLevelConfigDetail_FullMethodName = "/plant.PlantService/GetLevelConfigDetail" - PlantService_CreateLevelConfig_FullMethodName = "/plant.PlantService/CreateLevelConfig" - PlantService_UpdateLevelConfig_FullMethodName = "/plant.PlantService/UpdateLevelConfig" - PlantService_DeleteLevelConfig_FullMethodName = "/plant.PlantService/DeleteLevelConfig" - PlantService_GetBadgeConfigList_FullMethodName = "/plant.PlantService/GetBadgeConfigList" - PlantService_GetBadgeConfigDetail_FullMethodName = "/plant.PlantService/GetBadgeConfigDetail" - PlantService_GetBadgeConfigTree_FullMethodName = "/plant.PlantService/GetBadgeConfigTree" - PlantService_CreateBadgeConfig_FullMethodName = "/plant.PlantService/CreateBadgeConfig" - PlantService_UpdateBadgeConfig_FullMethodName = "/plant.PlantService/UpdateBadgeConfig" - PlantService_DeleteBadgeConfig_FullMethodName = "/plant.PlantService/DeleteBadgeConfig" - PlantService_GetWikiClassDetail_FullMethodName = "/plant.PlantService/GetWikiClassDetail" - PlantService_GetAiChatHistory_FullMethodName = "/plant.PlantService/GetAiChatHistory" - PlantService_SaveAiChatHistory_FullMethodName = "/plant.PlantService/SaveAiChatHistory" - PlantService_DeleteAiChatHistory_FullMethodName = "/plant.PlantService/DeleteAiChatHistory" - PlantService_ClearAiChatHistory_FullMethodName = "/plant.PlantService/ClearAiChatHistory" - PlantService_GetAiChatQuota_FullMethodName = "/plant.PlantService/GetAiChatQuota" + PlantService_GetUserProfile_FullMethodName = "/plant.PlantService/GetUserProfile" + PlantService_FindOrCreateUserByOpenId_FullMethodName = "/plant.PlantService/FindOrCreateUserByOpenId" + PlantService_UpdateUserProfile_FullMethodName = "/plant.PlantService/UpdateUserProfile" + PlantService_GetMyBadges_FullMethodName = "/plant.PlantService/GetMyBadges" + PlantService_GetMyStars_FullMethodName = "/plant.PlantService/GetMyStars" + PlantService_CreatePlant_FullMethodName = "/plant.PlantService/CreatePlant" + PlantService_UpdatePlant_FullMethodName = "/plant.PlantService/UpdatePlant" + PlantService_DeletePlant_FullMethodName = "/plant.PlantService/DeletePlant" + PlantService_GetPlantList_FullMethodName = "/plant.PlantService/GetPlantList" + PlantService_GetPlantDetail_FullMethodName = "/plant.PlantService/GetPlantDetail" + PlantService_AddCarePlan_FullMethodName = "/plant.PlantService/AddCarePlan" + PlantService_DeleteCarePlan_FullMethodName = "/plant.PlantService/DeleteCarePlan" + PlantService_GetTodayTaskList_FullMethodName = "/plant.PlantService/GetTodayTaskList" + PlantService_CompleteTask_FullMethodName = "/plant.PlantService/CompleteTask" + PlantService_AddCareRecord_FullMethodName = "/plant.PlantService/AddCareRecord" + PlantService_AddGrowthRecord_FullMethodName = "/plant.PlantService/AddGrowthRecord" + PlantService_GetWikiList_FullMethodName = "/plant.PlantService/GetWikiList" + PlantService_GetWikiDetail_FullMethodName = "/plant.PlantService/GetWikiDetail" + PlantService_CreateWiki_FullMethodName = "/plant.PlantService/CreateWiki" + PlantService_UpdateWiki_FullMethodName = "/plant.PlantService/UpdateWiki" + PlantService_DeleteWiki_FullMethodName = "/plant.PlantService/DeleteWiki" + PlantService_SyncWikiVector_FullMethodName = "/plant.PlantService/SyncWikiVector" + PlantService_DeleteWikiVector_FullMethodName = "/plant.PlantService/DeleteWikiVector" + PlantService_SyncAllWikiVector_FullMethodName = "/plant.PlantService/SyncAllWikiVector" + PlantService_GetWikiClassList_FullMethodName = "/plant.PlantService/GetWikiClassList" + PlantService_CreateWikiClass_FullMethodName = "/plant.PlantService/CreateWikiClass" + PlantService_UpdateWikiClass_FullMethodName = "/plant.PlantService/UpdateWikiClass" + PlantService_DeleteWikiClass_FullMethodName = "/plant.PlantService/DeleteWikiClass" + PlantService_ToggleWikiStar_FullMethodName = "/plant.PlantService/ToggleWikiStar" + PlantService_GetMyClassifyLog_FullMethodName = "/plant.PlantService/GetMyClassifyLog" + PlantService_DeleteClassifyLog_FullMethodName = "/plant.PlantService/DeleteClassifyLog" + PlantService_CreatePost_FullMethodName = "/plant.PlantService/CreatePost" + PlantService_DeletePost_FullMethodName = "/plant.PlantService/DeletePost" + PlantService_GetPostList_FullMethodName = "/plant.PlantService/GetPostList" + PlantService_GetPostDetail_FullMethodName = "/plant.PlantService/GetPostDetail" + PlantService_CommentPost_FullMethodName = "/plant.PlantService/CommentPost" + PlantService_LikePost_FullMethodName = "/plant.PlantService/LikePost" + PlantService_StarPost_FullMethodName = "/plant.PlantService/StarPost" + PlantService_MediaCheckCallback_FullMethodName = "/plant.PlantService/MediaCheckCallback" + PlantService_GetTopicList_FullMethodName = "/plant.PlantService/GetTopicList" + PlantService_GetTopicDetail_FullMethodName = "/plant.PlantService/GetTopicDetail" + PlantService_CreateTopic_FullMethodName = "/plant.PlantService/CreateTopic" + PlantService_UpdateTopic_FullMethodName = "/plant.PlantService/UpdateTopic" + PlantService_DeleteTopic_FullMethodName = "/plant.PlantService/DeleteTopic" + PlantService_GetExchangeItemList_FullMethodName = "/plant.PlantService/GetExchangeItemList" + PlantService_GetExchangeItemDetail_FullMethodName = "/plant.PlantService/GetExchangeItemDetail" + PlantService_CreateExchangeItem_FullMethodName = "/plant.PlantService/CreateExchangeItem" + PlantService_UpdateExchangeItem_FullMethodName = "/plant.PlantService/UpdateExchangeItem" + PlantService_DeleteExchangeItem_FullMethodName = "/plant.PlantService/DeleteExchangeItem" + PlantService_CreateExchangeOrder_FullMethodName = "/plant.PlantService/CreateExchangeOrder" + PlantService_GetMyExchangeOrders_FullMethodName = "/plant.PlantService/GetMyExchangeOrders" + PlantService_GetExchangeOrderList_FullMethodName = "/plant.PlantService/GetExchangeOrderList" + PlantService_UpdateExchangeOrder_FullMethodName = "/plant.PlantService/UpdateExchangeOrder" + PlantService_GetLevelConfigList_FullMethodName = "/plant.PlantService/GetLevelConfigList" + PlantService_GetLevelConfigDetail_FullMethodName = "/plant.PlantService/GetLevelConfigDetail" + PlantService_CreateLevelConfig_FullMethodName = "/plant.PlantService/CreateLevelConfig" + PlantService_UpdateLevelConfig_FullMethodName = "/plant.PlantService/UpdateLevelConfig" + PlantService_DeleteLevelConfig_FullMethodName = "/plant.PlantService/DeleteLevelConfig" + PlantService_GetBadgeConfigList_FullMethodName = "/plant.PlantService/GetBadgeConfigList" + PlantService_GetBadgeConfigDetail_FullMethodName = "/plant.PlantService/GetBadgeConfigDetail" + PlantService_GetBadgeConfigTree_FullMethodName = "/plant.PlantService/GetBadgeConfigTree" + PlantService_CreateBadgeConfig_FullMethodName = "/plant.PlantService/CreateBadgeConfig" + PlantService_UpdateBadgeConfig_FullMethodName = "/plant.PlantService/UpdateBadgeConfig" + PlantService_DeleteBadgeConfig_FullMethodName = "/plant.PlantService/DeleteBadgeConfig" + PlantService_GetWikiClassDetail_FullMethodName = "/plant.PlantService/GetWikiClassDetail" + PlantService_GetAiChatHistory_FullMethodName = "/plant.PlantService/GetAiChatHistory" + PlantService_SaveAiChatHistory_FullMethodName = "/plant.PlantService/SaveAiChatHistory" + PlantService_DeleteAiChatHistory_FullMethodName = "/plant.PlantService/DeleteAiChatHistory" + PlantService_ClearAiChatHistory_FullMethodName = "/plant.PlantService/ClearAiChatHistory" + PlantService_GetAiChatQuota_FullMethodName = "/plant.PlantService/GetAiChatQuota" + PlantService_QuickCare_FullMethodName = "/plant.PlantService/QuickCare" + PlantService_CreateBanner_FullMethodName = "/plant.PlantService/CreateBanner" + PlantService_UpdateBanner_FullMethodName = "/plant.PlantService/UpdateBanner" + PlantService_DeleteBanner_FullMethodName = "/plant.PlantService/DeleteBanner" + PlantService_GetBannerList_FullMethodName = "/plant.PlantService/GetBannerList" + PlantService_GetActiveBannerList_FullMethodName = "/plant.PlantService/GetActiveBannerList" ) // PlantServiceClient is the client API for PlantService service. @@ -96,6 +103,7 @@ const ( type PlantServiceClient 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) @@ -173,6 +181,14 @@ type PlantServiceClient interface { 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) } type plantServiceClient struct { @@ -193,6 +209,16 @@ func (c *plantServiceClient) GetUserProfile(ctx context.Context, in *GetProfileR return out, nil } +func (c *plantServiceClient) FindOrCreateUserByOpenId(ctx context.Context, in *FindOrCreateUserByOpenIdReq, opts ...grpc.CallOption) (*PlantUserProfile, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PlantUserProfile) + err := c.cc.Invoke(ctx, PlantService_FindOrCreateUserByOpenId_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *plantServiceClient) UpdateUserProfile(ctx context.Context, in *UpdateProfileReq, opts ...grpc.CallOption) (*CommonResp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResp) @@ -873,12 +899,73 @@ func (c *plantServiceClient) GetAiChatQuota(ctx context.Context, in *GetProfileR return out, nil } +func (c *plantServiceClient) QuickCare(ctx context.Context, in *QuickCareReq, opts ...grpc.CallOption) (*CommonResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CommonResp) + err := c.cc.Invoke(ctx, PlantService_QuickCare_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *plantServiceClient) CreateBanner(ctx context.Context, in *CreateBannerReq, opts ...grpc.CallOption) (*CommonResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CommonResp) + err := c.cc.Invoke(ctx, PlantService_CreateBanner_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *plantServiceClient) UpdateBanner(ctx context.Context, in *UpdateBannerReq, opts ...grpc.CallOption) (*CommonResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CommonResp) + err := c.cc.Invoke(ctx, PlantService_UpdateBanner_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *plantServiceClient) DeleteBanner(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*CommonResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CommonResp) + err := c.cc.Invoke(ctx, PlantService_DeleteBanner_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *plantServiceClient) GetBannerList(ctx context.Context, in *BannerListReq, opts ...grpc.CallOption) (*BannerListResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(BannerListResp) + err := c.cc.Invoke(ctx, PlantService_GetBannerList_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *plantServiceClient) GetActiveBannerList(ctx context.Context, in *PageReq, opts ...grpc.CallOption) (*BannerListResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(BannerListResp) + err := c.cc.Invoke(ctx, PlantService_GetActiveBannerList_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + // PlantServiceServer is the server API for PlantService service. // All implementations must embed UnimplementedPlantServiceServer // for forward compatibility. type PlantServiceServer interface { // 用户Profile GetUserProfile(context.Context, *GetProfileReq) (*PlantUserProfile, error) + FindOrCreateUserByOpenId(context.Context, *FindOrCreateUserByOpenIdReq) (*PlantUserProfile, error) UpdateUserProfile(context.Context, *UpdateProfileReq) (*CommonResp, error) GetMyBadges(context.Context, *GetProfileReq) (*UserBadgeListResp, error) GetMyStars(context.Context, *GetProfileReq) (*UserStarListResp, error) @@ -956,6 +1043,14 @@ type PlantServiceServer interface { DeleteAiChatHistory(context.Context, *IdsReq) (*CommonResp, error) ClearAiChatHistory(context.Context, *GetProfileReq) (*CommonResp, error) GetAiChatQuota(context.Context, *GetProfileReq) (*AiQuotaResp, error) + // 快捷养护 + QuickCare(context.Context, *QuickCareReq) (*CommonResp, error) + // Banner + CreateBanner(context.Context, *CreateBannerReq) (*CommonResp, error) + UpdateBanner(context.Context, *UpdateBannerReq) (*CommonResp, error) + DeleteBanner(context.Context, *IdsReq) (*CommonResp, error) + GetBannerList(context.Context, *BannerListReq) (*BannerListResp, error) + GetActiveBannerList(context.Context, *PageReq) (*BannerListResp, error) mustEmbedUnimplementedPlantServiceServer() } @@ -969,6 +1064,9 @@ type UnimplementedPlantServiceServer struct{} func (UnimplementedPlantServiceServer) GetUserProfile(context.Context, *GetProfileReq) (*PlantUserProfile, error) { return nil, status.Error(codes.Unimplemented, "method GetUserProfile not implemented") } +func (UnimplementedPlantServiceServer) FindOrCreateUserByOpenId(context.Context, *FindOrCreateUserByOpenIdReq) (*PlantUserProfile, error) { + return nil, status.Error(codes.Unimplemented, "method FindOrCreateUserByOpenId not implemented") +} func (UnimplementedPlantServiceServer) UpdateUserProfile(context.Context, *UpdateProfileReq) (*CommonResp, error) { return nil, status.Error(codes.Unimplemented, "method UpdateUserProfile not implemented") } @@ -1173,6 +1271,24 @@ func (UnimplementedPlantServiceServer) ClearAiChatHistory(context.Context, *GetP func (UnimplementedPlantServiceServer) GetAiChatQuota(context.Context, *GetProfileReq) (*AiQuotaResp, error) { return nil, status.Error(codes.Unimplemented, "method GetAiChatQuota not implemented") } +func (UnimplementedPlantServiceServer) QuickCare(context.Context, *QuickCareReq) (*CommonResp, error) { + return nil, status.Error(codes.Unimplemented, "method QuickCare not implemented") +} +func (UnimplementedPlantServiceServer) CreateBanner(context.Context, *CreateBannerReq) (*CommonResp, error) { + return nil, status.Error(codes.Unimplemented, "method CreateBanner not implemented") +} +func (UnimplementedPlantServiceServer) UpdateBanner(context.Context, *UpdateBannerReq) (*CommonResp, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateBanner not implemented") +} +func (UnimplementedPlantServiceServer) DeleteBanner(context.Context, *IdsReq) (*CommonResp, error) { + return nil, status.Error(codes.Unimplemented, "method DeleteBanner not implemented") +} +func (UnimplementedPlantServiceServer) GetBannerList(context.Context, *BannerListReq) (*BannerListResp, error) { + return nil, status.Error(codes.Unimplemented, "method GetBannerList not implemented") +} +func (UnimplementedPlantServiceServer) GetActiveBannerList(context.Context, *PageReq) (*BannerListResp, error) { + return nil, status.Error(codes.Unimplemented, "method GetActiveBannerList not implemented") +} func (UnimplementedPlantServiceServer) mustEmbedUnimplementedPlantServiceServer() {} func (UnimplementedPlantServiceServer) testEmbeddedByValue() {} @@ -1212,6 +1328,24 @@ func _PlantService_GetUserProfile_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _PlantService_FindOrCreateUserByOpenId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindOrCreateUserByOpenIdReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlantServiceServer).FindOrCreateUserByOpenId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PlantService_FindOrCreateUserByOpenId_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlantServiceServer).FindOrCreateUserByOpenId(ctx, req.(*FindOrCreateUserByOpenIdReq)) + } + return interceptor(ctx, in, info, handler) +} + func _PlantService_UpdateUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateProfileReq) if err := dec(in); err != nil { @@ -2436,6 +2570,114 @@ func _PlantService_GetAiChatQuota_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _PlantService_QuickCare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuickCareReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlantServiceServer).QuickCare(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PlantService_QuickCare_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlantServiceServer).QuickCare(ctx, req.(*QuickCareReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlantService_CreateBanner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateBannerReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlantServiceServer).CreateBanner(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PlantService_CreateBanner_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlantServiceServer).CreateBanner(ctx, req.(*CreateBannerReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlantService_UpdateBanner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateBannerReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlantServiceServer).UpdateBanner(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PlantService_UpdateBanner_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlantServiceServer).UpdateBanner(ctx, req.(*UpdateBannerReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlantService_DeleteBanner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IdsReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlantServiceServer).DeleteBanner(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PlantService_DeleteBanner_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlantServiceServer).DeleteBanner(ctx, req.(*IdsReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlantService_GetBannerList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BannerListReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlantServiceServer).GetBannerList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PlantService_GetBannerList_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlantServiceServer).GetBannerList(ctx, req.(*BannerListReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _PlantService_GetActiveBannerList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PageReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PlantServiceServer).GetActiveBannerList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PlantService_GetActiveBannerList_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PlantServiceServer).GetActiveBannerList(ctx, req.(*PageReq)) + } + return interceptor(ctx, in, info, handler) +} + // PlantService_ServiceDesc is the grpc.ServiceDesc for PlantService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -2447,6 +2689,10 @@ var PlantService_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetUserProfile", Handler: _PlantService_GetUserProfile_Handler, }, + { + MethodName: "FindOrCreateUserByOpenId", + Handler: _PlantService_FindOrCreateUserByOpenId_Handler, + }, { MethodName: "UpdateUserProfile", Handler: _PlantService_UpdateUserProfile_Handler, @@ -2719,6 +2965,30 @@ var PlantService_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetAiChatQuota", Handler: _PlantService_GetAiChatQuota_Handler, }, + { + MethodName: "QuickCare", + Handler: _PlantService_QuickCare_Handler, + }, + { + MethodName: "CreateBanner", + Handler: _PlantService_CreateBanner_Handler, + }, + { + MethodName: "UpdateBanner", + Handler: _PlantService_UpdateBanner_Handler, + }, + { + MethodName: "DeleteBanner", + Handler: _PlantService_DeleteBanner_Handler, + }, + { + MethodName: "GetBannerList", + Handler: _PlantService_GetBannerList_Handler, + }, + { + MethodName: "GetActiveBannerList", + Handler: _PlantService_GetActiveBannerList_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/plant.proto", diff --git a/app/plant/rpc/plantservice/plantService.go b/app/plant/rpc/plantservice/plantService.go index b41b7ce..728a818 100644 --- a/app/plant/rpc/plantservice/plantService.go +++ b/app/plant/rpc/plantservice/plantService.go @@ -14,90 +14,97 @@ import ( ) 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 - 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 - 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 + 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) @@ -111,6 +118,7 @@ type ( 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) // 百科 @@ -147,6 +155,7 @@ type ( 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) @@ -167,16 +176,20 @@ type ( 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) + // 快捷养护 + 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 { @@ -185,238 +198,399 @@ 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetUserProfile(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).UpdateUserProfile(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetMyBadges(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetMyStars(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CreatePlant(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).UpdatePlant(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeletePlant(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetPlantList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetPlantDetail(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).AddCarePlan(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeleteCarePlan(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetTodayTaskList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).AddCareRecord(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).AddGrowthRecord(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetWikiList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetWikiDetail(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CreateWiki(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).UpdateWiki(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeleteWiki(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).SyncWikiVector(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeleteWikiVector(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).SyncAllWikiVector(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetWikiClassList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CreateWikiClass(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).UpdateWikiClass(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeleteWikiClass(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).ToggleWikiStar(ctx, in, opts...) + client := plant.NewPlantServiceClient(m.cli.Conn()) + return client.ToggleWikiStar(ctx, in, opts...) } -// ---- OCR ---- +// 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...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeleteClassifyLog(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CreatePost(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeletePost(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetPostList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetPostDetail(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CommentPost(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).LikePost(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).StarPost(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).MediaCheckCallback(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetTopicList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetTopicDetail(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CreateTopic(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).UpdateTopic(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeleteTopic(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetExchangeItemList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CreateExchangeItem(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).UpdateExchangeItem(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeleteExchangeItem(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CreateExchangeOrder(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetMyExchangeOrders(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetExchangeOrderList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).UpdateExchangeOrder(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetLevelConfigList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CreateLevelConfig(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).UpdateLevelConfig(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeleteLevelConfig(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetBadgeConfigList(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetBadgeConfigDetail(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).CreateBadgeConfig(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).UpdateBadgeConfig(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).DeleteBadgeConfig(ctx, in, opts...) + client := plant.NewPlantServiceClient(m.cli.Conn()) + return client.DeleteBadgeConfig(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) 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).SaveAiChatHistory(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).ClearAiChatHistory(ctx, in, opts...) + 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) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetAiChatQuota(ctx, in, opts...) + client := plant.NewPlantServiceClient(m.cli.Conn()) + return client.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) QuickCare(ctx context.Context, in *QuickCareReq, opts ...grpc.CallOption) (*CommonResp, error) { + client := plant.NewPlantServiceClient(m.cli.Conn()) + return client.QuickCare(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...) +// 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) 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) 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) 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) 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) 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) 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) GetAiChatHistory(ctx context.Context, in *plant.AiChatHistoryReq, opts ...grpc.CallOption) (*plant.AiChatHistoryResp, error) { - return plant.NewPlantServiceClient(m.cli.Conn()).GetAiChatHistory(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...) } diff --git a/app/system/model/system_model.go b/app/system/model/system_model.go index 1743787..5777bba 100644 --- a/app/system/model/system_model.go +++ b/app/system/model/system_model.go @@ -106,10 +106,6 @@ type SundynixUser struct { Password string `gorm:"size:100;column:password" json:"-"` NickName string `gorm:"size:100;column:nick_name" json:"nickName"` Phone string `gorm:"size:20;column:phone" json:"phone"` - SessionKey string `gorm:"size:80;column:session_key" json:"-"` - UnionID string `gorm:"size:80;column:union_id" json:"unionId"` - OpenID string `gorm:"size:80;column:open_id;index" json:"openId"` - SaOpenID string `gorm:"size:80;column:sa_open_id" json:"saOpenId"` AvatarID string `gorm:"size:50;column:avatar_id" json:"avatarId"` Gender int `gorm:"default:0;column:gender" json:"gender"` LastLoginIP string `gorm:"size:20;column:last_login_ip" json:"lastLoginIp"` diff --git a/app/system/rpc/internal/logic/createUserLogic.go b/app/system/rpc/internal/logic/createUserLogic.go index ea5cbf5..d2361a4 100644 --- a/app/system/rpc/internal/logic/createUserLogic.go +++ b/app/system/rpc/internal/logic/createUserLogic.go @@ -23,18 +23,6 @@ func NewCreateUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Create } func (l *CreateUserLogic) CreateUser(in *system.CreateUserReq) (*system.CreateUserResp, error) { - // 如果有 OpenId,先查是否已存在(社交登录场景:已有用户直接返回) - if in.OpenId != "" { - var existing sysModel.SundynixUser - if err := l.svcCtx.DB.Where("open_id = ?", in.OpenId).First(&existing).Error; err == nil { - // 用户已存在,更新 session_key 后直接返回 - if in.SessionKey != "" { - l.svcCtx.DB.Model(&existing).Update("session_key", in.SessionKey) - } - return &system.CreateUserResp{User: convertUserToProto(&existing)}, nil - } - } - // 如果有 Account,检查是否重复(后台创建用户场景:禁止重复) if in.Account != "" { var count int64 @@ -45,12 +33,11 @@ func (l *CreateUserLogic) CreateUser(in *system.CreateUserReq) (*system.CreateUs } u := sysModel.SundynixUser{ - Name: in.Name, - Account: in.Account, - Phone: in.Phone, - OpenID: in.OpenId, - SessionKey: in.SessionKey, - ClientID: in.ClientId, + Name: in.Name, + Account: in.Account, + Phone: in.Phone, + NickName: in.NickName, + ClientID: in.ClientId, } if in.Password != "" { u.Password = hash.BcryptHash(in.Password) diff --git a/app/system/rpc/internal/logic/getUserByOpenIdLogic.go b/app/system/rpc/internal/logic/getUserByOpenIdLogic.go deleted file mode 100644 index 094ef27..0000000 --- a/app/system/rpc/internal/logic/getUserByOpenIdLogic.go +++ /dev/null @@ -1,36 +0,0 @@ -package logic - -import ( - "context" - "errors" - - sysModel "sundynix-micro-go/app/system/model" - "sundynix-micro-go/app/system/rpc/internal/svc" - "sundynix-micro-go/app/system/rpc/system" - - "github.com/zeromicro/go-zero/core/logx" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "gorm.io/gorm" -) - -type GetUserByOpenIdLogic struct { - ctx context.Context - svcCtx *svc.ServiceContext - logx.Logger -} - -func NewGetUserByOpenIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserByOpenIdLogic { - return &GetUserByOpenIdLogic{ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx)} -} - -func (l *GetUserByOpenIdLogic) GetUserByOpenId(in *system.GetUserByOpenIdReq) (*system.GetUserByOpenIdResp, error) { - var u sysModel.SundynixUser - if err := l.svcCtx.DB.Where("open_id = ?", in.OpenId).First(&u).Error; err != nil { - if errors.Is(err, gorm.ErrRecordNotFound) { - return nil, status.Error(codes.NotFound, "用户不存在") - } - return nil, status.Error(codes.Internal, "查询失败") - } - return &system.GetUserByOpenIdResp{User: convertUserToProto(&u)}, nil -} diff --git a/app/system/rpc/internal/logic/userHelper.go b/app/system/rpc/internal/logic/userHelper.go index 3d68725..1364c1f 100644 --- a/app/system/rpc/internal/logic/userHelper.go +++ b/app/system/rpc/internal/logic/userHelper.go @@ -8,21 +8,17 @@ import ( // convertUserToProto 将 model 转为 proto UserInfo func convertUserToProto(u *sysModel.SundynixUser) *system.UserInfo { info := &system.UserInfo{ - Id: u.ID, - TenantId: u.TenantID, - ClientId: u.ClientID, - Name: u.Name, - Account: u.Account, - NickName: u.NickName, - Phone: u.Phone, - SessionKey: u.SessionKey, - UnionId: u.UnionID, - OpenId: u.OpenID, - SaOpenId: u.SaOpenID, - AvatarId: u.AvatarID, - Gender: int32(u.Gender), - CreatedAt: u.CreatedAt.Unix(), - UpdatedAt: u.UpdatedAt.Unix(), + Id: u.ID, + TenantId: u.TenantID, + ClientId: u.ClientID, + Name: u.Name, + Account: u.Account, + NickName: u.NickName, + Phone: u.Phone, + AvatarId: u.AvatarID, + Gender: int32(u.Gender), + CreatedAt: u.CreatedAt.Unix(), + UpdatedAt: u.UpdatedAt.Unix(), } if u.LastLoginAt != nil { info.LastLoginAt = u.LastLoginAt.Unix() diff --git a/app/system/rpc/internal/server/systemServiceServer.go b/app/system/rpc/internal/server/systemServiceServer.go index e01c26b..4b2d96f 100644 --- a/app/system/rpc/internal/server/systemServiceServer.go +++ b/app/system/rpc/internal/server/systemServiceServer.go @@ -29,11 +29,6 @@ func (s *SystemServiceServer) GetUserById(ctx context.Context, in *system.GetUse return l.GetUserById(in) } -func (s *SystemServiceServer) GetUserByOpenId(ctx context.Context, in *system.GetUserByOpenIdReq) (*system.GetUserByOpenIdResp, error) { - l := logic.NewGetUserByOpenIdLogic(ctx, s.svcCtx) - return l.GetUserByOpenId(in) -} - func (s *SystemServiceServer) LoginByAccount(ctx context.Context, in *system.LoginByAccountReq) (*system.LoginByAccountResp, error) { l := logic.NewLoginByAccountLogic(ctx, s.svcCtx) return l.LoginByAccount(in) diff --git a/app/system/rpc/pb/system.proto b/app/system/rpc/pb/system.proto index 5129359..ac5cf51 100644 --- a/app/system/rpc/pb/system.proto +++ b/app/system/rpc/pb/system.proto @@ -259,10 +259,6 @@ message UserInfo { string account = 5; string nickName = 6; string phone = 7; - string sessionKey = 8; - string unionId = 9; - string openId = 10; - string saOpenId = 11; string avatarId = 12; int32 gender = 13; string country = 14; @@ -287,20 +283,11 @@ message GetUserByIdResp { UserInfo user = 1; } -message GetUserByOpenIdReq { - string openId = 1; -} - -message GetUserByOpenIdResp { - UserInfo user = 1; -} - message CreateUserReq { string name = 1; string account = 2; string password = 3; - string openId = 4; - string sessionKey = 5; + string nickName = 4; string clientId = 6; string phone = 7; } @@ -392,7 +379,6 @@ message GetClientByIdResp { service SystemService { // --- 用户 --- rpc GetUserById(GetUserByIdReq) returns (GetUserByIdResp); - rpc GetUserByOpenId(GetUserByOpenIdReq) returns (GetUserByOpenIdResp); rpc LoginByAccount(LoginByAccountReq) returns (LoginByAccountResp); rpc CreateUser(CreateUserReq) returns (CreateUserResp); rpc UpdateUser(UpdateUserReq) returns (CommonResp); diff --git a/app/system/rpc/system/system.pb.go b/app/system/rpc/system/system.pb.go index 7b6c208..c7c47ce 100644 --- a/app/system/rpc/system/system.pb.go +++ b/app/system/rpc/system/system.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.36.11 // protoc v7.34.1 -// source: pb/system.proto +// source: app/system/rpc/pb/system.proto package system @@ -31,7 +31,7 @@ type CommonResp struct { func (x *CommonResp) Reset() { *x = CommonResp{} - mi := &file_pb_system_proto_msgTypes[0] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -43,7 +43,7 @@ func (x *CommonResp) String() string { func (*CommonResp) ProtoMessage() {} func (x *CommonResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[0] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -56,7 +56,7 @@ func (x *CommonResp) ProtoReflect() protoreflect.Message { // Deprecated: Use CommonResp.ProtoReflect.Descriptor instead. func (*CommonResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{0} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{0} } func (x *CommonResp) GetCode() int64 { @@ -82,7 +82,7 @@ type IdReq struct { func (x *IdReq) Reset() { *x = IdReq{} - mi := &file_pb_system_proto_msgTypes[1] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -94,7 +94,7 @@ func (x *IdReq) String() string { func (*IdReq) ProtoMessage() {} func (x *IdReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[1] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -107,7 +107,7 @@ func (x *IdReq) ProtoReflect() protoreflect.Message { // Deprecated: Use IdReq.ProtoReflect.Descriptor instead. func (*IdReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{1} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{1} } func (x *IdReq) GetId() string { @@ -126,7 +126,7 @@ type IdsReq struct { func (x *IdsReq) Reset() { *x = IdsReq{} - mi := &file_pb_system_proto_msgTypes[2] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -138,7 +138,7 @@ func (x *IdsReq) String() string { func (*IdsReq) ProtoMessage() {} func (x *IdsReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[2] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -151,7 +151,7 @@ func (x *IdsReq) ProtoReflect() protoreflect.Message { // Deprecated: Use IdsReq.ProtoReflect.Descriptor instead. func (*IdsReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{2} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{2} } func (x *IdsReq) GetIds() []string { @@ -175,7 +175,7 @@ type RoleInfo struct { func (x *RoleInfo) Reset() { *x = RoleInfo{} - mi := &file_pb_system_proto_msgTypes[3] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -187,7 +187,7 @@ func (x *RoleInfo) String() string { func (*RoleInfo) ProtoMessage() {} func (x *RoleInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[3] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -200,7 +200,7 @@ func (x *RoleInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use RoleInfo.ProtoReflect.Descriptor instead. func (*RoleInfo) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{3} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{3} } func (x *RoleInfo) GetId() string { @@ -257,7 +257,7 @@ type RoleReq struct { func (x *RoleReq) Reset() { *x = RoleReq{} - mi := &file_pb_system_proto_msgTypes[4] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -269,7 +269,7 @@ func (x *RoleReq) String() string { func (*RoleReq) ProtoMessage() {} func (x *RoleReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[4] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -282,7 +282,7 @@ func (x *RoleReq) ProtoReflect() protoreflect.Message { // Deprecated: Use RoleReq.ProtoReflect.Descriptor instead. func (*RoleReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{4} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{4} } func (x *RoleReq) GetName() string { @@ -325,7 +325,7 @@ type RoleUpdateReq struct { func (x *RoleUpdateReq) Reset() { *x = RoleUpdateReq{} - mi := &file_pb_system_proto_msgTypes[5] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -337,7 +337,7 @@ func (x *RoleUpdateReq) String() string { func (*RoleUpdateReq) ProtoMessage() {} func (x *RoleUpdateReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[5] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -350,7 +350,7 @@ func (x *RoleUpdateReq) ProtoReflect() protoreflect.Message { // Deprecated: Use RoleUpdateReq.ProtoReflect.Descriptor instead. func (*RoleUpdateReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{5} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{5} } func (x *RoleUpdateReq) GetId() string { @@ -392,7 +392,7 @@ type AssignRoleMenusReq struct { func (x *AssignRoleMenusReq) Reset() { *x = AssignRoleMenusReq{} - mi := &file_pb_system_proto_msgTypes[6] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -404,7 +404,7 @@ func (x *AssignRoleMenusReq) String() string { func (*AssignRoleMenusReq) ProtoMessage() {} func (x *AssignRoleMenusReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[6] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -417,7 +417,7 @@ func (x *AssignRoleMenusReq) ProtoReflect() protoreflect.Message { // Deprecated: Use AssignRoleMenusReq.ProtoReflect.Descriptor instead. func (*AssignRoleMenusReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{6} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{6} } func (x *AssignRoleMenusReq) GetRoleId() string { @@ -444,7 +444,7 @@ type AssignUserRolesReq struct { func (x *AssignUserRolesReq) Reset() { *x = AssignUserRolesReq{} - mi := &file_pb_system_proto_msgTypes[7] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -456,7 +456,7 @@ func (x *AssignUserRolesReq) String() string { func (*AssignUserRolesReq) ProtoMessage() {} func (x *AssignUserRolesReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[7] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -469,7 +469,7 @@ func (x *AssignUserRolesReq) ProtoReflect() protoreflect.Message { // Deprecated: Use AssignUserRolesReq.ProtoReflect.Descriptor instead. func (*AssignUserRolesReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{7} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{7} } func (x *AssignUserRolesReq) GetUserId() string { @@ -497,7 +497,7 @@ type RoleListReq struct { func (x *RoleListReq) Reset() { *x = RoleListReq{} - mi := &file_pb_system_proto_msgTypes[8] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -509,7 +509,7 @@ func (x *RoleListReq) String() string { func (*RoleListReq) ProtoMessage() {} func (x *RoleListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[8] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -522,7 +522,7 @@ func (x *RoleListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use RoleListReq.ProtoReflect.Descriptor instead. func (*RoleListReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{8} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{8} } func (x *RoleListReq) GetCurrent() int32 { @@ -556,7 +556,7 @@ type RoleListResp struct { func (x *RoleListResp) Reset() { *x = RoleListResp{} - mi := &file_pb_system_proto_msgTypes[9] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -568,7 +568,7 @@ func (x *RoleListResp) String() string { func (*RoleListResp) ProtoMessage() {} func (x *RoleListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[9] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -581,7 +581,7 @@ func (x *RoleListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use RoleListResp.ProtoReflect.Descriptor instead. func (*RoleListResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{9} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{9} } func (x *RoleListResp) GetList() []*RoleInfo { @@ -607,7 +607,7 @@ type GetRoleDetailReq struct { func (x *GetRoleDetailReq) Reset() { *x = GetRoleDetailReq{} - mi := &file_pb_system_proto_msgTypes[10] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -619,7 +619,7 @@ func (x *GetRoleDetailReq) String() string { func (*GetRoleDetailReq) ProtoMessage() {} func (x *GetRoleDetailReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[10] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -632,7 +632,7 @@ func (x *GetRoleDetailReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRoleDetailReq.ProtoReflect.Descriptor instead. func (*GetRoleDetailReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{10} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{10} } func (x *GetRoleDetailReq) GetId() string { @@ -655,7 +655,7 @@ type RoleDetailResp struct { func (x *RoleDetailResp) Reset() { *x = RoleDetailResp{} - mi := &file_pb_system_proto_msgTypes[11] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -667,7 +667,7 @@ func (x *RoleDetailResp) String() string { func (*RoleDetailResp) ProtoMessage() {} func (x *RoleDetailResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[11] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -680,7 +680,7 @@ func (x *RoleDetailResp) ProtoReflect() protoreflect.Message { // Deprecated: Use RoleDetailResp.ProtoReflect.Descriptor instead. func (*RoleDetailResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{11} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{11} } func (x *RoleDetailResp) GetId() string { @@ -738,7 +738,7 @@ type MenuInfo struct { func (x *MenuInfo) Reset() { *x = MenuInfo{} - mi := &file_pb_system_proto_msgTypes[12] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -750,7 +750,7 @@ func (x *MenuInfo) String() string { func (*MenuInfo) ProtoMessage() {} func (x *MenuInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[12] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -763,7 +763,7 @@ func (x *MenuInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use MenuInfo.ProtoReflect.Descriptor instead. func (*MenuInfo) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{12} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{12} } func (x *MenuInfo) GetId() string { @@ -868,7 +868,7 @@ type MenuReq struct { func (x *MenuReq) Reset() { *x = MenuReq{} - mi := &file_pb_system_proto_msgTypes[13] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -880,7 +880,7 @@ func (x *MenuReq) String() string { func (*MenuReq) ProtoMessage() {} func (x *MenuReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[13] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -893,7 +893,7 @@ func (x *MenuReq) ProtoReflect() protoreflect.Message { // Deprecated: Use MenuReq.ProtoReflect.Descriptor instead. func (*MenuReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{13} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{13} } func (x *MenuReq) GetParentId() string { @@ -985,7 +985,7 @@ type MenuUpdateReq struct { func (x *MenuUpdateReq) Reset() { *x = MenuUpdateReq{} - mi := &file_pb_system_proto_msgTypes[14] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -997,7 +997,7 @@ func (x *MenuUpdateReq) String() string { func (*MenuUpdateReq) ProtoMessage() {} func (x *MenuUpdateReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[14] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1010,7 +1010,7 @@ func (x *MenuUpdateReq) ProtoReflect() protoreflect.Message { // Deprecated: Use MenuUpdateReq.ProtoReflect.Descriptor instead. func (*MenuUpdateReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{14} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{14} } func (x *MenuUpdateReq) GetId() string { @@ -1099,7 +1099,7 @@ type MenuListResp struct { func (x *MenuListResp) Reset() { *x = MenuListResp{} - mi := &file_pb_system_proto_msgTypes[15] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1111,7 +1111,7 @@ func (x *MenuListResp) String() string { func (*MenuListResp) ProtoMessage() {} func (x *MenuListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[15] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1124,7 +1124,7 @@ func (x *MenuListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use MenuListResp.ProtoReflect.Descriptor instead. func (*MenuListResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{15} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{15} } func (x *MenuListResp) GetMenus() []*MenuInfo { @@ -1148,7 +1148,7 @@ type ClientInfo struct { func (x *ClientInfo) Reset() { *x = ClientInfo{} - mi := &file_pb_system_proto_msgTypes[16] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1160,7 +1160,7 @@ func (x *ClientInfo) String() string { func (*ClientInfo) ProtoMessage() {} func (x *ClientInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[16] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1173,7 +1173,7 @@ func (x *ClientInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ClientInfo.ProtoReflect.Descriptor instead. func (*ClientInfo) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{16} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{16} } func (x *ClientInfo) GetId() string { @@ -1231,7 +1231,7 @@ type ClientReq struct { func (x *ClientReq) Reset() { *x = ClientReq{} - mi := &file_pb_system_proto_msgTypes[17] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1243,7 +1243,7 @@ func (x *ClientReq) String() string { func (*ClientReq) ProtoMessage() {} func (x *ClientReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[17] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1256,7 +1256,7 @@ func (x *ClientReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ClientReq.ProtoReflect.Descriptor instead. func (*ClientReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{17} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{17} } func (x *ClientReq) GetClientId() string { @@ -1308,7 +1308,7 @@ type ClientUpdateReq struct { func (x *ClientUpdateReq) Reset() { *x = ClientUpdateReq{} - mi := &file_pb_system_proto_msgTypes[18] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1320,7 +1320,7 @@ func (x *ClientUpdateReq) String() string { func (*ClientUpdateReq) ProtoMessage() {} func (x *ClientUpdateReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[18] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1333,7 +1333,7 @@ func (x *ClientUpdateReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ClientUpdateReq.ProtoReflect.Descriptor instead. func (*ClientUpdateReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{18} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{18} } func (x *ClientUpdateReq) GetId() string { @@ -1389,7 +1389,7 @@ type ClientListReq struct { func (x *ClientListReq) Reset() { *x = ClientListReq{} - mi := &file_pb_system_proto_msgTypes[19] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1401,7 +1401,7 @@ func (x *ClientListReq) String() string { func (*ClientListReq) ProtoMessage() {} func (x *ClientListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[19] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1414,7 +1414,7 @@ func (x *ClientListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ClientListReq.ProtoReflect.Descriptor instead. func (*ClientListReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{19} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{19} } func (x *ClientListReq) GetCurrent() int32 { @@ -1448,7 +1448,7 @@ type ClientListResp struct { func (x *ClientListResp) Reset() { *x = ClientListResp{} - mi := &file_pb_system_proto_msgTypes[20] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1460,7 +1460,7 @@ func (x *ClientListResp) String() string { func (*ClientListResp) ProtoMessage() {} func (x *ClientListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[20] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1473,7 +1473,7 @@ func (x *ClientListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use ClientListResp.ProtoReflect.Descriptor instead. func (*ClientListResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{20} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{20} } func (x *ClientListResp) GetList() []*ClientInfo { @@ -1504,7 +1504,7 @@ type DictInfo struct { func (x *DictInfo) Reset() { *x = DictInfo{} - mi := &file_pb_system_proto_msgTypes[21] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1516,7 +1516,7 @@ func (x *DictInfo) String() string { func (*DictInfo) ProtoMessage() {} func (x *DictInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[21] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1529,7 +1529,7 @@ func (x *DictInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use DictInfo.ProtoReflect.Descriptor instead. func (*DictInfo) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{21} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{21} } func (x *DictInfo) GetId() string { @@ -1587,7 +1587,7 @@ type DictReq struct { func (x *DictReq) Reset() { *x = DictReq{} - mi := &file_pb_system_proto_msgTypes[22] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1599,7 +1599,7 @@ func (x *DictReq) String() string { func (*DictReq) ProtoMessage() {} func (x *DictReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[22] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1612,7 +1612,7 @@ func (x *DictReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DictReq.ProtoReflect.Descriptor instead. func (*DictReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{22} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{22} } func (x *DictReq) GetType() string { @@ -1664,7 +1664,7 @@ type DictUpdateReq struct { func (x *DictUpdateReq) Reset() { *x = DictUpdateReq{} - mi := &file_pb_system_proto_msgTypes[23] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1676,7 +1676,7 @@ func (x *DictUpdateReq) String() string { func (*DictUpdateReq) ProtoMessage() {} func (x *DictUpdateReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[23] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1689,7 +1689,7 @@ func (x *DictUpdateReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DictUpdateReq.ProtoReflect.Descriptor instead. func (*DictUpdateReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{23} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{23} } func (x *DictUpdateReq) GetId() string { @@ -1745,7 +1745,7 @@ type DictListReq struct { func (x *DictListReq) Reset() { *x = DictListReq{} - mi := &file_pb_system_proto_msgTypes[24] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1757,7 +1757,7 @@ func (x *DictListReq) String() string { func (*DictListReq) ProtoMessage() {} func (x *DictListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[24] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1770,7 +1770,7 @@ func (x *DictListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DictListReq.ProtoReflect.Descriptor instead. func (*DictListReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{24} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{24} } func (x *DictListReq) GetCurrent() int32 { @@ -1804,7 +1804,7 @@ type DictListResp struct { func (x *DictListResp) Reset() { *x = DictListResp{} - mi := &file_pb_system_proto_msgTypes[25] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1816,7 +1816,7 @@ func (x *DictListResp) String() string { func (*DictListResp) ProtoMessage() {} func (x *DictListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[25] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1829,7 +1829,7 @@ func (x *DictListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use DictListResp.ProtoReflect.Descriptor instead. func (*DictListResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{25} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{25} } func (x *DictListResp) GetList() []*DictInfo { @@ -1867,7 +1867,7 @@ type OperationRecordInfo struct { func (x *OperationRecordInfo) Reset() { *x = OperationRecordInfo{} - mi := &file_pb_system_proto_msgTypes[26] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1879,7 +1879,7 @@ func (x *OperationRecordInfo) String() string { func (*OperationRecordInfo) ProtoMessage() {} func (x *OperationRecordInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[26] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1892,7 +1892,7 @@ func (x *OperationRecordInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use OperationRecordInfo.ProtoReflect.Descriptor instead. func (*OperationRecordInfo) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{26} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{26} } func (x *OperationRecordInfo) GetId() string { @@ -2005,7 +2005,7 @@ type CreateOperationRecordReq struct { func (x *CreateOperationRecordReq) Reset() { *x = CreateOperationRecordReq{} - mi := &file_pb_system_proto_msgTypes[27] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2017,7 +2017,7 @@ func (x *CreateOperationRecordReq) String() string { func (*CreateOperationRecordReq) ProtoMessage() {} func (x *CreateOperationRecordReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[27] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2030,7 +2030,7 @@ func (x *CreateOperationRecordReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateOperationRecordReq.ProtoReflect.Descriptor instead. func (*CreateOperationRecordReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{27} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{27} } func (x *CreateOperationRecordReq) GetClientId() string { @@ -2123,7 +2123,7 @@ type OperationRecordListReq struct { func (x *OperationRecordListReq) Reset() { *x = OperationRecordListReq{} - mi := &file_pb_system_proto_msgTypes[28] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2135,7 +2135,7 @@ func (x *OperationRecordListReq) String() string { func (*OperationRecordListReq) ProtoMessage() {} func (x *OperationRecordListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[28] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2148,7 +2148,7 @@ func (x *OperationRecordListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use OperationRecordListReq.ProtoReflect.Descriptor instead. func (*OperationRecordListReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{28} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{28} } func (x *OperationRecordListReq) GetCurrent() int32 { @@ -2196,7 +2196,7 @@ type OperationRecordListResp struct { func (x *OperationRecordListResp) Reset() { *x = OperationRecordListResp{} - mi := &file_pb_system_proto_msgTypes[29] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2208,7 +2208,7 @@ func (x *OperationRecordListResp) String() string { func (*OperationRecordListResp) ProtoMessage() {} func (x *OperationRecordListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[29] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[29] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2221,7 +2221,7 @@ func (x *OperationRecordListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use OperationRecordListResp.ProtoReflect.Descriptor instead. func (*OperationRecordListResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{29} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{29} } func (x *OperationRecordListResp) GetList() []*OperationRecordInfo { @@ -2247,10 +2247,6 @@ type UserInfo struct { Account string `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"` NickName string `protobuf:"bytes,6,opt,name=nickName,proto3" json:"nickName,omitempty"` Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty"` - SessionKey string `protobuf:"bytes,8,opt,name=sessionKey,proto3" json:"sessionKey,omitempty"` - UnionId string `protobuf:"bytes,9,opt,name=unionId,proto3" json:"unionId,omitempty"` - OpenId string `protobuf:"bytes,10,opt,name=openId,proto3" json:"openId,omitempty"` - SaOpenId string `protobuf:"bytes,11,opt,name=saOpenId,proto3" json:"saOpenId,omitempty"` AvatarId string `protobuf:"bytes,12,opt,name=avatarId,proto3" json:"avatarId,omitempty"` Gender int32 `protobuf:"varint,13,opt,name=gender,proto3" json:"gender,omitempty"` Country string `protobuf:"bytes,14,opt,name=country,proto3" json:"country,omitempty"` @@ -2271,7 +2267,7 @@ type UserInfo struct { func (x *UserInfo) Reset() { *x = UserInfo{} - mi := &file_pb_system_proto_msgTypes[30] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2283,7 +2279,7 @@ func (x *UserInfo) String() string { func (*UserInfo) ProtoMessage() {} func (x *UserInfo) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[30] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[30] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2296,7 +2292,7 @@ func (x *UserInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use UserInfo.ProtoReflect.Descriptor instead. func (*UserInfo) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{30} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{30} } func (x *UserInfo) GetId() string { @@ -2348,34 +2344,6 @@ func (x *UserInfo) GetPhone() string { return "" } -func (x *UserInfo) GetSessionKey() string { - if x != nil { - return x.SessionKey - } - return "" -} - -func (x *UserInfo) GetUnionId() string { - if x != nil { - return x.UnionId - } - return "" -} - -func (x *UserInfo) GetOpenId() string { - if x != nil { - return x.OpenId - } - return "" -} - -func (x *UserInfo) GetSaOpenId() string { - if x != nil { - return x.SaOpenId - } - return "" -} - func (x *UserInfo) GetAvatarId() string { if x != nil { return x.AvatarId @@ -2483,7 +2451,7 @@ type GetUserByIdReq struct { func (x *GetUserByIdReq) Reset() { *x = GetUserByIdReq{} - mi := &file_pb_system_proto_msgTypes[31] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2495,7 +2463,7 @@ func (x *GetUserByIdReq) String() string { func (*GetUserByIdReq) ProtoMessage() {} func (x *GetUserByIdReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[31] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[31] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2508,7 +2476,7 @@ func (x *GetUserByIdReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUserByIdReq.ProtoReflect.Descriptor instead. func (*GetUserByIdReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{31} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{31} } func (x *GetUserByIdReq) GetId() string { @@ -2527,7 +2495,7 @@ type GetUserByIdResp struct { func (x *GetUserByIdResp) Reset() { *x = GetUserByIdResp{} - mi := &file_pb_system_proto_msgTypes[32] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2539,7 +2507,7 @@ func (x *GetUserByIdResp) String() string { func (*GetUserByIdResp) ProtoMessage() {} func (x *GetUserByIdResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[32] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[32] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2552,7 +2520,7 @@ func (x *GetUserByIdResp) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUserByIdResp.ProtoReflect.Descriptor instead. func (*GetUserByIdResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{32} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{32} } func (x *GetUserByIdResp) GetUser() *UserInfo { @@ -2562,101 +2530,12 @@ func (x *GetUserByIdResp) GetUser() *UserInfo { return nil } -type GetUserByOpenIdReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - OpenId string `protobuf:"bytes,1,opt,name=openId,proto3" json:"openId,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUserByOpenIdReq) Reset() { - *x = GetUserByOpenIdReq{} - mi := &file_pb_system_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetUserByOpenIdReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserByOpenIdReq) ProtoMessage() {} - -func (x *GetUserByOpenIdReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[33] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUserByOpenIdReq.ProtoReflect.Descriptor instead. -func (*GetUserByOpenIdReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{33} -} - -func (x *GetUserByOpenIdReq) GetOpenId() string { - if x != nil { - return x.OpenId - } - return "" -} - -type GetUserByOpenIdResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - User *UserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetUserByOpenIdResp) Reset() { - *x = GetUserByOpenIdResp{} - mi := &file_pb_system_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetUserByOpenIdResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserByOpenIdResp) ProtoMessage() {} - -func (x *GetUserByOpenIdResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[34] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUserByOpenIdResp.ProtoReflect.Descriptor instead. -func (*GetUserByOpenIdResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{34} -} - -func (x *GetUserByOpenIdResp) GetUser() *UserInfo { - if x != nil { - return x.User - } - return nil -} - type CreateUserReq struct { state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` - OpenId string `protobuf:"bytes,4,opt,name=openId,proto3" json:"openId,omitempty"` - SessionKey string `protobuf:"bytes,5,opt,name=sessionKey,proto3" json:"sessionKey,omitempty"` + NickName string `protobuf:"bytes,4,opt,name=nickName,proto3" json:"nickName,omitempty"` ClientId string `protobuf:"bytes,6,opt,name=clientId,proto3" json:"clientId,omitempty"` Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty"` unknownFields protoimpl.UnknownFields @@ -2665,7 +2544,7 @@ type CreateUserReq struct { func (x *CreateUserReq) Reset() { *x = CreateUserReq{} - mi := &file_pb_system_proto_msgTypes[35] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2677,7 +2556,7 @@ func (x *CreateUserReq) String() string { func (*CreateUserReq) ProtoMessage() {} func (x *CreateUserReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[35] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2690,7 +2569,7 @@ func (x *CreateUserReq) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead. func (*CreateUserReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{35} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{33} } func (x *CreateUserReq) GetName() string { @@ -2714,16 +2593,9 @@ func (x *CreateUserReq) GetPassword() string { return "" } -func (x *CreateUserReq) GetOpenId() string { +func (x *CreateUserReq) GetNickName() string { if x != nil { - return x.OpenId - } - return "" -} - -func (x *CreateUserReq) GetSessionKey() string { - if x != nil { - return x.SessionKey + return x.NickName } return "" } @@ -2751,7 +2623,7 @@ type CreateUserResp struct { func (x *CreateUserResp) Reset() { *x = CreateUserResp{} - mi := &file_pb_system_proto_msgTypes[36] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2763,7 +2635,7 @@ func (x *CreateUserResp) String() string { func (*CreateUserResp) ProtoMessage() {} func (x *CreateUserResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[36] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2776,7 +2648,7 @@ func (x *CreateUserResp) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateUserResp.ProtoReflect.Descriptor instead. func (*CreateUserResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{36} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{34} } func (x *CreateUserResp) GetUser() *UserInfo { @@ -2800,7 +2672,7 @@ type UpdateUserReq struct { func (x *UpdateUserReq) Reset() { *x = UpdateUserReq{} - mi := &file_pb_system_proto_msgTypes[37] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2812,7 +2684,7 @@ func (x *UpdateUserReq) String() string { func (*UpdateUserReq) ProtoMessage() {} func (x *UpdateUserReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[37] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2825,7 +2697,7 @@ func (x *UpdateUserReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead. func (*UpdateUserReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{37} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{35} } func (x *UpdateUserReq) GetId() string { @@ -2880,7 +2752,7 @@ type LoginByAccountReq struct { func (x *LoginByAccountReq) Reset() { *x = LoginByAccountReq{} - mi := &file_pb_system_proto_msgTypes[38] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2892,7 +2764,7 @@ func (x *LoginByAccountReq) String() string { func (*LoginByAccountReq) ProtoMessage() {} func (x *LoginByAccountReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[38] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2905,7 +2777,7 @@ func (x *LoginByAccountReq) ProtoReflect() protoreflect.Message { // Deprecated: Use LoginByAccountReq.ProtoReflect.Descriptor instead. func (*LoginByAccountReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{38} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{36} } func (x *LoginByAccountReq) GetAccount() string { @@ -2931,7 +2803,7 @@ type LoginByAccountResp struct { func (x *LoginByAccountResp) Reset() { *x = LoginByAccountResp{} - mi := &file_pb_system_proto_msgTypes[39] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2943,7 +2815,7 @@ func (x *LoginByAccountResp) String() string { func (*LoginByAccountResp) ProtoMessage() {} func (x *LoginByAccountResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[39] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2956,7 +2828,7 @@ func (x *LoginByAccountResp) ProtoReflect() protoreflect.Message { // Deprecated: Use LoginByAccountResp.ProtoReflect.Descriptor instead. func (*LoginByAccountResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{39} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{37} } func (x *LoginByAccountResp) GetUser() *UserInfo { @@ -2978,7 +2850,7 @@ type GetUserListReq struct { func (x *GetUserListReq) Reset() { *x = GetUserListReq{} - mi := &file_pb_system_proto_msgTypes[40] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2990,7 +2862,7 @@ func (x *GetUserListReq) String() string { func (*GetUserListReq) ProtoMessage() {} func (x *GetUserListReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[40] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3003,7 +2875,7 @@ func (x *GetUserListReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUserListReq.ProtoReflect.Descriptor instead. func (*GetUserListReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{40} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{38} } func (x *GetUserListReq) GetCurrent() int32 { @@ -3044,7 +2916,7 @@ type GetUserListResp struct { func (x *GetUserListResp) Reset() { *x = GetUserListResp{} - mi := &file_pb_system_proto_msgTypes[41] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3056,7 +2928,7 @@ func (x *GetUserListResp) String() string { func (*GetUserListResp) ProtoMessage() {} func (x *GetUserListResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[41] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3069,7 +2941,7 @@ func (x *GetUserListResp) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUserListResp.ProtoReflect.Descriptor instead. func (*GetUserListResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{41} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{39} } func (x *GetUserListResp) GetList() []*UserInfo { @@ -3095,7 +2967,7 @@ type GetUserDetailReq struct { func (x *GetUserDetailReq) Reset() { *x = GetUserDetailReq{} - mi := &file_pb_system_proto_msgTypes[42] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3107,7 +2979,7 @@ func (x *GetUserDetailReq) String() string { func (*GetUserDetailReq) ProtoMessage() {} func (x *GetUserDetailReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[42] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3120,7 +2992,7 @@ func (x *GetUserDetailReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUserDetailReq.ProtoReflect.Descriptor instead. func (*GetUserDetailReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{42} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{40} } func (x *GetUserDetailReq) GetId() string { @@ -3144,7 +3016,7 @@ type UserDetailResp struct { func (x *UserDetailResp) Reset() { *x = UserDetailResp{} - mi := &file_pb_system_proto_msgTypes[43] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3156,7 +3028,7 @@ func (x *UserDetailResp) String() string { func (*UserDetailResp) ProtoMessage() {} func (x *UserDetailResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[43] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3169,7 +3041,7 @@ func (x *UserDetailResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserDetailResp.ProtoReflect.Descriptor instead. func (*UserDetailResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{43} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{41} } func (x *UserDetailResp) GetId() string { @@ -3223,7 +3095,7 @@ type DeleteUserReq struct { func (x *DeleteUserReq) Reset() { *x = DeleteUserReq{} - mi := &file_pb_system_proto_msgTypes[44] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3235,7 +3107,7 @@ func (x *DeleteUserReq) String() string { func (*DeleteUserReq) ProtoMessage() {} func (x *DeleteUserReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[44] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[42] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3248,7 +3120,7 @@ func (x *DeleteUserReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteUserReq.ProtoReflect.Descriptor instead. func (*DeleteUserReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{44} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{42} } func (x *DeleteUserReq) GetIds() []string { @@ -3268,7 +3140,7 @@ type ResetPasswordReq struct { func (x *ResetPasswordReq) Reset() { *x = ResetPasswordReq{} - mi := &file_pb_system_proto_msgTypes[45] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3280,7 +3152,7 @@ func (x *ResetPasswordReq) String() string { func (*ResetPasswordReq) ProtoMessage() {} func (x *ResetPasswordReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[45] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[43] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3293,7 +3165,7 @@ func (x *ResetPasswordReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ResetPasswordReq.ProtoReflect.Descriptor instead. func (*ResetPasswordReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{45} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{43} } func (x *ResetPasswordReq) GetId() string { @@ -3319,7 +3191,7 @@ type GetRolesByUserIdReq struct { func (x *GetRolesByUserIdReq) Reset() { *x = GetRolesByUserIdReq{} - mi := &file_pb_system_proto_msgTypes[46] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3331,7 +3203,7 @@ func (x *GetRolesByUserIdReq) String() string { func (*GetRolesByUserIdReq) ProtoMessage() {} func (x *GetRolesByUserIdReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[46] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[44] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3344,7 +3216,7 @@ func (x *GetRolesByUserIdReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRolesByUserIdReq.ProtoReflect.Descriptor instead. func (*GetRolesByUserIdReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{46} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{44} } func (x *GetRolesByUserIdReq) GetUserId() string { @@ -3363,7 +3235,7 @@ type GetRolesByUserIdResp struct { func (x *GetRolesByUserIdResp) Reset() { *x = GetRolesByUserIdResp{} - mi := &file_pb_system_proto_msgTypes[47] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3375,7 +3247,7 @@ func (x *GetRolesByUserIdResp) String() string { func (*GetRolesByUserIdResp) ProtoMessage() {} func (x *GetRolesByUserIdResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[47] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3388,7 +3260,7 @@ func (x *GetRolesByUserIdResp) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRolesByUserIdResp.ProtoReflect.Descriptor instead. func (*GetRolesByUserIdResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{47} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{45} } func (x *GetRolesByUserIdResp) GetRoles() []*RoleInfo { @@ -3407,7 +3279,7 @@ type GetMenusByRoleIdReq struct { func (x *GetMenusByRoleIdReq) Reset() { *x = GetMenusByRoleIdReq{} - mi := &file_pb_system_proto_msgTypes[48] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3419,7 +3291,7 @@ func (x *GetMenusByRoleIdReq) String() string { func (*GetMenusByRoleIdReq) ProtoMessage() {} func (x *GetMenusByRoleIdReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[48] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3432,7 +3304,7 @@ func (x *GetMenusByRoleIdReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMenusByRoleIdReq.ProtoReflect.Descriptor instead. func (*GetMenusByRoleIdReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{48} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{46} } func (x *GetMenusByRoleIdReq) GetRoleId() string { @@ -3451,7 +3323,7 @@ type GetMenusByRoleIdResp struct { func (x *GetMenusByRoleIdResp) Reset() { *x = GetMenusByRoleIdResp{} - mi := &file_pb_system_proto_msgTypes[49] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3463,7 +3335,7 @@ func (x *GetMenusByRoleIdResp) String() string { func (*GetMenusByRoleIdResp) ProtoMessage() {} func (x *GetMenusByRoleIdResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[49] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[47] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3476,7 +3348,7 @@ func (x *GetMenusByRoleIdResp) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMenusByRoleIdResp.ProtoReflect.Descriptor instead. func (*GetMenusByRoleIdResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{49} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{47} } func (x *GetMenusByRoleIdResp) GetMenus() []*MenuInfo { @@ -3495,7 +3367,7 @@ type GetClientByIdReq struct { func (x *GetClientByIdReq) Reset() { *x = GetClientByIdReq{} - mi := &file_pb_system_proto_msgTypes[50] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3507,7 +3379,7 @@ func (x *GetClientByIdReq) String() string { func (*GetClientByIdReq) ProtoMessage() {} func (x *GetClientByIdReq) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[50] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[48] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3520,7 +3392,7 @@ func (x *GetClientByIdReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetClientByIdReq.ProtoReflect.Descriptor instead. func (*GetClientByIdReq) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{50} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{48} } func (x *GetClientByIdReq) GetClientId() string { @@ -3539,7 +3411,7 @@ type GetClientByIdResp struct { func (x *GetClientByIdResp) Reset() { *x = GetClientByIdResp{} - mi := &file_pb_system_proto_msgTypes[51] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3551,7 +3423,7 @@ func (x *GetClientByIdResp) String() string { func (*GetClientByIdResp) ProtoMessage() {} func (x *GetClientByIdResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_system_proto_msgTypes[51] + mi := &file_app_system_rpc_pb_system_proto_msgTypes[49] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3564,7 +3436,7 @@ func (x *GetClientByIdResp) ProtoReflect() protoreflect.Message { // Deprecated: Use GetClientByIdResp.ProtoReflect.Descriptor instead. func (*GetClientByIdResp) Descriptor() ([]byte, []int) { - return file_pb_system_proto_rawDescGZIP(), []int{51} + return file_app_system_rpc_pb_system_proto_rawDescGZIP(), []int{49} } func (x *GetClientByIdResp) GetClient() *ClientInfo { @@ -3574,11 +3446,11 @@ func (x *GetClientByIdResp) GetClient() *ClientInfo { return nil } -var File_pb_system_proto protoreflect.FileDescriptor +var File_app_system_rpc_pb_system_proto protoreflect.FileDescriptor -const file_pb_system_proto_rawDesc = "" + +const file_app_system_rpc_pb_system_proto_rawDesc = "" + "\n" + - "\x0fpb/system.proto\x12\x06system\"2\n" + + "\x1eapp/system/rpc/pb/system.proto\x12\x06system\"2\n" + "\n" + "CommonResp\x12\x12\n" + "\x04code\x18\x01 \x01(\x03R\x04code\x12\x10\n" + @@ -3763,7 +3635,7 @@ const file_pb_system_proto_rawDesc = "" + "\x06status\x18\x05 \x01(\x05R\x06status\"`\n" + "\x17OperationRecordListResp\x12/\n" + "\x04list\x18\x01 \x03(\v2\x1b.system.OperationRecordInfoR\x04list\x12\x14\n" + - "\x05total\x18\x02 \x01(\x03R\x05total\"\xb8\x05\n" + + "\x05total\x18\x02 \x01(\x03R\x05total\"\xca\x04\n" + "\bUserInfo\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" + "\btenantId\x18\x02 \x01(\tR\btenantId\x12\x1a\n" + @@ -3771,14 +3643,7 @@ const file_pb_system_proto_rawDesc = "" + "\x04name\x18\x04 \x01(\tR\x04name\x12\x18\n" + "\aaccount\x18\x05 \x01(\tR\aaccount\x12\x1a\n" + "\bnickName\x18\x06 \x01(\tR\bnickName\x12\x14\n" + - "\x05phone\x18\a \x01(\tR\x05phone\x12\x1e\n" + - "\n" + - "sessionKey\x18\b \x01(\tR\n" + - "sessionKey\x12\x18\n" + - "\aunionId\x18\t \x01(\tR\aunionId\x12\x16\n" + - "\x06openId\x18\n" + - " \x01(\tR\x06openId\x12\x1a\n" + - "\bsaOpenId\x18\v \x01(\tR\bsaOpenId\x12\x1a\n" + + "\x05phone\x18\a \x01(\tR\x05phone\x12\x1a\n" + "\bavatarId\x18\f \x01(\tR\bavatarId\x12\x16\n" + "\x06gender\x18\r \x01(\x05R\x06gender\x12\x18\n" + "\acountry\x18\x0e \x01(\tR\acountry\x12\x1a\n" + @@ -3796,19 +3661,12 @@ const file_pb_system_proto_rawDesc = "" + "\x0eGetUserByIdReq\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\"7\n" + "\x0fGetUserByIdResp\x12$\n" + - "\x04user\x18\x01 \x01(\v2\x10.system.UserInfoR\x04user\",\n" + - "\x12GetUserByOpenIdReq\x12\x16\n" + - "\x06openId\x18\x01 \x01(\tR\x06openId\";\n" + - "\x13GetUserByOpenIdResp\x12$\n" + - "\x04user\x18\x01 \x01(\v2\x10.system.UserInfoR\x04user\"\xc3\x01\n" + + "\x04user\x18\x01 \x01(\v2\x10.system.UserInfoR\x04user\"\xa7\x01\n" + "\rCreateUserReq\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + "\aaccount\x18\x02 \x01(\tR\aaccount\x12\x1a\n" + - "\bpassword\x18\x03 \x01(\tR\bpassword\x12\x16\n" + - "\x06openId\x18\x04 \x01(\tR\x06openId\x12\x1e\n" + - "\n" + - "sessionKey\x18\x05 \x01(\tR\n" + - "sessionKey\x12\x1a\n" + + "\bpassword\x18\x03 \x01(\tR\bpassword\x12\x1a\n" + + "\bnickName\x18\x04 \x01(\tR\bnickName\x12\x1a\n" + "\bclientId\x18\x06 \x01(\tR\bclientId\x12\x14\n" + "\x05phone\x18\a \x01(\tR\x05phone\"6\n" + "\x0eCreateUserResp\x12$\n" + @@ -3858,10 +3716,9 @@ const file_pb_system_proto_rawDesc = "" + "\x10GetClientByIdReq\x12\x1a\n" + "\bclientId\x18\x01 \x01(\tR\bclientId\"?\n" + "\x11GetClientByIdResp\x12*\n" + - "\x06client\x18\x01 \x01(\v2\x12.system.ClientInfoR\x06client2\xd3\x10\n" + + "\x06client\x18\x01 \x01(\v2\x12.system.ClientInfoR\x06client2\x87\x10\n" + "\rSystemService\x12>\n" + - "\vGetUserById\x12\x16.system.GetUserByIdReq\x1a\x17.system.GetUserByIdResp\x12J\n" + - "\x0fGetUserByOpenId\x12\x1a.system.GetUserByOpenIdReq\x1a\x1b.system.GetUserByOpenIdResp\x12G\n" + + "\vGetUserById\x12\x16.system.GetUserByIdReq\x1a\x17.system.GetUserByIdResp\x12G\n" + "\x0eLoginByAccount\x12\x19.system.LoginByAccountReq\x1a\x1a.system.LoginByAccountResp\x12;\n" + "\n" + "CreateUser\x12\x15.system.CreateUserReq\x1a\x16.system.CreateUserResp\x127\n" + @@ -3909,19 +3766,19 @@ const file_pb_system_proto_rawDesc = "" + "Z\b./systemb\x06proto3" var ( - file_pb_system_proto_rawDescOnce sync.Once - file_pb_system_proto_rawDescData []byte + file_app_system_rpc_pb_system_proto_rawDescOnce sync.Once + file_app_system_rpc_pb_system_proto_rawDescData []byte ) -func file_pb_system_proto_rawDescGZIP() []byte { - file_pb_system_proto_rawDescOnce.Do(func() { - file_pb_system_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pb_system_proto_rawDesc), len(file_pb_system_proto_rawDesc))) +func file_app_system_rpc_pb_system_proto_rawDescGZIP() []byte { + file_app_system_rpc_pb_system_proto_rawDescOnce.Do(func() { + file_app_system_rpc_pb_system_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_system_rpc_pb_system_proto_rawDesc), len(file_app_system_rpc_pb_system_proto_rawDesc))) }) - return file_pb_system_proto_rawDescData + return file_app_system_rpc_pb_system_proto_rawDescData } -var file_pb_system_proto_msgTypes = make([]protoimpl.MessageInfo, 52) -var file_pb_system_proto_goTypes = []any{ +var file_app_system_rpc_pb_system_proto_msgTypes = make([]protoimpl.MessageInfo, 50) +var file_app_system_rpc_pb_system_proto_goTypes = []any{ (*CommonResp)(nil), // 0: system.CommonResp (*IdReq)(nil), // 1: system.IdReq (*IdsReq)(nil), // 2: system.IdsReq @@ -3955,27 +3812,25 @@ var file_pb_system_proto_goTypes = []any{ (*UserInfo)(nil), // 30: system.UserInfo (*GetUserByIdReq)(nil), // 31: system.GetUserByIdReq (*GetUserByIdResp)(nil), // 32: system.GetUserByIdResp - (*GetUserByOpenIdReq)(nil), // 33: system.GetUserByOpenIdReq - (*GetUserByOpenIdResp)(nil), // 34: system.GetUserByOpenIdResp - (*CreateUserReq)(nil), // 35: system.CreateUserReq - (*CreateUserResp)(nil), // 36: system.CreateUserResp - (*UpdateUserReq)(nil), // 37: system.UpdateUserReq - (*LoginByAccountReq)(nil), // 38: system.LoginByAccountReq - (*LoginByAccountResp)(nil), // 39: system.LoginByAccountResp - (*GetUserListReq)(nil), // 40: system.GetUserListReq - (*GetUserListResp)(nil), // 41: system.GetUserListResp - (*GetUserDetailReq)(nil), // 42: system.GetUserDetailReq - (*UserDetailResp)(nil), // 43: system.UserDetailResp - (*DeleteUserReq)(nil), // 44: system.DeleteUserReq - (*ResetPasswordReq)(nil), // 45: system.ResetPasswordReq - (*GetRolesByUserIdReq)(nil), // 46: system.GetRolesByUserIdReq - (*GetRolesByUserIdResp)(nil), // 47: system.GetRolesByUserIdResp - (*GetMenusByRoleIdReq)(nil), // 48: system.GetMenusByRoleIdReq - (*GetMenusByRoleIdResp)(nil), // 49: system.GetMenusByRoleIdResp - (*GetClientByIdReq)(nil), // 50: system.GetClientByIdReq - (*GetClientByIdResp)(nil), // 51: system.GetClientByIdResp + (*CreateUserReq)(nil), // 33: system.CreateUserReq + (*CreateUserResp)(nil), // 34: system.CreateUserResp + (*UpdateUserReq)(nil), // 35: system.UpdateUserReq + (*LoginByAccountReq)(nil), // 36: system.LoginByAccountReq + (*LoginByAccountResp)(nil), // 37: system.LoginByAccountResp + (*GetUserListReq)(nil), // 38: system.GetUserListReq + (*GetUserListResp)(nil), // 39: system.GetUserListResp + (*GetUserDetailReq)(nil), // 40: system.GetUserDetailReq + (*UserDetailResp)(nil), // 41: system.UserDetailResp + (*DeleteUserReq)(nil), // 42: system.DeleteUserReq + (*ResetPasswordReq)(nil), // 43: system.ResetPasswordReq + (*GetRolesByUserIdReq)(nil), // 44: system.GetRolesByUserIdReq + (*GetRolesByUserIdResp)(nil), // 45: system.GetRolesByUserIdResp + (*GetMenusByRoleIdReq)(nil), // 46: system.GetMenusByRoleIdReq + (*GetMenusByRoleIdResp)(nil), // 47: system.GetMenusByRoleIdResp + (*GetClientByIdReq)(nil), // 48: system.GetClientByIdReq + (*GetClientByIdResp)(nil), // 49: system.GetClientByIdResp } -var file_pb_system_proto_depIdxs = []int32{ +var file_app_system_rpc_pb_system_proto_depIdxs = []int32{ 3, // 0: system.RoleListResp.list:type_name -> system.RoleInfo 12, // 1: system.MenuInfo.children:type_name -> system.MenuInfo 12, // 2: system.MenuListResp.menus:type_name -> system.MenuInfo @@ -3984,108 +3839,105 @@ var file_pb_system_proto_depIdxs = []int32{ 26, // 5: system.OperationRecordListResp.list:type_name -> system.OperationRecordInfo 3, // 6: system.UserInfo.roles:type_name -> system.RoleInfo 30, // 7: system.GetUserByIdResp.user:type_name -> system.UserInfo - 30, // 8: system.GetUserByOpenIdResp.user:type_name -> system.UserInfo - 30, // 9: system.CreateUserResp.user:type_name -> system.UserInfo - 30, // 10: system.LoginByAccountResp.user:type_name -> system.UserInfo - 30, // 11: system.GetUserListResp.list:type_name -> system.UserInfo - 3, // 12: system.GetRolesByUserIdResp.roles:type_name -> system.RoleInfo - 12, // 13: system.GetMenusByRoleIdResp.menus:type_name -> system.MenuInfo - 16, // 14: system.GetClientByIdResp.client:type_name -> system.ClientInfo - 31, // 15: system.SystemService.GetUserById:input_type -> system.GetUserByIdReq - 33, // 16: system.SystemService.GetUserByOpenId:input_type -> system.GetUserByOpenIdReq - 38, // 17: system.SystemService.LoginByAccount:input_type -> system.LoginByAccountReq - 35, // 18: system.SystemService.CreateUser:input_type -> system.CreateUserReq - 37, // 19: system.SystemService.UpdateUser:input_type -> system.UpdateUserReq - 40, // 20: system.SystemService.GetUserList:input_type -> system.GetUserListReq - 42, // 21: system.SystemService.GetUserDetail:input_type -> system.GetUserDetailReq - 44, // 22: system.SystemService.DeleteUser:input_type -> system.DeleteUserReq - 45, // 23: system.SystemService.ResetPassword:input_type -> system.ResetPasswordReq - 46, // 24: system.SystemService.GetRolesByUserId:input_type -> system.GetRolesByUserIdReq - 4, // 25: system.SystemService.CreateRole:input_type -> system.RoleReq - 5, // 26: system.SystemService.UpdateRole:input_type -> system.RoleUpdateReq - 2, // 27: system.SystemService.DeleteRole:input_type -> system.IdsReq - 8, // 28: system.SystemService.GetRoleList:input_type -> system.RoleListReq - 10, // 29: system.SystemService.GetRoleDetail:input_type -> system.GetRoleDetailReq - 6, // 30: system.SystemService.AssignRoleMenus:input_type -> system.AssignRoleMenusReq - 7, // 31: system.SystemService.AssignUserRoles:input_type -> system.AssignUserRolesReq - 48, // 32: system.SystemService.GetMenusByRoleId:input_type -> system.GetMenusByRoleIdReq - 13, // 33: system.SystemService.CreateMenu:input_type -> system.MenuReq - 14, // 34: system.SystemService.UpdateMenu:input_type -> system.MenuUpdateReq - 2, // 35: system.SystemService.DeleteMenu:input_type -> system.IdsReq - 1, // 36: system.SystemService.GetMenuList:input_type -> system.IdReq - 50, // 37: system.SystemService.GetClientById:input_type -> system.GetClientByIdReq - 17, // 38: system.SystemService.CreateClient:input_type -> system.ClientReq - 18, // 39: system.SystemService.UpdateClient:input_type -> system.ClientUpdateReq - 2, // 40: system.SystemService.DeleteClient:input_type -> system.IdsReq - 19, // 41: system.SystemService.GetClientList:input_type -> system.ClientListReq - 22, // 42: system.SystemService.CreateDict:input_type -> system.DictReq - 23, // 43: system.SystemService.UpdateDict:input_type -> system.DictUpdateReq - 2, // 44: system.SystemService.DeleteDict:input_type -> system.IdsReq - 24, // 45: system.SystemService.GetDictList:input_type -> system.DictListReq - 27, // 46: system.SystemService.CreateOperationRecord:input_type -> system.CreateOperationRecordReq - 2, // 47: system.SystemService.DeleteOperationRecord:input_type -> system.IdsReq - 28, // 48: system.SystemService.GetOperationRecordList:input_type -> system.OperationRecordListReq - 32, // 49: system.SystemService.GetUserById:output_type -> system.GetUserByIdResp - 34, // 50: system.SystemService.GetUserByOpenId:output_type -> system.GetUserByOpenIdResp - 39, // 51: system.SystemService.LoginByAccount:output_type -> system.LoginByAccountResp - 36, // 52: system.SystemService.CreateUser:output_type -> system.CreateUserResp - 0, // 53: system.SystemService.UpdateUser:output_type -> system.CommonResp - 41, // 54: system.SystemService.GetUserList:output_type -> system.GetUserListResp - 43, // 55: system.SystemService.GetUserDetail:output_type -> system.UserDetailResp - 0, // 56: system.SystemService.DeleteUser:output_type -> system.CommonResp - 0, // 57: system.SystemService.ResetPassword:output_type -> system.CommonResp - 47, // 58: system.SystemService.GetRolesByUserId:output_type -> system.GetRolesByUserIdResp - 0, // 59: system.SystemService.CreateRole:output_type -> system.CommonResp - 0, // 60: system.SystemService.UpdateRole:output_type -> system.CommonResp - 0, // 61: system.SystemService.DeleteRole:output_type -> system.CommonResp - 9, // 62: system.SystemService.GetRoleList:output_type -> system.RoleListResp - 11, // 63: system.SystemService.GetRoleDetail:output_type -> system.RoleDetailResp - 0, // 64: system.SystemService.AssignRoleMenus:output_type -> system.CommonResp - 0, // 65: system.SystemService.AssignUserRoles:output_type -> system.CommonResp - 49, // 66: system.SystemService.GetMenusByRoleId:output_type -> system.GetMenusByRoleIdResp - 0, // 67: system.SystemService.CreateMenu:output_type -> system.CommonResp - 0, // 68: system.SystemService.UpdateMenu:output_type -> system.CommonResp - 0, // 69: system.SystemService.DeleteMenu:output_type -> system.CommonResp - 15, // 70: system.SystemService.GetMenuList:output_type -> system.MenuListResp - 51, // 71: system.SystemService.GetClientById:output_type -> system.GetClientByIdResp - 0, // 72: system.SystemService.CreateClient:output_type -> system.CommonResp - 0, // 73: system.SystemService.UpdateClient:output_type -> system.CommonResp - 0, // 74: system.SystemService.DeleteClient:output_type -> system.CommonResp - 20, // 75: system.SystemService.GetClientList:output_type -> system.ClientListResp - 0, // 76: system.SystemService.CreateDict:output_type -> system.CommonResp - 0, // 77: system.SystemService.UpdateDict:output_type -> system.CommonResp - 0, // 78: system.SystemService.DeleteDict:output_type -> system.CommonResp - 25, // 79: system.SystemService.GetDictList:output_type -> system.DictListResp - 0, // 80: system.SystemService.CreateOperationRecord:output_type -> system.CommonResp - 0, // 81: system.SystemService.DeleteOperationRecord:output_type -> system.CommonResp - 29, // 82: system.SystemService.GetOperationRecordList:output_type -> system.OperationRecordListResp - 49, // [49:83] is the sub-list for method output_type - 15, // [15:49] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 30, // 8: system.CreateUserResp.user:type_name -> system.UserInfo + 30, // 9: system.LoginByAccountResp.user:type_name -> system.UserInfo + 30, // 10: system.GetUserListResp.list:type_name -> system.UserInfo + 3, // 11: system.GetRolesByUserIdResp.roles:type_name -> system.RoleInfo + 12, // 12: system.GetMenusByRoleIdResp.menus:type_name -> system.MenuInfo + 16, // 13: system.GetClientByIdResp.client:type_name -> system.ClientInfo + 31, // 14: system.SystemService.GetUserById:input_type -> system.GetUserByIdReq + 36, // 15: system.SystemService.LoginByAccount:input_type -> system.LoginByAccountReq + 33, // 16: system.SystemService.CreateUser:input_type -> system.CreateUserReq + 35, // 17: system.SystemService.UpdateUser:input_type -> system.UpdateUserReq + 38, // 18: system.SystemService.GetUserList:input_type -> system.GetUserListReq + 40, // 19: system.SystemService.GetUserDetail:input_type -> system.GetUserDetailReq + 42, // 20: system.SystemService.DeleteUser:input_type -> system.DeleteUserReq + 43, // 21: system.SystemService.ResetPassword:input_type -> system.ResetPasswordReq + 44, // 22: system.SystemService.GetRolesByUserId:input_type -> system.GetRolesByUserIdReq + 4, // 23: system.SystemService.CreateRole:input_type -> system.RoleReq + 5, // 24: system.SystemService.UpdateRole:input_type -> system.RoleUpdateReq + 2, // 25: system.SystemService.DeleteRole:input_type -> system.IdsReq + 8, // 26: system.SystemService.GetRoleList:input_type -> system.RoleListReq + 10, // 27: system.SystemService.GetRoleDetail:input_type -> system.GetRoleDetailReq + 6, // 28: system.SystemService.AssignRoleMenus:input_type -> system.AssignRoleMenusReq + 7, // 29: system.SystemService.AssignUserRoles:input_type -> system.AssignUserRolesReq + 46, // 30: system.SystemService.GetMenusByRoleId:input_type -> system.GetMenusByRoleIdReq + 13, // 31: system.SystemService.CreateMenu:input_type -> system.MenuReq + 14, // 32: system.SystemService.UpdateMenu:input_type -> system.MenuUpdateReq + 2, // 33: system.SystemService.DeleteMenu:input_type -> system.IdsReq + 1, // 34: system.SystemService.GetMenuList:input_type -> system.IdReq + 48, // 35: system.SystemService.GetClientById:input_type -> system.GetClientByIdReq + 17, // 36: system.SystemService.CreateClient:input_type -> system.ClientReq + 18, // 37: system.SystemService.UpdateClient:input_type -> system.ClientUpdateReq + 2, // 38: system.SystemService.DeleteClient:input_type -> system.IdsReq + 19, // 39: system.SystemService.GetClientList:input_type -> system.ClientListReq + 22, // 40: system.SystemService.CreateDict:input_type -> system.DictReq + 23, // 41: system.SystemService.UpdateDict:input_type -> system.DictUpdateReq + 2, // 42: system.SystemService.DeleteDict:input_type -> system.IdsReq + 24, // 43: system.SystemService.GetDictList:input_type -> system.DictListReq + 27, // 44: system.SystemService.CreateOperationRecord:input_type -> system.CreateOperationRecordReq + 2, // 45: system.SystemService.DeleteOperationRecord:input_type -> system.IdsReq + 28, // 46: system.SystemService.GetOperationRecordList:input_type -> system.OperationRecordListReq + 32, // 47: system.SystemService.GetUserById:output_type -> system.GetUserByIdResp + 37, // 48: system.SystemService.LoginByAccount:output_type -> system.LoginByAccountResp + 34, // 49: system.SystemService.CreateUser:output_type -> system.CreateUserResp + 0, // 50: system.SystemService.UpdateUser:output_type -> system.CommonResp + 39, // 51: system.SystemService.GetUserList:output_type -> system.GetUserListResp + 41, // 52: system.SystemService.GetUserDetail:output_type -> system.UserDetailResp + 0, // 53: system.SystemService.DeleteUser:output_type -> system.CommonResp + 0, // 54: system.SystemService.ResetPassword:output_type -> system.CommonResp + 45, // 55: system.SystemService.GetRolesByUserId:output_type -> system.GetRolesByUserIdResp + 0, // 56: system.SystemService.CreateRole:output_type -> system.CommonResp + 0, // 57: system.SystemService.UpdateRole:output_type -> system.CommonResp + 0, // 58: system.SystemService.DeleteRole:output_type -> system.CommonResp + 9, // 59: system.SystemService.GetRoleList:output_type -> system.RoleListResp + 11, // 60: system.SystemService.GetRoleDetail:output_type -> system.RoleDetailResp + 0, // 61: system.SystemService.AssignRoleMenus:output_type -> system.CommonResp + 0, // 62: system.SystemService.AssignUserRoles:output_type -> system.CommonResp + 47, // 63: system.SystemService.GetMenusByRoleId:output_type -> system.GetMenusByRoleIdResp + 0, // 64: system.SystemService.CreateMenu:output_type -> system.CommonResp + 0, // 65: system.SystemService.UpdateMenu:output_type -> system.CommonResp + 0, // 66: system.SystemService.DeleteMenu:output_type -> system.CommonResp + 15, // 67: system.SystemService.GetMenuList:output_type -> system.MenuListResp + 49, // 68: system.SystemService.GetClientById:output_type -> system.GetClientByIdResp + 0, // 69: system.SystemService.CreateClient:output_type -> system.CommonResp + 0, // 70: system.SystemService.UpdateClient:output_type -> system.CommonResp + 0, // 71: system.SystemService.DeleteClient:output_type -> system.CommonResp + 20, // 72: system.SystemService.GetClientList:output_type -> system.ClientListResp + 0, // 73: system.SystemService.CreateDict:output_type -> system.CommonResp + 0, // 74: system.SystemService.UpdateDict:output_type -> system.CommonResp + 0, // 75: system.SystemService.DeleteDict:output_type -> system.CommonResp + 25, // 76: system.SystemService.GetDictList:output_type -> system.DictListResp + 0, // 77: system.SystemService.CreateOperationRecord:output_type -> system.CommonResp + 0, // 78: system.SystemService.DeleteOperationRecord:output_type -> system.CommonResp + 29, // 79: system.SystemService.GetOperationRecordList:output_type -> system.OperationRecordListResp + 47, // [47:80] is the sub-list for method output_type + 14, // [14:47] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } -func init() { file_pb_system_proto_init() } -func file_pb_system_proto_init() { - if File_pb_system_proto != nil { +func init() { file_app_system_rpc_pb_system_proto_init() } +func file_app_system_rpc_pb_system_proto_init() { + if File_app_system_rpc_pb_system_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_pb_system_proto_rawDesc), len(file_pb_system_proto_rawDesc)), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_system_rpc_pb_system_proto_rawDesc), len(file_app_system_rpc_pb_system_proto_rawDesc)), NumEnums: 0, - NumMessages: 52, + NumMessages: 50, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_pb_system_proto_goTypes, - DependencyIndexes: file_pb_system_proto_depIdxs, - MessageInfos: file_pb_system_proto_msgTypes, + GoTypes: file_app_system_rpc_pb_system_proto_goTypes, + DependencyIndexes: file_app_system_rpc_pb_system_proto_depIdxs, + MessageInfos: file_app_system_rpc_pb_system_proto_msgTypes, }.Build() - File_pb_system_proto = out.File - file_pb_system_proto_goTypes = nil - file_pb_system_proto_depIdxs = nil + File_app_system_rpc_pb_system_proto = out.File + file_app_system_rpc_pb_system_proto_goTypes = nil + file_app_system_rpc_pb_system_proto_depIdxs = nil } diff --git a/app/system/rpc/system/system_grpc.pb.go b/app/system/rpc/system/system_grpc.pb.go index 7c2e165..8cc0793 100644 --- a/app/system/rpc/system/system_grpc.pb.go +++ b/app/system/rpc/system/system_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.6.1 // - protoc v7.34.1 -// source: pb/system.proto +// source: app/system/rpc/pb/system.proto package system @@ -20,7 +20,6 @@ const _ = grpc.SupportPackageIsVersion9 const ( SystemService_GetUserById_FullMethodName = "/system.SystemService/GetUserById" - SystemService_GetUserByOpenId_FullMethodName = "/system.SystemService/GetUserByOpenId" SystemService_LoginByAccount_FullMethodName = "/system.SystemService/LoginByAccount" SystemService_CreateUser_FullMethodName = "/system.SystemService/CreateUser" SystemService_UpdateUser_FullMethodName = "/system.SystemService/UpdateUser" @@ -61,7 +60,6 @@ const ( type SystemServiceClient interface { // --- 用户 --- GetUserById(ctx context.Context, in *GetUserByIdReq, opts ...grpc.CallOption) (*GetUserByIdResp, error) - GetUserByOpenId(ctx context.Context, in *GetUserByOpenIdReq, opts ...grpc.CallOption) (*GetUserByOpenIdResp, error) LoginByAccount(ctx context.Context, in *LoginByAccountReq, opts ...grpc.CallOption) (*LoginByAccountResp, error) CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*CreateUserResp, error) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*CommonResp, error) @@ -120,16 +118,6 @@ func (c *systemServiceClient) GetUserById(ctx context.Context, in *GetUserByIdRe return out, nil } -func (c *systemServiceClient) GetUserByOpenId(ctx context.Context, in *GetUserByOpenIdReq, opts ...grpc.CallOption) (*GetUserByOpenIdResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetUserByOpenIdResp) - err := c.cc.Invoke(ctx, SystemService_GetUserByOpenId_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *systemServiceClient) LoginByAccount(ctx context.Context, in *LoginByAccountReq, opts ...grpc.CallOption) (*LoginByAccountResp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LoginByAccountResp) @@ -456,7 +444,6 @@ func (c *systemServiceClient) GetOperationRecordList(ctx context.Context, in *Op type SystemServiceServer interface { // --- 用户 --- GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdResp, error) - GetUserByOpenId(context.Context, *GetUserByOpenIdReq) (*GetUserByOpenIdResp, error) LoginByAccount(context.Context, *LoginByAccountReq) (*LoginByAccountResp, error) CreateUser(context.Context, *CreateUserReq) (*CreateUserResp, error) UpdateUser(context.Context, *UpdateUserReq) (*CommonResp, error) @@ -508,9 +495,6 @@ type UnimplementedSystemServiceServer struct{} func (UnimplementedSystemServiceServer) GetUserById(context.Context, *GetUserByIdReq) (*GetUserByIdResp, error) { return nil, status.Error(codes.Unimplemented, "method GetUserById not implemented") } -func (UnimplementedSystemServiceServer) GetUserByOpenId(context.Context, *GetUserByOpenIdReq) (*GetUserByOpenIdResp, error) { - return nil, status.Error(codes.Unimplemented, "method GetUserByOpenId not implemented") -} func (UnimplementedSystemServiceServer) LoginByAccount(context.Context, *LoginByAccountReq) (*LoginByAccountResp, error) { return nil, status.Error(codes.Unimplemented, "method LoginByAccount not implemented") } @@ -646,24 +630,6 @@ func _SystemService_GetUserById_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } -func _SystemService_GetUserByOpenId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserByOpenIdReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServiceServer).GetUserByOpenId(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: SystemService_GetUserByOpenId_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServiceServer).GetUserByOpenId(ctx, req.(*GetUserByOpenIdReq)) - } - return interceptor(ctx, in, info, handler) -} - func _SystemService_LoginByAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LoginByAccountReq) if err := dec(in); err != nil { @@ -1251,10 +1217,6 @@ var SystemService_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetUserById", Handler: _SystemService_GetUserById_Handler, }, - { - MethodName: "GetUserByOpenId", - Handler: _SystemService_GetUserByOpenId_Handler, - }, { MethodName: "LoginByAccount", Handler: _SystemService_LoginByAccount_Handler, @@ -1385,5 +1347,5 @@ var SystemService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "pb/system.proto", + Metadata: "app/system/rpc/pb/system.proto", } diff --git a/app/system/rpc/systemservice/systemService.go b/app/system/rpc/systemservice/systemService.go index bd2224a..26e0257 100644 --- a/app/system/rpc/systemservice/systemService.go +++ b/app/system/rpc/systemservice/systemService.go @@ -36,14 +36,10 @@ type ( GetMenusByRoleIdReq = system.GetMenusByRoleIdReq GetMenusByRoleIdResp = system.GetMenusByRoleIdResp GetRoleDetailReq = system.GetRoleDetailReq - GetRoleListReq = system.RoleListReq - GetRoleListResp = system.RoleListResp GetRolesByUserIdReq = system.GetRolesByUserIdReq GetRolesByUserIdResp = system.GetRolesByUserIdResp GetUserByIdReq = system.GetUserByIdReq GetUserByIdResp = system.GetUserByIdResp - GetUserByOpenIdReq = system.GetUserByOpenIdReq - GetUserByOpenIdResp = system.GetUserByOpenIdResp GetUserDetailReq = system.GetUserDetailReq GetUserListReq = system.GetUserListReq GetUserListResp = system.GetUserListResp @@ -72,7 +68,6 @@ type ( SystemService interface { // --- 用户 --- GetUserById(ctx context.Context, in *GetUserByIdReq, opts ...grpc.CallOption) (*GetUserByIdResp, error) - GetUserByOpenId(ctx context.Context, in *GetUserByOpenIdReq, opts ...grpc.CallOption) (*GetUserByOpenIdResp, error) LoginByAccount(ctx context.Context, in *LoginByAccountReq, opts ...grpc.CallOption) (*LoginByAccountResp, error) CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*CreateUserResp, error) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*CommonResp, error) @@ -130,11 +125,6 @@ func (m *defaultSystemService) GetUserById(ctx context.Context, in *GetUserByIdR return client.GetUserById(ctx, in, opts...) } -func (m *defaultSystemService) GetUserByOpenId(ctx context.Context, in *GetUserByOpenIdReq, opts ...grpc.CallOption) (*GetUserByOpenIdResp, error) { - client := system.NewSystemServiceClient(m.cli.Conn()) - return client.GetUserByOpenId(ctx, in, opts...) -} - func (m *defaultSystemService) LoginByAccount(ctx context.Context, in *LoginByAccountReq, opts ...grpc.CallOption) (*LoginByAccountResp, error) { client := system.NewSystemServiceClient(m.cli.Conn()) return client.LoginByAccount(ctx, in, opts...) diff --git a/docs/dtm-saga-distributed-transaction-plan.md b/docs/dtm-saga-distributed-transaction-plan.md new file mode 100644 index 0000000..3855924 --- /dev/null +++ b/docs/dtm-saga-distributed-transaction-plan.md @@ -0,0 +1,332 @@ +# DTM Saga 分布式事务改造 — 用户注册流程 + +## 背景 + +当前 [findorcreateuserbyopenidlogic.go](file:///Users/zhangjianmin/sourceCode/GolandProjects/src/sundynix-micro-go/app/plant/rpc/internal/logic/findorcreateuserbyopenidlogic.go) 中,Plant RPC 直接跨服务边界操作 System 的 `sundynix_user` 表,使用本地事务一次性创建基础用户和扩展用户。这违反了微服务自治原则,**一旦分库部署将导致数据不一致**。 + +本方案引入 **DTM (Distributed Transaction Manager)** 的 **Saga 模式**,将跨服务的用户注册拆分为两个独立的子事务,由 DTM 协调保证强一致性。 + +--- + +## User Review Required + +> [!IMPORTANT] +> **基础设施依赖**:本方案需要部署一个 DTM 服务实例(Docker 容器),并且 DTM 依赖 MySQL 存储事务状态。请确认你的 `192.168.100.127` 服务器上可以运行新的 Docker 容器。 + +> [!WARNING] +> **DTM 维护状态**:`dtm-driver-gozero` 项目近两年更新较少,但核心功能稳定且被广泛使用。与 go-zero v1.10.1 兼容性需要验证,如果有兼容性问题我会做适配。 + +## Open Questions + +> [!IMPORTANT] +> 1. **DTM 部署方式**:你希望 DTM 服务部署在 `192.168.100.127` 上(推荐,和 etcd/MySQL 同机器),还是本地开发环境? +> 2. **DTM 存储**:DTM 需要一个 MySQL 数据库来存储事务状态。是新建一个 `dtm` 数据库,还是在现有的 `sundynix_micro_go` 中加表?推荐新建独立数据库。 +> 3. **Saga vs TCC 选择**:对于用户注册场景,Saga 更合适(逻辑简单、不需要资源预留),TCC 适合需要"冻结"资源的场景(如扣款)。你确定要用 Saga 还是 TCC?下面默认按 **Saga** 设计。 + +--- + +## 架构设计 + +### 改造前 vs 改造后 + +```mermaid +graph TB + subgraph "改造前 ❌" + A1[Plant RPC] -->|"直接 tx.Create"| B1[sundynix_user 表] + A1 -->|"直接 tx.Create"| C1[plant_user_profile 表] + style B1 fill:#ff6b6b,color:#fff + end + + subgraph "改造后 ✅" + DTM[DTM Server] -->|"Step 1: CreateUserByMini"| SYS[System RPC] + DTM -->|"Step 2: CreateProfile"| PLT[Plant RPC] + SYS -->|"本地事务"| B2[sundynix_user 表] + PLT -->|"本地事务"| C2[plant_user_profile 表] + DTM -.->|"失败补偿"| SYS2[System: CompensateCreateUser] + DTM -.->|"失败补偿"| PLT2[Plant: CompensateCreateProfile] + style DTM fill:#4ecdc4,color:#fff + end +``` + +### Saga 事务流程 + +```mermaid +sequenceDiagram + participant Plant as Plant RPC
(事务发起者) + participant DTM as DTM Server + participant Sys as System RPC + participant PlantSub as Plant RPC
(子事务) + + Plant->>DTM: 提交 Saga 全局事务 (gid) + DTM->>Sys: Step1: CreateUserByMini(openId, clientId, nickName) + Sys->>Sys: barrier.Call → INSERT sundynix_user → 返回 userId + Sys-->>DTM: 返回 {userId} + + DTM->>PlantSub: Step2: CreateProfile(userId, openId, sessionKey...) + PlantSub->>PlantSub: barrier.Call → INSERT plant_user_profile + PlantSub-->>DTM: 返回 success + + DTM-->>Plant: Saga 完成 + + Note over DTM,PlantSub: 如果 Step2 失败: + DTM->>PlantSub: CompensateCreateProfile(userId) + DTM->>Sys: CompensateCreateUserByMini(userId) +``` + +--- + +## Proposed Changes + +### 1. 基础设施 — DTM 服务部署 + +在 `192.168.100.127` 上通过 Docker 部署 DTM: + +```bash +docker run -d --name dtm \ + -p 36789:36789 \ + -p 36790:36790 \ + -e STORE_DRIVER=mysql \ + -e STORE_HOST=192.168.100.127 \ + -e STORE_PORT=3307 \ + -e STORE_USER=root \ + -e STORE_PASSWORD=root \ + -e MICRO_SERVICE_DRIVER=dtm-driver-gozero \ + -e MICRO_SERVICE_TARGET=etcd://192.168.100.127:2379/dtmservice \ + yedf/dtm:latest +``` + +同时需要在数据库中创建 `dtm_barrier` 表(DTM 子事务屏障所需),分别在 System 和 Plant 连接的数据库中建表: + +```sql +CREATE TABLE IF NOT EXISTS dtm_barrier ( + id BIGINT AUTO_INCREMENT PRIMARY KEY, + trans_type VARCHAR(45) DEFAULT '', + gid VARCHAR(128) DEFAULT '', + branch_id VARCHAR(128) DEFAULT '', + op VARCHAR(45) DEFAULT '', + barrier_id VARCHAR(45) DEFAULT '', + reason VARCHAR(45) DEFAULT '', + create_time DATETIME DEFAULT CURRENT_TIMESTAMP, + update_time DATETIME DEFAULT CURRENT_TIMESTAMP, + UNIQUE KEY uk_barrier (gid, branch_id, op, barrier_id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +``` + +--- + +### 2. 依赖管理 + +#### [MODIFY] [go.mod](file:///Users/zhangjianmin/sourceCode/GolandProjects/src/sundynix-micro-go/go.mod) + +新增 DTM 相关依赖: +``` +github.com/dtm-labs/dtmgrpc +github.com/dtm-labs/dtmdriver-gozero +``` + +--- + +### 3. System RPC — 新增子事务方法 + +#### [MODIFY] [system.proto](file:///Users/zhangjianmin/sourceCode/GolandProjects/src/sundynix-micro-go/app/system/rpc/pb/system.proto) + +新增消息和 RPC 方法: + +```protobuf +// DTM Saga 子事务:小程序注册基础用户 +message CreateUserByMiniReq { + string openId = 1; // 用于幂等判断 + string clientId = 2; + string nickName = 3; +} + +message CreateUserByMiniResp { + string userId = 1; +} + +// Service 新增: +rpc CreateUserByMini(CreateUserByMiniReq) returns (CreateUserByMiniResp); +rpc CreateUserByMiniCompensate(CreateUserByMiniReq) returns (CommonResp); +``` + +#### [NEW] createUserByMiniLogic.go + +- 使用 `dtmgrpc.BarrierFromGrpc(ctx)` 创建子事务屏障 +- `barrier.CallWithDB(db, func(tx *sql.Tx) error { ... })` 内执行 INSERT +- 自动处理幂等、空补偿、悬挂问题 + +#### [NEW] createUserByMiniCompensateLogic.go + +- 同样使用子事务屏障 +- 补偿逻辑:`DELETE FROM sundynix_user WHERE id = ? AND client_id = ?` + +--- + +### 4. Plant RPC — 新增子事务方法 + 重构编排 + +#### [MODIFY] [plant.proto](file:///Users/zhangjianmin/sourceCode/GolandProjects/src/sundynix-micro-go/app/plant/rpc/pb/plant.proto) + +新增消息和 RPC 方法: + +```protobuf +// DTM Saga 子事务:创建 Plant 用户扩展表 +message CreateProfileReq { + string userId = 1; + string openId = 2; + string sessionKey = 3; + string unionId = 4; + string saOpenId = 5; + string clientId = 6; + string nickName = 7; +} + +message CreateProfileResp { + string profileId = 1; +} + +// Service 新增: +rpc CreateProfile(CreateProfileReq) returns (CreateProfileResp); +rpc CreateProfileCompensate(CreateProfileReq) returns (CommonResp); +``` + +#### [NEW] createProfileLogic.go + +- 子事务屏障内执行:查找初始等级 + INSERT `plant_user_profile` + +#### [NEW] createProfileCompensateLogic.go + +- 子事务屏障内执行:`DELETE FROM sundynix_plant_user_profile WHERE user_id = ?` + +#### [MODIFY] [findorcreateuserbyopenidlogic.go](file:///Users/zhangjianmin/sourceCode/GolandProjects/src/sundynix-micro-go/app/plant/rpc/internal/logic/findorcreateuserbyopenidlogic.go) + +**核心改造**:从直接操作数据库改为 **DTM Saga 编排者** + +```go +func (l *FindOrCreateUserByOpenIdLogic) FindOrCreateUserByOpenId(in *plant.FindOrCreateUserByOpenIdReq) (*plant.PlantUserProfile, error) { + // 1. 先查询是否已存在(不变) + var profile plantModel.UserProfile + err := l.svcCtx.DB.Where("mini_open_id = ?", in.OpenId).First(&profile).Error + if err == nil { + // 已存在:更新 session_key,直接返回(不变) + ... + return &plant.PlantUserProfile{...}, nil + } + + // 2. 新用户 → 发起 DTM Saga 分布式事务 + dtmServer := "etcd://192.168.100.127:2379/dtmservice" + systemTarget := "etcd://192.168.100.127:2379/system.rpc" + plantTarget := "etcd://192.168.100.127:2379/plant.rpc" + + gid := dtmgrpc.MustGenGid(dtmServer) + + sysReq := &sysPb.CreateUserByMiniReq{ + OpenId: in.OpenId, + ClientId: in.ClientId, + NickName: "园艺新手", + } + plantReq := &plantPb.CreateProfileReq{ + UserId: "", // 由 DTM 传递(见下方说明) + OpenId: in.OpenId, + SessionKey: in.SessionKey, + UnionId: in.UnionId, + SaOpenId: in.SaOpenId, + ClientId: in.ClientId, + NickName: "园艺新手", + } + + saga := dtmgrpc.NewSagaGrpc(dtmServer, gid). + Add(systemTarget+"/system.SystemService/CreateUserByMini", + systemTarget+"/system.SystemService/CreateUserByMiniCompensate", + sysReq). + Add(plantTarget+"/plant.PlantService/CreateProfile", + plantTarget+"/plant.PlantService/CreateProfileCompensate", + plantReq) + + saga.WaitResult = true // 等待事务结果 + + err = saga.Submit() + if err != nil { + return nil, fmt.Errorf("注册用户失败: %w", err) + } + + // 3. 事务完成后查询完整 profile + l.svcCtx.DB.Where("mini_open_id = ?", in.OpenId).First(&profile) + return &plant.PlantUserProfile{...}, nil +} +``` + +> [!IMPORTANT] +> **关于 userId 传递问题**:Saga 模式下各步骤是独立的,Step2 无法直接获取 Step1 返回的 userId。解决方案是:**CreateProfile 内部根据 openId 查询刚创建的 sundynix_user 获取 userId**(两步在同一个 gid 内是顺序执行的,Step1 完成后 Step2 才会执行)。或者使用 DTM 的 **Workflow 模式** 代替 Saga,支持步骤间传值。 + +--- + +### 5. 配置更新 + +#### [MODIFY] [plant.yaml](file:///Users/zhangjianmin/sourceCode/GolandProjects/src/sundynix-micro-go/app/plant/rpc/etc/plant.yaml) + +```yaml +# 新增 DTM 和 System RPC 配置 +DtmServer: "etcd://192.168.100.127:2379/dtmservice" + +SystemRpc: + Etcd: + Hosts: + - 192.168.100.127:2379 + Key: system.rpc +``` + +#### [MODIFY] Plant RPC config.go, serviceContext.go + +- Config 增加 `DtmServer string` 和 `SystemRpc zrpc.RpcClientConf` +- ServiceContext 增加 SystemRpc 客户端(仅用于非 DTM 场景的备用查询) + +--- + +### 6. 删除旧的跨服务代码 + +#### [MODIFY] [findorcreateuserbyopenidlogic.go](file:///Users/zhangjianmin/sourceCode/GolandProjects/src/sundynix-micro-go/app/plant/rpc/internal/logic/findorcreateuserbyopenidlogic.go) + +- 移除对 `sysModel.SundynixUser` 的直接引用和 import +- 移除 `tx.Create(&sysUser)` 这段跨服务写入代码 + +--- + +## 文件变更总结 + +| 服务 | 文件 | 操作 | 说明 | +|---|---|---|---| +| **根目录** | `go.mod` | MODIFY | 添加 dtmgrpc、dtm-driver-gozero 依赖 | +| **System RPC** | `system.proto` | MODIFY | 新增 CreateUserByMini + Compensate RPC | +| **System RPC** | `createUserByMiniLogic.go` | NEW | 子事务:创建基础用户 (barrier) | +| **System RPC** | `createUserByMiniCompensateLogic.go` | NEW | 补偿:删除基础用户 (barrier) | +| **Plant RPC** | `plant.proto` | MODIFY | 新增 CreateProfile + Compensate RPC | +| **Plant RPC** | `createProfileLogic.go` | NEW | 子事务:创建扩展用户 (barrier) | +| **Plant RPC** | `createProfileCompensateLogic.go` | NEW | 补偿:删除扩展用户 (barrier) | +| **Plant RPC** | `findorcreateuserbyopenidlogic.go` | MODIFY | 重构为 Saga 编排者 | +| **Plant RPC** | `config.go` | MODIFY | 添加 DtmServer 配置 | +| **Plant RPC** | `serviceContext.go` | MODIFY | 初始化 DTM driver | +| **Plant RPC** | `plant.yaml` | MODIFY | 添加 DTM 连接配置 | +| **Database** | SQL | EXECUTE | 创建 dtm_barrier 屏障表 | + +--- + +## Verification Plan + +### Automated Tests + +```bash +# 1. 编译验证 +go build ./app/system/rpc/... +go build ./app/plant/rpc/... +go build ./app/auth/api/... + +# 2. 确认 DTM 服务健康 +curl http://192.168.100.127:36789/api/dtmsvr/version +``` + +### Manual Verification + +1. 启动 DTM + System RPC + Plant RPC + Auth API +2. 小程序端发起 miniLogin → 验证新用户同时出现在 `sundynix_user` 和 `plant_user_profile` 中 +3. 模拟 Plant CreateProfile 失败 → 验证 System 的 CompensateCreateUserByMini 被调用,`sundynix_user` 中无孤儿记录 +4. 通过 DTM 管理台 (`http://192.168.100.127:36789`) 查看事务状态