mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-24 00:15:29 +00:00
QR codes (#209)
This commit is contained in:
22
qr/proto/qr.proto
Normal file
22
qr/proto/qr.proto
Normal file
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package qr;
|
||||
|
||||
option go_package = "./proto;qr";
|
||||
|
||||
service Qr {
|
||||
// Generate a QR code
|
||||
rpc Generate(GenerateRequest) returns (GenerateResponse) {}
|
||||
}
|
||||
|
||||
message GenerateRequest {
|
||||
// the text to encode as a QR code (URL, phone number, email, etc)
|
||||
string text = 1;
|
||||
// the size (height and width) in pixels of the generated QR code. Defaults to 256
|
||||
int64 size = 2;
|
||||
}
|
||||
|
||||
message GenerateResponse {
|
||||
// link to the QR code image in PNG format
|
||||
string qr = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user