feat: init project codebase

This commit is contained in:
sinde21
2026-09-14 16:32:07 +08:00
parent c4b2a15757
commit da20fde7fb
140 changed files with 27855 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
class Breeding_plan_model extends MY_Model
{
protected $table = 'breeding_plan';
protected $join = [];
protected $keyword_field = ['user_id'];
protected $list_field = 'base.*';
protected $where_field_map = [];
protected $null_field = ['s.id'];
protected $unique_field = 'id';
//获取用户的计划总数
public function getUserTotal($user_id)
{
$this->db->select('count(*) as count');
$this->db->from($this->table);
$this->db->where('user_id', $user_id);
$list = $this->db->get()->row_array();
return $list['count'];
}
}