syntax = "proto3"; package common; option go_package = "ttmylife.com/zeuszhao/types/card/common;common"; option java_multiple_files = true; option java_package = "common"; enum CardStatus { CARD_STATUS_UNDEFINED = 0; CARD_STATUS_NORMAL = 1; CARD_STATUS_DELETED = 2; } enum CardType { CARD_TYPE_UNDEFINED = 0; CARD_TYPE_SELF = 1; CARD_TYPE_OTHER = 2; } message CardTemplateBody { uint32 id = 1; CardTemplateBaseBody body = 2; } message CardSupplementBody { uint32 id = 1; CardSupplementBaseBody body = 2; } message CardSupplementBaseBody { uint32 card_id = 1; string key_name = 2; string key_value = 3; } message CardTemplateBaseBody { string name = 1; string title_color = 2; string subtitle_color = 3; string contact_color = 4; string background_img = 5; } message CardBody { uint32 id = 1; CardBaseBody body = 2; } message CardBaseBody { string name = 1; string title = 2; string company_name = 3; string company_short_name = 4; uint32 template_id = 5; uint32 user_id = 6; CardStatus status = 7; string search_key = 8; CardType type = 9; uint64 created = 10; } message CardUser { uint32 user_id = 1; uint32 card_id = 2; } message CardFilterBody { string name = 1; string title = 2; string company_name = 3; string company_short_name = 4; string search_key = 5; uint32 user_id = 6; CardType type = 7; CardStatus status = 8; }