github.com/junaozun/protoc-gen-go-clone@v0.0.0-20231229025521-89199567f720/cmd/protoc-gen-clone/example/example.proto (about)

     1  syntax = "proto3";
     2  
     3  import "common1.proto";
     4  
     5  package example;
     6  option go_package = "github.com/junaozun/protoc-gen-go-clone/cmd/protoc-gen-clone/example;example";
     7  
     8  //专属装备抽卡
     9  // |DrawOnlyEquipBack
    10  message DrawOnlyEquipBack {
    11  	message DrawData {
    12  		map<string, int32> specialDrawCount = 1; // 特殊规则
    13  		int32 historyDrawCount = 10; //历史抽卡总次数
    14  		int32 resId = 11; //根据资源Id重制一些变量
    15  	}
    16  	map<int32, StudentMc> stu = 1;
    17  	map<int32, DrawData> drawData = 2;
    18  	map<int32,string>specialDrawCount = 10;
    19  }
    20  
    21  message StudentMc {
    22  	string name =1;
    23  }
    24  
    25  // |User
    26  message User {
    27  	common1.User User = 1;
    28  }