2023-01-18 09:03:15 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package Artwork;
|
|
|
|
option go_package = "./;artwork";
|
|
|
|
//$ protoc --proto_path=. --go_out=./api/artwork --go-triple_out=./api/artwork ./api/artwork/artwork.proto
|
|
|
|
service Artwork {
|
|
|
|
rpc ArtworkAdd (ArtworkAddRequest) returns (ArtworkAddRespond) {}
|
|
|
|
rpc CheckUserLock (CheckUserLockRequest) returns (CheckUserLockRespond) {}
|
|
|
|
rpc UpdateArtwork (UpdateArtworkRequest) returns (UpdateArtworkRespond) {}
|
|
|
|
rpc GetArtworkList (GetArtworkListRequest) returns (GetArtworkListRespond) {}
|
2023-02-02 06:10:24 +00:00
|
|
|
rpc ApproveArtwork (ApproveArtworkRequest) returns (ApproveArtworkRespond) {}
|
|
|
|
rpc GetMgmtArtworkList (GetMgmtArtworkListRequest) returns (GetMgmtArtworkListRespond) {}
|
2023-01-18 09:03:15 +00:00
|
|
|
rpc GetArtwork (GetArtworkRequest) returns (GetArtworkRespond) {}
|
|
|
|
rpc DelArtwork (DelArtworkRequest) returns (DelArtworkRespond) {}
|
|
|
|
rpc UploadArtwork (UploadArtworkRequest) returns (UploadArtworkRespond) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListInterfaceRespond {
|
|
|
|
int64 Total = 1 [json_name = "total"];
|
|
|
|
// repeated []byte Data = 2 [json_name = "data"];
|
|
|
|
bytes Data = 2 [json_name = "data"];
|
|
|
|
string Msg = 3 [json_name = "msg"];
|
|
|
|
}
|
|
|
|
|
|
|
|
message ArtworkListRequest {
|
|
|
|
int64 BatchId = 1 [json_name = "batchId"];
|
|
|
|
int64 ArtistId = 2 [json_name = "artistId"];
|
|
|
|
string Name = 3 [json_name = "name"];
|
|
|
|
string ArtistName = 4 [json_name = "artistName"];
|
|
|
|
string InvitedName = 5 [json_name = "invitedName"];
|
2023-02-02 06:10:24 +00:00
|
|
|
uint64 IsImport = 6 [json_name ="isImport"];
|
|
|
|
uint64 State = 7 [json_name = "state"];
|
|
|
|
uint64 Page = 8 [json_name = "page"];
|
|
|
|
uint64 Num = 9 [json_name = "num"];
|
2023-01-18 09:03:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ArtworkAddRequest {
|
|
|
|
uint64 ID = 1 [json_name = "id"];
|
|
|
|
uint64 ArtistId = 2 [json_name = "artistId"];
|
|
|
|
string Name = 3 [json_name = "name"];
|
|
|
|
string ModelYear = 4 [json_name = "modelYear"];
|
|
|
|
string Photo = 5 [json_name = "photo"];
|
|
|
|
string ArtistPhoto = 6 [json_name = "artistPhoto"];
|
|
|
|
uint64 Width = 7 [json_name = "width"];
|
|
|
|
repeated string CreateAddress = 8 [json_name = "createAddress"];
|
|
|
|
uint64 Height = 9 [json_name = "height"];
|
|
|
|
uint64 Ruler = 10 [json_name = "ruler"];
|
|
|
|
string Introduct = 11 [json_name = "introduct"];
|
|
|
|
string AgeOfCreation = 12 [json_name = "ageOfCreation"];
|
|
|
|
string CreateAt = 13 [json_name = "createAt"];
|
|
|
|
bool NetworkTrace = 14 [json_name = "networkTrace"];
|
|
|
|
string Url = 15 [json_name = "url"];
|
|
|
|
uint64 State = 16 [json_name = "state"];
|
|
|
|
}
|
|
|
|
|
|
|
|
message ArtworkAddRespond {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
message CheckUserLockRequest {
|
|
|
|
uint64 ID = 1 [json_name = "id"];
|
|
|
|
}
|
|
|
|
|
|
|
|
message CheckUserLockRespond {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message UpdateArtworkRequest {
|
|
|
|
uint64 ID = 1 [json_name = "id"];
|
2023-02-02 06:10:24 +00:00
|
|
|
string ArtistId = 2 [json_name = "artistId"];
|
2023-01-18 09:03:15 +00:00
|
|
|
string Name = 3 [json_name = "name"];
|
|
|
|
string ModelYear = 4 [json_name = "modelYear"];
|
|
|
|
string Photo = 5 [json_name = "photo"];
|
|
|
|
string ArtistPhoto = 6 [json_name = "artistPhoto"];
|
|
|
|
uint64 Width = 7 [json_name = "width"];
|
|
|
|
repeated string CreateAddress = 8 [json_name = "createAddress"];
|
|
|
|
uint64 Height = 9 [json_name = "height"];
|
|
|
|
uint64 Ruler = 10 [json_name = "ruler"];
|
|
|
|
string Introduct = 11 [json_name = "introduct"];
|
|
|
|
string AgeOfCreation = 12 [json_name = "ageOfCreation"];
|
|
|
|
string CreateAt = 13 [json_name = "createAt"];
|
|
|
|
bool NetworkTrace = 14 [json_name = "networkTrace"];
|
|
|
|
string Url = 15 [json_name = "url"];
|
|
|
|
uint64 State = 16 [json_name = "state"];
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateArtworkRespond {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message GetArtworkListRequest {
|
|
|
|
uint64 ID = 1 [json_name = "id"];
|
|
|
|
}
|
2023-02-02 06:10:24 +00:00
|
|
|
|
|
|
|
message ApproveArtworkRequest {
|
2023-02-06 01:33:09 +00:00
|
|
|
int32 ArtworkId =1 [json_name = "artworkId"];
|
2023-02-02 06:10:24 +00:00
|
|
|
bool IsApprove =2 [json_name = "isApprove"];
|
|
|
|
string Remark =3 [json_name = "remark"];
|
|
|
|
string Remark2 =4 [json_name = "remark2"];
|
2023-02-06 01:33:09 +00:00
|
|
|
string MgmtArtworkId = 5 [json_name = "mgmtArtworkId"];
|
2023-02-02 06:10:24 +00:00
|
|
|
}
|
2023-01-18 09:03:15 +00:00
|
|
|
message GetArtworkListRespond {
|
|
|
|
repeated UpdateArtworkRequest Data = 1 [json_name = "data"];
|
|
|
|
}
|
2023-02-02 06:10:24 +00:00
|
|
|
message GetMgmtArtworkListRequest {
|
2023-02-06 01:33:09 +00:00
|
|
|
uint64 ArtistId = 1 [json_name = "artistId"];
|
|
|
|
string Name = 2 [json_name = "name"];
|
|
|
|
string ArtistName = 3 [json_name = "artistName"];
|
|
|
|
string InvitedName = 4 [json_name = "invitedName"];
|
|
|
|
uint64 IsImport = 5 [json_name ="isImport"];
|
|
|
|
uint64 State = 6 [json_name = "state"];
|
|
|
|
uint64 Page = 7 [json_name = "page"];
|
|
|
|
uint64 PageSize = 8 [json_name = "num"];
|
2023-02-02 06:10:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetMgmtArtworkListRespond {
|
2023-02-06 01:33:09 +00:00
|
|
|
uint64 Count = 1;
|
|
|
|
repeated UpdateArtworkRequest Data = 2 ;
|
2023-02-02 06:10:24 +00:00
|
|
|
}
|
2023-02-06 01:33:09 +00:00
|
|
|
message GetArtworkRequest{
|
|
|
|
uint64 ID = 1 ;
|
2023-01-18 09:03:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetArtworkRespond {
|
|
|
|
uint64 ID = 1 [json_name = "id"];
|
2023-02-02 06:10:24 +00:00
|
|
|
string ArtistId = 2 [json_name = "artistId"];
|
2023-01-18 09:03:15 +00:00
|
|
|
string Name = 3 [json_name = "name"];
|
|
|
|
string ModelYear = 4 [json_name = "modelYear"];
|
|
|
|
string Photo = 5 [json_name = "photo"];
|
|
|
|
string ArtistPhoto = 6 [json_name = "artistPhoto"];
|
|
|
|
uint64 Width = 7 [json_name = "width"];
|
|
|
|
repeated string CreateAddress = 8 [json_name = "createAddress"];
|
|
|
|
uint64 Height = 9 [json_name = "height"];
|
|
|
|
uint64 Ruler = 10 [json_name = "ruler"];
|
|
|
|
string Introduct = 11 [json_name = "introduct"];
|
|
|
|
string AgeOfCreation = 12 [json_name = "ageOfCreation"];
|
|
|
|
string CreateAt = 13 [json_name = "createAt"];
|
|
|
|
bool NetworkTrace = 14 [json_name = "networkTrace"];
|
|
|
|
string Url = 15 [json_name = "url"];
|
|
|
|
uint64 State = 16 [json_name = "state"];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message DelArtworkRequest {
|
|
|
|
uint64 Id = 1 [json_name = "id"];
|
|
|
|
uint64 ArtistId =2[json_name = "artistId"];
|
|
|
|
}
|
|
|
|
|
|
|
|
message DelArtworkRespond {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message UploadArtworkRequest {
|
|
|
|
uint64 ID = 1 [json_name = "id"];
|
|
|
|
}
|
|
|
|
|
|
|
|
message UploadArtworkRespond {
|
|
|
|
|
|
|
|
|
2023-02-02 06:10:24 +00:00
|
|
|
}
|
|
|
|
message ApproveArtworkRespond{
|
|
|
|
|
2023-01-18 09:03:15 +00:00
|
|
|
}
|