This is the interface used to generate file storage orders.
// UploadDeclaration generate a file storage order
// - fid: file identification
// - segment: segment info
// - user: UserBrief
// - filename: file name
// - filesize: file size
//
// Return:
// - string: block hash
// - error: error message
func (c *ChainClient) UploadDeclaration(fid string, segment []SegmentList, user UserBrief, filesize uint64) (string, error)
This interface has the same functionality as GenerateStorageOrder, please refer to GenerateStorageOrder