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.

taskhpcmodel.go 749 B

1234567891011121314151617181920212223242526272829
  1. package models
  2. import "github.com/zeromicro/go-zero/core/stores/sqlx"
  3. var _ TaskHpcModel = (*customTaskHpcModel)(nil)
  4. type (
  5. // TaskHpcModel is an interface to be customized, add more methods here,
  6. // and implement the added methods in customTaskHpcModel.
  7. TaskHpcModel interface {
  8. taskHpcModel
  9. withSession(session sqlx.Session) TaskHpcModel
  10. }
  11. customTaskHpcModel struct {
  12. *defaultTaskHpcModel
  13. }
  14. )
  15. // NewTaskHpcModel returns a model for the database table.
  16. func NewTaskHpcModel(conn sqlx.SqlConn) TaskHpcModel {
  17. return &customTaskHpcModel{
  18. defaultTaskHpcModel: newTaskHpcModel(conn),
  19. }
  20. }
  21. func (m *customTaskHpcModel) withSession(session sqlx.Session) TaskHpcModel {
  22. return NewTaskHpcModel(sqlx.NewSqlConnFromSession(session))
  23. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.