增加社区列表接口,任务相关接口修改

This commit is contained in:
lianghuanjie
2024-12-19 21:14:14 +08:00
parent 391a9d3481
commit a3c4adfa25
32 changed files with 1163 additions and 197 deletions

View File

@@ -0,0 +1,29 @@
package model
import "github.com/zeromicro/go-zero/core/stores/sqlx"
var _ NhTouristBindModel = (*customNhTouristBindModel)(nil)
type (
// NhTouristBindModel is an interface to be customized, add more methods here,
// and implement the added methods in customNhTouristBindModel.
NhTouristBindModel interface {
nhTouristBindModel
withSession(session sqlx.Session) NhTouristBindModel
}
customNhTouristBindModel struct {
*defaultNhTouristBindModel
}
)
// NewNhTouristBindModel returns a model for the database table.
func NewNhTouristBindModel(conn sqlx.SqlConn) NhTouristBindModel {
return &customNhTouristBindModel{
defaultNhTouristBindModel: newNhTouristBindModel(conn),
}
}
func (m *customNhTouristBindModel) withSession(session sqlx.Session) NhTouristBindModel {
return NewNhTouristBindModel(sqlx.NewSqlConnFromSession(session))
}