github.com/tada-team/tdproto@v1.51.57/codegen/api_paths/paths_types.go (about)

     1  package api_paths
     2  
     3  type OperationSpec struct {
     4  	Request             interface{}
     5  	Response            interface{}
     6  	Description         interface{}
     7  	ResponseDescription string
     8  	RequestDescription  string
     9  	SecurityIsOptional  bool
    10  	QueryStruct         interface{}
    11  }
    12  
    13  type PathSpec struct {
    14  	Path   string
    15  	Get    *OperationSpec
    16  	Put    *OperationSpec
    17  	Delete *OperationSpec
    18  	Post   *OperationSpec
    19  }
    20  
    21  var AllPaths = map[string][]PathSpec{
    22  	"group": GroupPaths,
    23  	"team":  TeamPaths,
    24  	"chat":  ChatPaths,
    25  	"misc":  MiscPaths,
    26  	"task":  TaskPaths,
    27  }
    28  
    29  var PathTitles = map[string]string{
    30  	"group": "Group related paths",
    31  	"team":  "Team related paths",
    32  	"chat":  "Chat related paths",
    33  	"misc":  "Miscellaneous paths",
    34  	"task":  "Task related paths",
    35  }