logo算法信息提取

This commit is contained in:
menghaiwen@fusen.cn 2024-01-23 17:05:17 +08:00
parent 9ae8afd49e
commit 83e598caa2
2 changed files with 30 additions and 24 deletions

View File

@ -3,7 +3,6 @@ syntax = "proto3"; //版本声明使用v3版本
package basic;
option go_package = ".;service";
import "google/protobuf/any.proto";
import "google/protobuf/struct.proto";
// .
@ -37,4 +36,3 @@ message Meta {
int64 current_page=3;
int64 per_page=4;
}

View File

@ -6,6 +6,7 @@ option go_package = "gitlab.fusenpack.com/backend/resource;service";
// google/api/annotations.proto
import "google/api/annotations.proto";
import "service/basic.proto";
import "service/auth.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/any.proto";
@ -30,7 +31,7 @@ service resource {
rpc UploadFileBackendFragment(UploadFileBackendFragmentReq) returns (UploadFileBackendFragmentRes) {}
// logo合图
rpc LogoCombine(LogoCombineReq) returns (LogoCombineRes) {}
rpc LogoAiCombine(LogoAiCombineReq) returns (LogoAiCombineRes) {}
// logo基础信息
rpc LogoInfoSet(LogoInfoSetReq) returns (LogoInfoSetRes) {}
@ -145,26 +146,33 @@ message LogoInfoSetRes {
/* logo基础信息 */
/* logo合图 */
message LogoCombineReq {
int64 product_template_v2_info_id =1;
string product_template_v2_info_material_img =2;
string product_template_v2_info_template_info =3;
string template_tag =4;
string website=5;
string slogan=6;
string address=7;
string phone=8;
string qrcode=9;
string logo_url=10;
string resolution=11;
TemplateTagColor template_tag_color=12;
string logo_metadata=13;
repeated TemplateTagGroups template_tag_groups=14;
message LogoAiCombineReq {
optional string logo_url = 1; // logo资源链接
optional int64 logo_material_id = 2; // logo素材ID
optional bytes logo_material_metadata = 3; // logo素材额外参数
optional int64 preprocess_logo_id = 4; // logo数据库ID
int64 handle_type = 100; // 1= 2= 3=
int64 user_id = 101; // ID
int64 guest_id = 102; // 访ID
optional string template_tag = 5; //
optional bytes template_tag_color = 6; //
optional bytes product_template_v2_info = 7; //
optional bytes product_template_tag_groups = 8; //
optional string resolution = 9; //
optional string slogan = 10; // Slogan
optional string website = 11; //
optional string address = 12; //
optional string phone = 13; //
optional string qrcode = 14; //
auth.Debug debug = 100; //
int64 handle_type = 101; // 1= 2= 3=
int64 user_id = 102; // ID
int64 guest_id = 103; // 访ID
string trace_id = 104; //
string resource_source = 105; //
}
message TemplateTagColor {
repeated Color color =1;
int64 index = 2;
@ -178,7 +186,7 @@ message TemplateTagGroups {
string value =3;
int64 fixed =4;
}
message LogoCombineRes {
message LogoAiCombineRes {
string resource_id = 4; // ID
string resource_url = 6; //
int64 diff_time_logo_combine=15; //