syntax = "proto3";
option go_package = ".;pb";
import "library_db.proto";

// 获取羁绊信息
message LibraryGetListReq {}

message LibraryGetListResp { repeated DBLibrary data = 1; }
// 获取英雄详细羁绊数据
message LibraryGetFetterListReq {}

message LibraryGetFetterListResp { repeated DBHeroFetter data = 1; }


// 领取剧情奖励
message LibraryGetStoryRewardReq {
  string oid = 1;     // DBHeroFetter oid
  int32 history = 2;  // 传记往事id
}

message LibraryGetStoryRewardResp { DBHeroFetter data = 1; }

// 给英雄赠送礼物
message LibraryUseGiftReq {
  string heroid = 1;            // 英雄id
  string items = 2; // 道具ID 
  int32 counts = 3; //道具 数量
}

message LibraryUseGiftResp { DBHeroFetter data = 1; }

// 激活羁绊
message LibraryActivationFetterReq {
  string oid = 1; //对象id
}

message LibraryActivationFetterResp { DBLibrary data = 1; }

// 羁绊数据变化推送
message LibraryChangePush {
  repeated DBLibrary data = 1;
  repeated DBHeroFetter fetter = 2; // 羁绊详细信息
}

// 领取等级奖励
message LibraryLvRewardReq {
  string oid = 1; // 对象唯一id
  int32 lv = 2;   // 好感度等级
}

message LibraryLvRewardResp { DBHeroFetter data = 1; }

// 羁绊剧情-我的主线任务
message LibraryFetterstoryTaskReq {
  int32 fetterId = 1; //羁绊ID
}
message LibraryFetterstoryTaskResp { repeated FetterTask list = 1; }


// 手动提升羁绊等级
message LibraryFetterLvUpReq {
  string libOid = 1;  // 羁绊对象id
}
message LibraryFetterLvUpResp { 
  DBLibrary data = 1; 
}