You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

modelarts.go 799 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
1234567891011121314151617181920212223242526
  1. package auth
  2. import (
  3. "gitea.com/macaron/binding"
  4. "gitea.com/macaron/macaron"
  5. )
  6. type CreateModelArtsNotebookForm struct {
  7. JobName string `form:"job_name" binding:"Required"`
  8. Attachment string `form:"attachment" binding:"Required"`
  9. Description string `form:"description"`
  10. }
  11. func (f *CreateModelArtsNotebookForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
  12. return validate(errs, ctx.Data, f, ctx.Locale)
  13. }
  14. type CreateModelArtsTrainJobForm struct {
  15. JobName string `form:"job_name" binding:"Required"`
  16. Attachment string `form:"attachment" binding:"Required"`
  17. Description string `form:"description"`
  18. }
  19. func (f *CreateModelArtsTrainJobForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
  20. return validate(errs, ctx.Data, f, ctx.Locale)
  21. }