github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/examples/creative/README.md (about)

     1  ### TODO LIST
     2  
     3  > 1) DeleteBuyer & ModifyBuyer Unrealized.
     4  > 
     5  
     6  ### Model 
     7  
     8  > type User struct {
     9  > 
    10  > 	Username string `json:"username"`
    11  > 
    12  > 	Email    string `json:"email"`
    13  > 
    14  > 	Address  string `json:"address"`
    15  > 
    16  > }
    17  > 
    18  > type Artist struct {
    19  > 
    20  > 	Name     string `json:"name"`
    21  > 
    22  > 	Desc     string `json:"desc"`
    23  > 
    24  > 	Username string `json:"username"`
    25  > 
    26  > }
    27  > 
    28  > 
    29  > type Production struct {
    30  > 
    31  > 	Type                  string            `json:"type"`
    32  > 
    33  > 	Serial                string            `json:"serial"`
    34  > 
    35  > 	Name                  string            `json:"name"`
    36  > 
    37  > 	Desc                  string            `json:"desc"`
    38  > 
    39  > 	CopyrightPriceType    string            `json:"copyright_price_type"` 
    40  > 
    41  > 	CopyrightPrice        string            `json:"copyright_price"`      
    42  > 
    43  > 	CopyrightNum          string            `json:"copyright_num"`        
    44  > 
    45  > 	Username              string            `json:"username"`
    46  > 
    47  > 	Supporters            map[string]string `json:"supporters"`
    48  > 
    49  > 	Buyers                map[string]string `json:"buyers"`
    50  > 
    51  > 	CopyrightTransferPart string            `json:"copyright_transfer_part"` 
    52  > 
    53  > }
    54  > 
    55  
    56  # Invoke func
    57  
    58  > AddUser
    59  > 
    60  > DeleteUser
    61  > 
    62  > ModifyUser
    63  > 
    64  > QueryUser
    65  > 
    66  > ListOfUser
    67  > 
    68  > AddArtist
    69  > 
    70  > DeleteArtist
    71  > 
    72  > ModifyArtist
    73  > 
    74  > QueryArtist
    75  > 
    76  > ListOfArtist
    77  > 
    78  > AddProduction
    79  > 
    80  > DeleteProduction
    81  > 
    82  > ModifyProduction
    83  > 
    84  > QueryProduction
    85  > 
    86  > ListOfProduction
    87  > 
    88  > ListOfSupporter
    89  >
    90  > AddSupporter
    91  >
    92  > AddBuyer
    93  >
    94  > ListOfBuyer
    95  >
    96  > DeleteBuyer
    97  >
    98  > ModifyBuyer
    99  >
   100  
   101  ### Token & Address
   102  
   103  > {
   104  > 
   105  >       Token: "70698e364537a106b5aa5332d660e2234b37eebcb3768a2a97ffb8042dfe2fc4"
   106  > 
   107  >       Address: "07caf88941eafcaaa3370657fccc261acb75dfba"
   108  > 
   109  > }, {
   110  > 
   111  >       Token: "344c267e5acb2ac9107465fc85eba24cbb17509e918c3cc3f5098dddf42167e5"
   112  > 
   113  >       Address: "a5ff00eb44bf19d5dfbde501c90e286badb58df4"
   114  > 
   115  > }, {
   116  > 
   117  >       Token: "bc4bcb06a0793961aec4ee377796e050561b6a84852deccea5ad4583bb31eebe"
   118  > 
   119  >       Address: "4230a12f5b0693dd88bb35c79d7e56a68614b199"
   120  > 
   121  > }
   122  > 
   123  
   124  ### Scripts
   125  
   126  > func_init.sh 
   127  >
   128  > func_user.sh
   129  >
   130  > func_artist.sh
   131  > 
   132  > func_production.sh
   133  > 
   134  > func_token.sh
   135  > 
   136  > initialization.sh
   137  > 
   138  > test.sh
   139  >