 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Channel) predicate.Channel
- func AppID(v uint64) predicate.Channel
- func AppIDEQ(v uint64) predicate.Channel
- func AppIDGT(v uint64) predicate.Channel
- func AppIDGTE(v uint64) predicate.Channel
- func AppIDIn(vs ...uint64) predicate.Channel
- func AppIDLT(v uint64) predicate.Channel
- func AppIDLTE(v uint64) predicate.Channel
- func AppIDNEQ(v uint64) predicate.Channel
- func AppIDNotIn(vs ...uint64) predicate.Channel
- func Code(v string) predicate.Channel
- func CodeContains(v string) predicate.Channel
- func CodeContainsFold(v string) predicate.Channel
- func CodeEQ(v string) predicate.Channel
- func CodeEqualFold(v string) predicate.Channel
- func CodeGT(v string) predicate.Channel
- func CodeGTE(v string) predicate.Channel
- func CodeHasPrefix(v string) predicate.Channel
- func CodeHasSuffix(v string) predicate.Channel
- func CodeIn(vs ...string) predicate.Channel
- func CodeLT(v string) predicate.Channel
- func CodeLTE(v string) predicate.Channel
- func CodeNEQ(v string) predicate.Channel
- func CodeNotIn(vs ...string) predicate.Channel
- func Config(v string) predicate.Channel
- func ConfigContains(v string) predicate.Channel
- func ConfigContainsFold(v string) predicate.Channel
- func ConfigEQ(v string) predicate.Channel
- func ConfigEqualFold(v string) predicate.Channel
- func ConfigGT(v string) predicate.Channel
- func ConfigGTE(v string) predicate.Channel
- func ConfigHasPrefix(v string) predicate.Channel
- func ConfigHasSuffix(v string) predicate.Channel
- func ConfigIn(vs ...string) predicate.Channel
- func ConfigLT(v string) predicate.Channel
- func ConfigLTE(v string) predicate.Channel
- func ConfigNEQ(v string) predicate.Channel
- func ConfigNotIn(vs ...string) predicate.Channel
- func CreatedAt(v time.Time) predicate.Channel
- func CreatedAtEQ(v time.Time) predicate.Channel
- func CreatedAtGT(v time.Time) predicate.Channel
- func CreatedAtGTE(v time.Time) predicate.Channel
- func CreatedAtIn(vs ...time.Time) predicate.Channel
- func CreatedAtLT(v time.Time) predicate.Channel
- func CreatedAtLTE(v time.Time) predicate.Channel
- func CreatedAtNEQ(v time.Time) predicate.Channel
- func CreatedAtNotIn(vs ...time.Time) predicate.Channel
- func DeletedAt(v time.Time) predicate.Channel
- func DeletedAtEQ(v time.Time) predicate.Channel
- func DeletedAtGT(v time.Time) predicate.Channel
- func DeletedAtGTE(v time.Time) predicate.Channel
- func DeletedAtIn(vs ...time.Time) predicate.Channel
- func DeletedAtIsNil() predicate.Channel
- func DeletedAtLT(v time.Time) predicate.Channel
- func DeletedAtLTE(v time.Time) predicate.Channel
- func DeletedAtNEQ(v time.Time) predicate.Channel
- func DeletedAtNotIn(vs ...time.Time) predicate.Channel
- func DeletedAtNotNil() predicate.Channel
- func FeeRate(v float64) predicate.Channel
- func FeeRateEQ(v float64) predicate.Channel
- func FeeRateGT(v float64) predicate.Channel
- func FeeRateGTE(v float64) predicate.Channel
- func FeeRateIn(vs ...float64) predicate.Channel
- func FeeRateLT(v float64) predicate.Channel
- func FeeRateLTE(v float64) predicate.Channel
- func FeeRateNEQ(v float64) predicate.Channel
- func FeeRateNotIn(vs ...float64) predicate.Channel
- func ID(id uint64) predicate.Channel
- func IDEQ(id uint64) predicate.Channel
- func IDGT(id uint64) predicate.Channel
- func IDGTE(id uint64) predicate.Channel
- func IDIn(ids ...uint64) predicate.Channel
- func IDLT(id uint64) predicate.Channel
- func IDLTE(id uint64) predicate.Channel
- func IDNEQ(id uint64) predicate.Channel
- func IDNotIn(ids ...uint64) predicate.Channel
- func Not(p predicate.Channel) predicate.Channel
- func Or(predicates ...predicate.Channel) predicate.Channel
- func Remark(v string) predicate.Channel
- func RemarkContains(v string) predicate.Channel
- func RemarkContainsFold(v string) predicate.Channel
- func RemarkEQ(v string) predicate.Channel
- func RemarkEqualFold(v string) predicate.Channel
- func RemarkGT(v string) predicate.Channel
- func RemarkGTE(v string) predicate.Channel
- func RemarkHasPrefix(v string) predicate.Channel
- func RemarkHasSuffix(v string) predicate.Channel
- func RemarkIn(vs ...string) predicate.Channel
- func RemarkIsNil() predicate.Channel
- func RemarkLT(v string) predicate.Channel
- func RemarkLTE(v string) predicate.Channel
- func RemarkNEQ(v string) predicate.Channel
- func RemarkNotIn(vs ...string) predicate.Channel
- func RemarkNotNil() predicate.Channel
- func Status(v uint8) predicate.Channel
- func StatusEQ(v uint8) predicate.Channel
- func StatusGT(v uint8) predicate.Channel
- func StatusGTE(v uint8) predicate.Channel
- func StatusIn(vs ...uint8) predicate.Channel
- func StatusIsNil() predicate.Channel
- func StatusLT(v uint8) predicate.Channel
- func StatusLTE(v uint8) predicate.Channel
- func StatusNEQ(v uint8) predicate.Channel
- func StatusNotIn(vs ...uint8) predicate.Channel
- func StatusNotNil() predicate.Channel
- func UpdatedAt(v time.Time) predicate.Channel
- func UpdatedAtEQ(v time.Time) predicate.Channel
- func UpdatedAtGT(v time.Time) predicate.Channel
- func UpdatedAtGTE(v time.Time) predicate.Channel
- func UpdatedAtIn(vs ...time.Time) predicate.Channel
- func UpdatedAtLT(v time.Time) predicate.Channel
- func UpdatedAtLTE(v time.Time) predicate.Channel
- func UpdatedAtNEQ(v time.Time) predicate.Channel
- func UpdatedAtNotIn(vs ...time.Time) predicate.Channel
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppID(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByConfig(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFeeRate(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRemark(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
 
Constants ¶
const ( // Label holds the string label denoting the channel type in the database. Label = "channel" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldRemark holds the string denoting the remark field in the database. FieldRemark = "remark" // FieldFeeRate holds the string denoting the fee_rate field in the database. FieldFeeRate = "fee_rate" // FieldAppID holds the string denoting the app_id field in the database. FieldAppID = "app_id" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // Table holds the table name of the channel in the database. Table = "pay_channel" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus uint8 )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/agui-coder/simple-admin-pay-rpc/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldDeletedAt, FieldCode, FieldRemark, FieldFeeRate, FieldAppID, FieldConfig, }
Columns holds all SQL columns for channel fields.
Functions ¶
func AppID ¶
AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.
func AppIDNotIn ¶
AppIDNotIn applies the NotIn predicate on the "app_id" field.
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func Config ¶
Config applies equality check predicate on the "config" field. It's identical to ConfigEQ.
func ConfigContains ¶
ConfigContains applies the Contains predicate on the "config" field.
func ConfigContainsFold ¶
ConfigContainsFold applies the ContainsFold predicate on the "config" field.
func ConfigEqualFold ¶
ConfigEqualFold applies the EqualFold predicate on the "config" field.
func ConfigHasPrefix ¶
ConfigHasPrefix applies the HasPrefix predicate on the "config" field.
func ConfigHasSuffix ¶
ConfigHasSuffix applies the HasSuffix predicate on the "config" field.
func ConfigNotIn ¶
ConfigNotIn applies the NotIn predicate on the "config" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func FeeRate ¶
FeeRate applies equality check predicate on the "fee_rate" field. It's identical to FeeRateEQ.
func FeeRateGTE ¶
FeeRateGTE applies the GTE predicate on the "fee_rate" field.
func FeeRateLTE ¶
FeeRateLTE applies the LTE predicate on the "fee_rate" field.
func FeeRateNEQ ¶
FeeRateNEQ applies the NEQ predicate on the "fee_rate" field.
func FeeRateNotIn ¶
FeeRateNotIn applies the NotIn predicate on the "fee_rate" field.
func Remark ¶
Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func RemarkContains ¶
RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContainsFold ¶
RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkEqualFold ¶
RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkHasPrefix ¶
RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasSuffix ¶
RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkIsNil ¶
RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkNotIn ¶
RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotNil ¶
RemarkNotNil applies the NotNil predicate on the "remark" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Channel queries.
func ByAppID ¶
func ByAppID(opts ...sql.OrderTermOption) OrderOption
ByAppID orders the results by the app_id field.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByConfig ¶
func ByConfig(opts ...sql.OrderTermOption) OrderOption
ByConfig orders the results by the config field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByFeeRate ¶
func ByFeeRate(opts ...sql.OrderTermOption) OrderOption
ByFeeRate orders the results by the fee_rate field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRemark ¶
func ByRemark(opts ...sql.OrderTermOption) OrderOption
ByRemark orders the results by the remark field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.