### Generated Go Struct for User Source: https://github.com/lazygophers/codegen/blob/master/README.md Example of the generated Go struct for the User message, including embedded gorm and role tags. Shows the structure after code generation, with fields like 'Id' and associated tags. ```go ...其余内容... type User struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // @gorm: primary_key // @role: admin:wr;user:r Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key" role:"admin:wr;user:r" } ...其余内容... ``` -------------------------------- ### Protocol Buffer Definition for User Source: https://github.com/lazygophers/codegen/blob/master/README.md Defines a User message with gorm and role tags for code generation. Specifies the Go package and syntax. ```proto syntax = "proto3"; package user; option go_package = "github.com/lazygophers/user"; message User { // @gorm: primary_key // @role: admin:wr;user:r string id = 1; } ``` -------------------------------- ### Generate Protocol Buffer Go Code Source: https://github.com/lazygophers/codegen/blob/master/README.md Command to generate Go protobuf files from a .proto file using the codegen tool. It takes the input proto file path and generates corresponding .pb.go files. ```bash codegen gen pb -i proto/hello.proto ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.