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

     1  package model
     2  
     3  // user info
     4  type User struct {
     5  	Username string `json:"username"`
     6  	Email    string `json:"email"`
     7  	Address  string `json:"address"`
     8  }
     9  
    10  // artist info
    11  type Artist struct {
    12  	Name     string `json:"name"`
    13  	Desc     string `json:"desc"`
    14  	Username string `json:"username"`
    15  }
    16  
    17  // production info
    18  type Production struct {
    19  	Type                  string            `json:"type"`
    20  	Serial                string            `json:"serial"`
    21  	Name                  string            `json:"name"`
    22  	Desc                  string            `json:"desc"`
    23  	CopyrightPriceType    string            `json:"copyright_price_type"` // TODO list
    24  	CopyrightPrice        string            `json:"copyright_price"`      // price(1-100)
    25  	CopyrightNum          string            `json:"copyright_num"`        // total
    26  	Username              string            `json:"username"`
    27  	Supporters            map[string]string `json:"supporters"`
    28  	Buyers                map[string]string `json:"buyers"`
    29  	CopyrightTransferPart string            `json:"copyright_transfer_part"` //1 ~ num
    30  }