You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
624 B

syntax = "proto3";
option go_package = ".;pb";
import "music/music_db.proto";
//请求播放链接
message MusicUrlReq{
int64 id = 1;
}
message MusicUrlResp{
int64 id = 1;
string url = 2;
int64 ts = 3;
}
//搜索音乐
message MusicSearchReq{
string keywords= 1; // @go_tags(`gorm:"keywords"`) 关键词
int32 searchtype= 2; // @go_tags(`gorm:"searchtype"`) 搜索类型 0:歌曲 1:歌单
int32 limit= 3; // @go_tags(`gorm:"limit"`) 返回
int32 offset= 4; // @go_tags(`gorm:"offset"`) 偏移
}
message MusicSearchResp{
repeated DBMusic musics = 1;
}