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.

taskaisubmodel.go 785 B

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