第三方api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 rivejä
374 B

  1. package zhios_third_party_utils
  2. type FileItem struct {
  3. FileName string
  4. Content []byte
  5. }
  6. func (s *FileItem) SetFileName(v string) *FileItem {
  7. s.FileName = v
  8. return s
  9. }
  10. func (s *FileItem) SetContent(v []byte) *FileItem {
  11. s.Content = v
  12. return s
  13. }
  14. func NewFileItem(fileName string, content []byte) *FileItem {
  15. return &FileItem{FileName: fileName, Content: content}
  16. }